Hi All,
I am writing my first KMDF driver and I have a requirement one IO queue to be application specific. Meaning when I receive EvtDeviceFileCreate request I want to create a queue and all the requests from this created file object should enter this queue before dispatching to driver. How can I achieve this?
Thanks,
– Ajitabh.
Ajitabh Saxena wrote:
Hi All,
I am writing my first KMDF driver and I have a requirement one IO queue to be application specific. Meaning when I receive EvtDeviceFileCreate request I want to create a queue and all the requests from this created file object should enter this queue before dispatching to driver. How can I achieve this?
You do it exactly as you described it. Create the queue in
EvtDeviceFileCreate. Store it in your WDFFILEOBJECT context structure.
When a file-oriented request comes in to your driver’s default parallel
queue (meaning read, write, or ioctl), fetch the WDFFILEOBJECT from the
request, and just route the request back into that queue.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.