Hi All,
I would like to make two driver , a.sys and b.sys , to communicate each
other such as share some data. What’s more, a.sys will shut down b.sys
under some condition. Any suggetion of how to implement? Any reference
paper or books?
Best Regards
zhihua
Hi,
This can be done in following ways:
- Use IRPs for inter-driver communication. Look into documentation of
IoCallDriver in DDK help.
- You can also set up a privately defined interface between the two
drivers. In this case, one driver would use a privately defined IOCTL to
pass the address of a callback routine to another driver. The second driver
would then invoke this callback routine in response to an interrupt. A
second private IOCTL would be used to disconnect the callback when it was
time to unload. Examples of this kind of interface can be found in the mouse
port/class drivers in the DDK.
- An additional approach - export functions from one driver and call them
from another.
Hope this help,
Dev
-----Original Message-----
From: Zhihua LI [mailto:xxxxx@ctl.creative.com]
Sent: Wednesday, March 03, 2004 12:22 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How do two driver communicate each other
Hi All,
I would like to make two driver , a.sys and b.sys , to communicate each
other such as share some data. What’s more, a.sys will shut down b.sys
under some condition. Any suggetion of how to implement? Any reference
paper or books?
Best Regards
zhihua
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: dsingh@in.rainbow.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
> under some condition. Any suggetion of how to implement? Any reference
paper or books?
There are a few good articles on this very same topic at www.osronline.com
HTH,
-Farooque Khan
"Zhihua LI" wrote in message news:xxxxx@ntdev...
>
>
>
>
>
> Hi All,
> I would like to make two driver , a.sys and b.sys , to communicate each
> other such as share some data. What's more, a.sys will shut down b.sys
> under some condition. Any suggetion of how to implement? Any reference
> paper or books?
>
>
> Best Regards
>
> zhihua
>
>
Hi Zhihua,
It is totally your application dependent, so just give hint what you want to do? Depending on that u can proceed further approaches which are there.
Good Luck,
From: Zhihua LI
>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] How do two driver communicate each other
>Date: Wed, 3 Mar 2004 14:52:21 +0800
>
>
>
>
>
>
>Hi All,
>I would like to make two driver , a.sys and b.sys , to communicate each
>other such as share some data. What’s more, a.sys will shut down b.sys
>under some condition. Any suggetion of how to implement? Any reference
>paper or books?
>
>
>Best Regards
>
>zhihua
>
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
INDIA TODAY @ Rs. 5 + a free gift ! Subcribe Now …
“Zhihua LI” wrote in message news:xxxxx@ntdev…
>
> I would like to make two driver , a.sys and b.sys , to communicate each
> other such as share some data.
>
Specific answer:
http://www.osronline.com/article.cfm?id=24
You might try searching the NTDEV archives, too…
Peter
OSR