scsi_do_req documentation?
Can somebody give me a link to good documentation of scsi_do_req? I'm looking especially for details on how my done function will be called (interrupt context or not?) and who's responsible for cleaning up the Scsi_Cmnd structure.
Russell,
I do not know of any documentation on scsi_do_req. If you have not already found your answer take a look at sg.c as it uses scsi_do_req.
The short answer to your question is that your done will be called from scsi_finish_command which is called from scsi_softirq.
The scsi_do_req caller is responsible for cleaning up the Scsi_Cmnd by calling scsi_release_request in there done function.
-Mike
Quoted 4 lines · Russell Lewis [[email protected]] wrote:
Can somebody give me a link to good documentation of
scsi_do_req? I'm looking especially for details on how my done function will be called (interrupt context or not?) and who's responsible for cleaning up theScsi_Cmndstructure.
Signature · 2 lines
Michael Anderson [email protected]