scsi_abort(D3X)
scsi_abort - abort a command previously issued by scsi_command
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME scsi_abort - abort a command previously issued by scsi_command SYNOPSIS #include <sys/types.h> #include <sys/scsi.h> void (*scsi_abort[])(struct scsi_request *req); DESCRIPTION scsi_abort aborts a command previously issued through scsi_command. If the command has been completed, or is not otherwise found in the driver or host adapter queues, scsi_abort does nothing. The caller (a kernel level SCSI device driver) passes in a scsi_request structure corresponding to the command to be aborted. The sr_lun_vhdl field of the request structure must contain the vertex handle of the device. A kernel panic will result if this is not done. The scsi_abort function returns 0 if the abort was unable to be sent; otherwise it returns 1. NOTES scsi_abort is stored as a function pointer in the information hanging off the vertex handle corresponding to the host adapter in the hwgraph. Given a lun_vhdl (vertex handle of the device) the scsi_abort function can be called as follows: scsi_lun_info_t *scsi_lun_info; ... scsi_lun_info = scsi_lun_info_get(lun_vhdl); SLI_ABORT(scsi_lun_info)(scsi_request); SEE ALSO comments in /usr/include/sys/scsi.h, hwgraph.intro(D4X), scsi_alloc(D3X), scsi_free(D3X), scsi_info(D3X), scsi_command(D3X), scsi_ioctl(D3X), SCSI chapter of the IRIX Device Driver Programmer's Guide