The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
There are two KMDF drivers: driverA and driverB. These drivers do not belong to the same driver stack.
The driverA creates device, this device creates interface (using
WdfDeviceCreateDeviceInterface()), using specific GUID.
The driverB needs to be notified on each change of the state of this interface, even if it was created before driverB was loaded.
The driverB knows the interface GUID only.
How to do it in WDF/KMDF way?
I found a solution for WDM drivers in this article: Buddy Drivers - Methods for Driver to Driver Communication and it uses
IoRegisterPlugPlayNotification() function call for registering notification handler:
status = IoRegisterPlugPlayNotification( EventCategoryDeviceInterfaceChange, PNPNOTIFY_DEVICE_INTERFACE_INCLUDE_EXISTING_INTERFACES, (LPGUID)&GUID_DRIVERA_INTERFACE, DeviceObject->DriverObject, PlugPlayCallback, DeviceObject, &devExt->NotificationEntry);
Is there any WDF equivalent for:
IoRegisterPlugPlayNotification(EventCategoryDeviceInterfaceChange, ...) ?
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Kernel Debugging||16-20 October 2023||Live, Online|
|Developing Minifilters||13-17 November 2023||Live, Online|
|Internals & Software Drivers||4-8 Dec 2023||Live, Online|
|Writing WDF Drivers||10-14 July 2023||Live, Online|