DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

udi_scsi_ctl_ack(3udi)


Ack completion of SCSI control request (HD-to-PD)

SYNOPSIS

#include <udi.h>

void udi_scsi_ctl_ack (

	udi_scsi_ctl_cb_t *cb,

	udi_status_t status );
 

ARGUMENTS cb is a pointer to a SCSI ctl control block.

status is the status of the SCSI control request, and shall be one of the following values:

UDI_OK -- Normal completion.

UDI_STAT_HW_PROBLEM -- Adapter hardware error prevented completion of control request.

UDI_STAT_NOT_UNDERSTOOD -- Control request block is invalid.

UDI_STAT_NOT_SUPPORTED -- Control request block is not in error, but the specific request type is not supported by the HD.

UDI_STAT_TERMINATED - The HD instance was abruptly terminated and this command was automatically completed by the environment. Drivers must never generate this status code directly.

UDI_SCSI_CTL_STAT_FAILED -- Control request failed for some other unspecified reason.

Note that all the status codes except UDI_SCSI_CTL_STAT_FAILED are common status codes whose constant values are defined in Chapter 9, "Fundamental Types", of the UDI Core Specification.

TARGET CHANNEL The target channel for this operation is the bind channel connecting a SCSI HD to its child PD.

DESCRIPTION udi_scsi_ctl_ack is called by an HD to acknowledge completion of a SCSI Control request back to a child PD (indicating success or failure), as requested by a udi_scsi_ctl_req operation.

warnings The control block must be the same control block as passed to the HD in the corresponding udi_scsi_ctl_req operation.

REFERENCES udi_scsi_ctl_cb_t, udi_scsi_ctl_req


UDI SCSI Driver Specification Contents