Hi friends,
In a scsi miniport driver, if the “startio” routine can’t complete a SRB, and if the SRB will have to be completed after related interrupts, then what should I do at the end of my “startio” routine in this case?
Should I call the function “ScsiPortNotification()” ? And if yes, how to transfer the parametres?
Thank you!
ScsiPortNotification(NextRequest, DeviceExtension, NULL); or
ScsiPortNotificaiton(NextLuRequest, DeviceExtension, Path, Target, Lun);
On Jan 4, 2008 4:32 AM, wrote:
> Hi friends,
>
> In a scsi miniport driver, if the “startio” routine can’t complete a
> SRB, and if the SRB will have to be completed after related interrupts, then
> what should I do at the end of my “startio” routine in this case?
> Should I call the function “ScsiPortNotification()” ? And if yes, how to
> transfer the parametres?
>
> Thank you!
>
>
> —
> 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
>
–
Mark Roddy
I would add the following:
- any next calls to StartIo are blocked till Next(Lu)Request notification
is called.
- calling NextRequest allows SCSIPORT to deliver next SRBs to StartIo, but
only the SRBs related to another LUNs. SRBs related to this LUN are blocked
till the current SRB will be completed.
- NextLuRequest both allows delivery of the next SRB from this LUN (even in
the presence of the current SRB) and also allows general delivery of the SRBs
to StartIo.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
“Mark Roddy” wrote in message news:xxxxx@ntdev…
> ScsiPortNotification(NextRequest, DeviceExtension, NULL); or
> ScsiPortNotificaiton(NextLuRequest, DeviceExtension, Path, Target, Lun);
>
> On Jan 4, 2008 4:32 AM, wrote:
>
> > Hi friends,
> >
> > In a scsi miniport driver, if the “startio” routine can’t complete a
> > SRB, and if the SRB will have to be completed after related interrupts,
then
> > what should I do at the end of my “startio” routine in this case?
> > Should I call the function “ScsiPortNotification()” ? And if yes, how to
> > transfer the parametres?
> >
> > Thank you!
> >
> >
> > —
> > 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
> >
>
>
>
> –
> Mark Roddy
>