[ofw] ***SPAM*** IoGetDeviceObjectPointer in H/W driver code

Sean Hefty sean.hefty at intel.com
Fri Dec 5 09:21:25 PST 2008


>According to MSDN documentation "IoGetDeviceObjectPointer" should be called in
>system thread context.

>From the WDK docs for IoGetDeviceObjectPointer:

"Callers of IoGetDeviceProperty must be running at IRQL = PASSIVE_LEVEL in the
context of a system thread."

>How are we making sure that callback is being called in system thread context?
>Are callbacks registered using "IoRegisterPlugPlayNotification" called in
>system thread context?

And for IoRegisterPlugPlayNotification:

"The PnP manager calls driver callback routines at IRQL = PASSIVE_LEVEL"

Are you suggesting that the PnP manager does not use a system thread?

- Sean




More information about the ofw mailing list