[PATCH v5 7/8] ntoskrnl.exe: Send PnP and Power IRPs to plug and play devices

Aric Stewart aric at codeweavers.com
Wed Sep 7 14:24:15 CDT 2016


v2: use same helper function as get_device_id
    Suggestions from Sebastian Lackner
v3: shift code to ntoskrnl.c
v5: reorder patches

The drivers AddDevice function will be well behaved and call
IoAttachDeviceToDeviceStack. The Plug and Play manager will look at
the bus device after AddDevice and if there is an AttachedDevice then
will proceed to call IRP_MN_START_DEVICE on the attached device. Then
a IRP_MJ_POWER/IRP_MN_SET_POWER to PowerDeviceD0.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
---
 dlls/ntoskrnl.exe/ntoskrnl.c | 46 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: v5-0007-ntoskrnl.exe-Send-PnP-and-Power-IRPs-to-plug-and-pl.txt
Type: text/x-patch
Size: 2029 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160907/b71dab72/attachment.bin>


More information about the wine-patches mailing list