beautypg.com

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

Page 302

background image

u0.isal.status_descriptor

Set by the caller to indicate the buffer for status data.

u0.isal.minor_function

Set by the caller to one of the ISAL Manager Commands that is defined in the
/usr/include/ipn/ipnsal.h file and listed at the start of the description of this
operation.

Note: Structures are provided in the /usr/include/ipn/ipnsal.h file. This file can be

used to format the contents of the parameter buffer for the various commands.
The resource ID that is located in the first four bytes of the parameter buffer is
always overwritten with the correct Resource ID for the device by the device
driver.

Return Values

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

EIO

Indicates an unrecoverable I/O error.

EINVAL

Indicates that the caller has specified an ISAL manager command that is not in
the list of supported ISAL manager commands. (The commands are listed at
the start of the description of this operation.)

EPERM

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

ENOMEM

Indicates that 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.

282

User’s Guide and Maintenance Information