why does IoRequestDpc recieve irp as param

hi all

i have a question
it is very basic
but not simple
why does IoRequestDpc recieve as parameter IRP?
if it is the device’s current irp then
it is already passed a pointer to the device
it could easily extract device->currentIrp
why pass irp?
it will always be the current irp!!!

assaf


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This parameter is routinely ignored as it makes no sense at all for drivers
that use their own internal queueing mechanism, and as you point out, not
much sense for those drivers using system queuing. If you are using
systemqueuing then go ahead and pass in DeviceObject.CurrentIrp, otherwise
use NULL.

-----Original Message-----
From: Assaf Wodeslavsky [mailto:xxxxx@hotmail.com]
Sent: Sunday, December 16, 2001 4:17 PM
To: NT Developers Interest List
Subject: [ntdev] why does IoRequestDpc recieve irp as param

hi all

i have a question
it is very basic
but not simple
why does IoRequestDpc recieve as parameter IRP?
if it is the device’s current irp then
it is already passed a pointer to the device
it could easily extract device->currentIrp
why pass irp?
it will always be the current irp!!!

assaf

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Messagethanks
assaf
----- Original Message -----
From: Roddy, Mark
To: NT Developers Interest List
Sent: Monday, December 17, 2001 3:45 PM
Subject: [ntdev] RE: why does IoRequestDpc recieve irp as param

This parameter is routinely ignored as it makes no sense at all for drivers that use their own internal queueing mechanism, and as you point out, not much sense for those drivers using system queuing. If you are using systemqueuing then go ahead and pass in DeviceObject.CurrentIrp, otherwise use NULL.
-----Original Message-----
From: Assaf Wodeslavsky [mailto:xxxxx@hotmail.com]
Sent: Sunday, December 16, 2001 4:17 PM
To: NT Developers Interest List
Subject: [ntdev] why does IoRequestDpc recieve irp as param

hi all

i have a question
it is very basic
but not simple
why does IoRequestDpc recieve as parameter IRP?
if it is the device’s current irp then
it is already passed a pointer to the device
it could easily extract device->currentIrp
why pass irp?
it will always be the current irp!!!

assaf

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com