Skip to contentSkip to conversation

scsi_do_req documentation?

DISCUSSION Russell Lewis 2 participants 2 messages Aug 19, 2002 – Aug 22, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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 the Scsi_Cmnd structure.

Signature · 2 lines
Michael Anderson
[email protected]