can export drivers send I/O Requests to kernel-mode function drivers?

Hi,

I want to share some data between three kernel-mode function drivers, and am thinking of writing an export-driver to manage the data structure. The data is obtained by I/O Requests to some other KMDF driver. As far as I know, I cannot use KMDF functions in export drivers. Can I use WDM functions? For e.g. can I call IOCallDriver() etc and submit Read/Write/IOCTL IRPs?

Or, is there a better way to achieve this other than by using export drivers? Some pointers are highly appreciated!

Thanks
Madhavi

You can call wdm functions in your export driver, but why not just open the other device objects by name and use pirps to share the data ?

d

debt from my phone

-----Original Message-----
From: xxxxx@gmail.com
Sent: Friday, August 19, 2011 2:26 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] can export drivers send I/O Requests to kernel-mode function drivers?

Hi,

I want to share some data between three kernel-mode function drivers, and am thinking of writing an export-driver to manage the data structure. The data is obtained by I/O Requests to some other KMDF driver. As far as I know, I cannot use KMDF functions in export drivers. Can I use WDM functions? For e.g. can I call IOCallDriver() etc and submit Read/Write/IOCTL IRPs?

Or, is there a better way to achieve this other than by using export drivers? Some pointers are highly appreciated!

Thanks
Madhavi


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks, Doron.

Do you mean the following: Instead of creating an export driver, create function driver? And let this function Driver handle internal IOCTLs from the other Drivers that want to access the data?

I thought by having this data in an export driver, I can also rely on the export driver getting loaded etc when any of the drivers that use it is present.

Could you please explain what you mean by “open other device objects by name” ?

Thanks
Madhavi

I meant no middle man driver at all, the drivers who are sharing share directly with each other, not an intermediary

d

debt from my phone

-----Original Message-----
From: xxxxx@gmail.com
Sent: Friday, August 19, 2011 2:44 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] can export drivers send I/O Requests to kernel-mode function drivers?

Thanks, Doron.

Do you mean the following: Instead of creating an export driver, create function driver? And let this function Driver handle internal IOCTLs from the other Drivers that want to access the data?

I thought by having this data in an export driver, I can also rely on the export driver getting loaded etc when any of the drivers that use it is present.

Could you please explain what you mean by “open other device objects by name” ?

Thanks
Madhavi


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer