Re: how to notify?
From: Don Burn (burn_at_stopspam.acm.org)
Date: 10/12/04
- Next message: Jeff Henkels: "Re: Win9x/Me printer driver"
- Previous message: Benoît Bousquet: "Re: application name"
- In reply to: Benoît Bousquet: "Re: how to notify?"
- Next in thread: serge: "Re: how to notify?"
- Reply: serge: "Re: how to notify?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 12 Oct 2004 14:51:26 -0400
Except why add all the complexity of an event shared between user mode and
kernel. Use the inverted call model, of call down with an IRP that pends
waiting for data, when the data is available fill in buffer of the IRP and
complete it. With overlapped I/O this will provide the event without all
the pain of doing it yourself in the driver.
-- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting Remove StopSpam from the email to reply "Benoît Bousquet" <benoit.bousquet@nospam.zzz> wrote in message news:u7uX$tIsEHA.2904@TK2MSFTNGP15.phx.gbl... > Share an event between user and kernel modes. Kernel mode sets the event > when information is available, and user mode sends a custom DeviceIoControl > request to the driver when it sees the event as signaled. > > I believe I saw a nice article on www.osronline.com regarding this trick, > and I'm pretty sure there are other equally good articles floating around. > > -BB > > "serge" <pserge77@ukr.net> wrote in message > news:ckh8ak$2rq1$1@news.dg.net.ua... > > Hello all, > > > > From time to time I want to send some data from NDIS driver to user-mode > > application. > > How can I do it? > > > > The first thing that comes up to my mind is to create a device with > > NdisMRegisterDevice and query it in a loop from user-mode program. But > this > > will take some processor resources... > > > > Are there any other ways to receive notifications from driver? > > What I need is a two-way pipe between driver and user-mode application. > > > > Thanks. > > > > Best regards, > > Serge. > > > > > >
- Next message: Jeff Henkels: "Re: Win9x/Me printer driver"
- Previous message: Benoît Bousquet: "Re: application name"
- In reply to: Benoît Bousquet: "Re: how to notify?"
- Next in thread: serge: "Re: how to notify?"
- Reply: serge: "Re: how to notify?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|