Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to retrieve the CPU that created a WDFREQUEST?

I am trying to affinitise the completion of CompleteRequest to the CPU that originally issued the request. Is there a way to retrieve the CPU that issued the request during FdoDeviceControl or any onother way to see where the request came from before it entered the dispatch queue?

like image 891
Thomas Kejser Avatar asked Jan 07 '13 12:01

Thomas Kejser


1 Answers

Once you are in a DPC routine it's too late to tell where the request originated. You need to call KeGetCurrentProcessorNumberEx() before you queue the request to a DPC queue. I assume the request is an IRP...?

like image 162
David P Avatar answered Oct 03 '22 07:10

David P



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!