Hi,
Thanks to the many participations and contributions that I maximally appreciate I know that I should use ‘inverted call’ - a method that uses pended io requests such that I not only can get an interrupt signalled, to the user application through the fact that the io request was completed, but the now completed io request can also contain additional data which at this point seams meaningful from a conceptual point of view. I like!
Maybe I am spoiled because the only framework I have been using up til now is ‘kmdf’.
It uses the now for me more&less familiar WDFREQUEST / WDFMEMORY / … types. The references I am finding are mostly not written taking ‘wdf:kmdf/umdf’ in mind but rather ‘wdm’ or ‘legacy driver’ topologies. I do am aware that under the hood you could do wdm in a kmdf context, but this is not my expertise.
I am trying to keep what I do clean such that it is
- fundamentally sound conceptually ( thank you *3 already osronline )
- readable
- expandable (2 years after touching the code I would like to be able to continue working on it with ~.5 day of getting in to the groove of driver development)
I have found reference workpieceA :
http://www.osronline.com/article.cfm?name=inverted_call.zip&id=94
I have found reference workpieceB(within winddk source samples) :
C:\WinDDK\7600.16385.1\src\general\event\wdm\event.c
–> taking only in consideration the ‘2) Pending Irp’ context
Both give me a better grasp of what I should do but I am not getting too much traction in adapting this in my own code. For now I am figuring that ‘LIST_ENTRY’ at some abstract level might be interchangeable with WDFQUEUE, but I might be entirely wrong.
Question:
Is there a reference solution/code base for inverted call within the wdf framework?
Question:
With wdf in mind,
do you guys,
that implement inverted call on your own driver based on ‘article.cfm?name=inverted_call.zip&id=94’,
–> make adapter pieces to work with wdf, making minimal changes under the hood?
–> rewrite the inverted call plumbing with wdf objects ?
Many thanks in advance,
Kind Regards,
Donald