WDF-newbie: Sharing memory between application and driver?
- From: Joerg Hoppe <jhoppe@xxxxxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 11:12:03 +0100
I'm porting an old driver from Compuware Driver::Works to WDF.
I need to share memory between application and my driver.
Problem 1:
My application manages larges buffers. The driver should read/write
data to the application buffer directly. No FileRead/FileWrite ... data access is not sequentiell.
So I pass a buffer pointer to the driver via an IoCtl.
How do I lock/map this buffer so the driver can access it savely?
Problem 2:
My driver allocates kernel memory with ExAllocatePoolWithTag.
The Application issues an IoCtl and wants to receive a pointer to the memory.
How do I map the result of WdfMemoryGetBuffer to user process space?
Any Wdf-Examples would be helpful.
Thanks
.
- Follow-Ups:
- Re: WDF-newbie: Sharing memory between application and driver?
- From: Doron Holan [MS]
- Re: WDF-newbie: Sharing memory between application and driver?
- From: Maxim S. Shatskih
- Re: WDF-newbie: Sharing memory between application and driver?
- From: soviet_bloke
- Re: WDF-newbie: Sharing memory between application and driver?
- Prev by Date: Re: how to get single buffer in NDIS packet
- Next by Date: Re: Resolution of WdfTimer?
- Previous by thread: 1394 gap count not updated by host pc
- Next by thread: Re: WDF-newbie: Sharing memory between application and driver?
- Index(es):
Relevant Pages
|
Loading