ioctl Subroutine
The following ioctl operations are provided by the target-mode device driver. Some are
specific to either the target-mode device or the initiator-mode device. All require the
respective device instance be open for the operation run.
IOCINFO
Returns a structure defined in the /usr/include/sys/devinfo.h file.
TMCHGIMPARM
Allows the caller to change some parameters that are used by the target mode
device driver for a particular device instance.
TMIOSTAT
Allows the caller to get status information about the previously run write
operation.
Possible return values for the errno global variable include:
EFAULT
The kernel service failed when it tried to access the caller buffers.
EINVAL
The device not open or not configured. The operation is not applicable to
mode of this device. A parameter that is not valid was passed to the device
driver.
select Entry Point
The select entry point allows the caller to know when a specified event has occurred on
one or more target-mode devices. The event input parameter allows the caller to
specify about which of one or more conditions it wants to be notified by a bitwise OR of
one or more flags. The target-mode device driver provides support for the following
select events:
POLLIN
Check whether received data is available.
POLLSYNC
Return only events that are currently pending. No asynchronous notification
occurs.
The additional events, POLLOUT and POLLPRI, are not applicable. The target-mode
device driver does not, therefore, provide support for them.
The reventp output parameter points to the result of the conditional checks. The device
driver can return a bitwise OR of the following flags:
POLLIN
Received data is available.
The chan input parameter is used for specifying a channel number. This parameter is
not applicable for nonmultiplexed device drivers. It should be set to 0 for the
target-mode device driver.
Chapter 13. Using the Programming Interface
301
Summary of Contents for Advanced SerialRAID Adapters SA33-3285-02
Page 1: ...Advanced SerialRAID Adapters User s Guide and Maintenance Information SA33 3285 02 ...
Page 2: ......
Page 3: ...Advanced SerialRAID Adapters User s Guide and Maintenance Information SA33 3285 02 ...
Page 16: ...xiv User s Guide and Maintenance Information ...
Page 18: ...xvi User s Guide and Maintenance Information ...
Page 21: ...Part 1 User Information 1 ...
Page 22: ...2 User s Guide and Maintenance Information ...
Page 48: ...28 User s Guide and Maintenance Information ...
Page 64: ...44 User s Guide and Maintenance Information ...
Page 76: ...56 User s Guide and Maintenance Information ...
Page 212: ...192 User s Guide and Maintenance Information ...
Page 228: ...208 User s Guide and Maintenance Information ...
Page 230: ...210 User s Guide and Maintenance Information ...
Page 254: ...234 User s Guide and Maintenance Information ...
Page 274: ...254 User s Guide and Maintenance Information ...
Page 330: ...310 User s Guide and Maintenance Information ...
Page 331: ...Part 2 Maintenance Information 311 ...
Page 332: ...312 User s Guide and Maintenance Information ...
Page 338: ...318 User s Guide and Maintenance Information ...
Page 430: ...410 User s Guide and Maintenance Information ...
Page 503: ...Part 3 Appendixes 483 ...
Page 504: ...484 User s Guide and Maintenance Information ...
Page 508: ...488 User s Guide and Maintenance Information ...
Page 529: ......
Page 530: ...Part Number 27H0678 Printed in the U S A SA33 3285 02 1P P N 27H0678 ...
Page 531: ...Spine information Advanced SerialRAID Adapters User s Guide and Maintenance Information ...