scsi_abort - abort a SCSI command
#include <sys/scsi/scsi.h> intscsi_abort(struct scsi_address *ap, struct scsi_pkt *pkt);
Solaris DDI specific (Solaris DDI).
ap
pkt
The scsi_abort() function terminates a command that has been transported to the host adapter driver. A NULL pkt causes all outstanding packets to be aborted. On a successful abort, the pkt_reason is set to CMD_ABORTED and pkt_statistics is OR'ed with STAT_ABORTED.
The scsi_abort() function returns:
1
0
The scsi_abort() function can be called from user, interrupt, or kernel context.
Example 1 Terminating a command.
if (scsi_abort(&devp->sd_address, pkt) == 0) { (void) scsi_reset(&devp->sd_address, RESET_ALL); }
tran_abort(9E), scsi_reset(9F), scsi_pkt(9S)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |