Rather than ask what you’re doing wrong, which is trying to call that
function directly and therefore doing an end-run around ScsiPort, tell us
what you want to do. If you want to stay a miniport under ScsiPort you
cannot do that. You only alternative would be to write your own port driver,
which would mean your about 20 years behind ScsiPort in debug and
reliability.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@surfright.nl
Sent: Friday, June 04, 2010 5:21 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to call DriverStartIo directly
Hi,
I am sending an SRB using IoCallDriver to a disk driver. After some
examination I see that the Irp is being queued and then
DriverObject->DriverStartIo (which is ScsiPortStartIo in my case) is being
called to process the Irp.
Is there a way to directly call DriverObject->DriverStartIo function from my
driver (around the queue)?
I have now replaced the IoCallDriver call with these three lines:
//
// Must be at DISPATCH_LEVEL
//
KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
DeviceObject->DriverObject->DriverStartIo(DeviceObject, Irp);
KeLowerIrql(OldIrql);
… but I get a BSOD
Can I directly call the DriverStartIo or should I perform some additional
actions first? Should the Irp be changed in some way so that the
DriverStartIo accepts it? What am I doing wrong?
Help is much appreciated.
Regards,
Erik
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
__________ Information from ESET Smart Security, version of virus signature
database 5173 (20100604) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature
database 5173 (20100604) __________
The message was checked by ESET Smart Security.
http://www.eset.com