[KMDF] exchange data from usbPipeInterrupt with fileObject Context

Hello everybody,

I develop a smartcard reader driver for multiple slot reader.
I have created fileContext that contains smartcardExtension parameter for each slot
( call twice WdfDeviceCreateDeviceInterface).

I have implemented usbInterrupt function for catch usb buffer interrupt ( 4 bytes)
It work fine with smartcardExtension parameter include in the device context structure.

Now I would like to implement this same usbInterrupt function for communicate directly with
the deviceInterface concerned ( fileSlotContext 0 or 1 ).

Someone could explain me how to proceed,
If it’s necessary to define a second WDFQUEUE for communicate between USB Pipe and device interface.
Or, it’s possible to list fileContext structure concerned and use it directly without WDFQUEUE.

( Sorry for my bad English )

Thanks in advance,

Best regard,

Kamel