Return values, Files – Compex Systems Advanced SerialRAID Adapters SA33-3285-02 User Manual

Page 304

Advertising
background image

u0.scsi.cdb_length

Set by the caller to indicate the length of the CDB.

u0.scsi.scsi_status

Contains the SCSI status that is returned for the command.

The device driver does not know the contents of the CDB. The driver only passes on
the CDB to the hardware. See the relevant hardware documentation to determine what
CDBs are valid for a particular SSA physical disk.

Return Values

If the command was successfully sent to the adapter card, this operation returns a
value of 0. Otherwise, it returns a value of -1, and sets the errno global variable set to
one of the following values:

EIO

Either an unrecoverable I/O error has occurred, or the hardware did not
recognize the SCSI command as valid.

EINVAL

Either the

u0.scsi.cdb_length

field in the

ssadisk_ioctl_parms

structure was

set to a length that is not valid, or the

u0.scsi.direction

field in the

ssadisk_ioctl_parms

structure was set to a value that is not valid.

EPERM

The caller did not have an effective user ID (EUID) of 0.

ENOMEM

The device driver was unable to allocate or pin enough memory to complete
the operation.

If the return code is 0, the result field of the ssadisk_ioctl_parms structure is valid.
The return code indicates whether the adapter was able to process the command
successfully.

Files

/dev/pdisk0, /dev/pdisk1, ..., /dev/pdiskn

Provide an interface to allow SSA device drivers to access physical SSA disks.

/dev/hdisk0, /dev/hdisk1,..., /dev/hdiskn

Provide an interface to allow SSA device drivers to access logical SSA disks.

284

User’s Guide and Maintenance Information

Advertising