timeout_value = ((transfer_length / 65536) + 1) * 20
In the calculation, 20 is the default scaling factor that generates the time-out value. The
caller can customize the time-out value through the TMCHGIMPARM operation. The
actual period that elapses before a time-out occurs can be up to 10 seconds longer
than the calculated value, because it is related to the operation of the hardware at the
time of the write operation. A time-out value of zero means that no time-out occurs. A
value of zero is not allowed when the write operation is nonblocking, because a
deadlock might occur. Under this condition, EINVAL is returned for the write operation.
If the caller opened the initiator-mode device with the O_NDELAY flag set, the write
operation is nonblocking. In this mode, the device checks whether enough buffer space
is available for the write operation. If enough buffer space is not available, the write
operation fails, and the errno global variable is set to EAGAIN. If enough buffer space
is available, the write operation immediately ends with all the data written successfully.
The write operation now occurs asynchronously. If you want to track the progress of this
write operation, use the TMIOSTAT operation. The driver keeps the status of the last
write operation, which is then reported by the TMIOSTAT operation.
Possible return values for the errno global variable include:
EFAULT
The write operation was unsuccessful because of a kernel service error. This
value is applicable only during data gathering.
EINTR
Interrupted by signal.
EINVAL
Attempted to execute a write operation for a device instance that is not
configured, not open, or is not an initiator-mode minor device number. If a
nonblocking write operation, the transfer length is too long, or the time-out
period is zero. If the transfer length is too long, try the operation again with a
smaller transfer length. If the time-out period is zero, use TMCHGIMPARM to
set the time-out value to another value.
EAGAIN
A nonblocking write operation could not proceed because not enough buffer
space was available. Try the operation again later.
EIO
One of the following I/O errors occurred:
v
An error that cannot be produced again.
v
The number or retried operations reached the limit that is specified in
TM_MAXRETRY without success on an error that cannot be reproduced.
v
The target-mode device of the remote node is not initialized or open.
Do the appropriate error recovery routine.
ETIMEDOUT
The command has timed out. Do the appropriate error recovery routine.
300
User’s Guide and Maintenance Information
Содержание Advanced SerialRAID Adapters SA33-3285-02
Страница 1: ...Advanced SerialRAID Adapters User s Guide and Maintenance Information SA33 3285 02 ...
Страница 2: ......
Страница 3: ...Advanced SerialRAID Adapters User s Guide and Maintenance Information SA33 3285 02 ...
Страница 16: ...xiv User s Guide and Maintenance Information ...
Страница 18: ...xvi User s Guide and Maintenance Information ...
Страница 21: ...Part 1 User Information 1 ...
Страница 22: ...2 User s Guide and Maintenance Information ...
Страница 48: ...28 User s Guide and Maintenance Information ...
Страница 64: ...44 User s Guide and Maintenance Information ...
Страница 76: ...56 User s Guide and Maintenance Information ...
Страница 212: ...192 User s Guide and Maintenance Information ...
Страница 228: ...208 User s Guide and Maintenance Information ...
Страница 230: ...210 User s Guide and Maintenance Information ...
Страница 254: ...234 User s Guide and Maintenance Information ...
Страница 274: ...254 User s Guide and Maintenance Information ...
Страница 330: ...310 User s Guide and Maintenance Information ...
Страница 331: ...Part 2 Maintenance Information 311 ...
Страница 332: ...312 User s Guide and Maintenance Information ...
Страница 338: ...318 User s Guide and Maintenance Information ...
Страница 430: ...410 User s Guide and Maintenance Information ...
Страница 503: ...Part 3 Appendixes 483 ...
Страница 504: ...484 User s Guide and Maintenance Information ...
Страница 508: ...488 User s Guide and Maintenance Information ...
Страница 529: ......
Страница 530: ...Part Number 27H0678 Printed in the U S A SA33 3285 02 1P P N 27H0678 ...
Страница 531: ...Spine information Advanced SerialRAID Adapters User s Guide and Maintenance Information ...