DPC for StartIo

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
 
D

Doron Holan [MS]

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

d
 
S

Sameer

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
 
D

Doron Holan [MS]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top