Re: WDF and 32 bit process
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxx>
- Date: Fri, 7 Jul 2006 11:11:54 -0400
This is the inverted call model, KMDF is new enough that I am not that
familar with all the samples, so while there may be one with this I can't
point you to it. Hopefully someone else on the forum can point you to an
example.
This is overall incredibly easy, you create a queue for the IOCTLs, pending
them for later completion, when the event of interest completes you complete
the IOCTL for the event. You can set things up with either unique IOCTL's
for each type of event, or a generic event IOCTL that reports back the event
type and data.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
"Ashok Bruno" <nospam.ashok_bruno@xxxxxxxxxxx> wrote in message
news:DD231F47-4B54-45BD-A2BA-5A7EEAFA0D01@xxxxxxxxxxxxxxxx
"Don Burn" <burn@xxxxxxxxxxxxxxxx> wrote in message
news:%23VudRXcoGHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
The interrupt status is passed to the user mode application to determine
the type on interrupt that occured.
Is there an example using WDF that I can use? I saw one in Oney's notify
sample.
First off what do you do with the interrupt status? If this is going to
be passed to the user in the end, consider dumping the event model and
using OVERLAPPED I/O with Ioctl's to provide both the events and the
data.
You can get the IRP look at WdfRequestWdmGetIrp.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
"Ashok Bruno" <nospam.ashok_bruno@xxxxxxxxxxx> wrote in message
news:1A8471DA-146D-4967-B964-AFA9C99FE1B5@xxxxxxxxxxxxxxxx
I pass a HANDLE from a user mode application to a driver, and this can
happen as a 32 bit or 64 process. I looked at the different ways to
handle pointer types in the driver and I felt that IoIs32bitProcess
might be the best approach. This function takes in a Irp, and I was
wondering what was the best way to get the Irp from a WDFREQUEST?
Maybe there is a better way to do this overall.... When an interrupt
occurs in my driver I clear the interrupt and save a copy of the
interrupt status register and then signal an event(with a HANDLE) to the
user mode thread. The user mode thread is sitting in a
WaitForMultipleObjects waiting for many such events from the driver,
that need an action maybe signalling the user that an error occurred, or
some other action for functionality. Comments/Suggestions?
.
- Follow-Ups:
- Re: WDF and 32 bit process
- From: Eliyas Yakub [MSFT]
- Re: WDF and 32 bit process
- References:
- WDF and 32 bit process
- From: Ashok Bruno
- Re: WDF and 32 bit process
- From: Don Burn
- Re: WDF and 32 bit process
- From: Ashok Bruno
- WDF and 32 bit process
- Prev by Date: howto access FPGA ports on a PCI Device
- Next by Date: Re: howto access FPGA ports on a PCI Device
- Previous by thread: Re: WDF and 32 bit process
- Next by thread: Re: WDF and 32 bit process
- Index(es):
Relevant Pages
|