DPC for StartIo

  • Thread starter Thread starter Sameer
  • Start date Start date
S

Sameer

Hi all,

I am new member of this group.

Please let me know disadvantages, if any, for scheduling DPC for
StartIo.

Thanks in Advance,

Sameer
 
StartIo is called at dispatch level IIRC, so why do you need to schedule
aDPC? for synchronization?

d
 
If I have a custom IRP queue, and I call IostartNextPacket from my
Custom IRP queue's StartIo, then it is again going to call StartIo.
This may cause stack overflow.

So I think it will be better to have DPC.

Please clarify if I am wrong.

Sameer
 
you are right, but you want to call IoSetStartIoAttributes with the 2nd
parameter as TRUE. this will prevent the recursion. this API is available
on XP and later.

d
 
Back
Top