|
|
udi_scsi_ctl_req(3udi)
Request a SCSI control operation (PD-to-HD)
#include <udi.h>void udi_scsi_ctl_req ( udi_scsi_ctl_cb_t *cb );ARGUMENTS cb is a pointer to a SCSI ctl control block.
TARGET CHANNEL The target channel for this operation is the bind channel connecting a SCSI PD to its parent HD.
DESCRIPTION A PD uses this operation to send a SCSI Control request to its parent HD.
The PD must prepare for the udi_scsi_ctl_req operation by allocating a scsi_ctl control block (calling udi_cb_alloc with a cb_idx that was previously associated with UDI_SCSI_CTL_CB_NUM). Next, the PD fills in the control block and sends it to the HD in a udi_scsi_ctl_req operation.
This operation is recoverable by the PD upon abrupt termination of an instance of the HD. Each SCSI control request outstanding in the HD when it is abruptly terminates will be completed by the environment with a corresponding udi_scsi_ctl_nak operation with a status code of UDI_STAT_TERMINATED. (See the definition of UDI_STAT_TERMINATED in Table 9 of the UDI Core Specification.)