Open error codes

The following codes and their descriptions apply to open operations.
The device was opened before the open operation.
A write operation was attempted on a device that was opened with the O_RDONLY flag.
The device was reserved by another initiator, or an excessive busy state was encountered.
The operation that is requested has invalid parameters or an invalid combination of parameters, or the device is rejecting open commands.
If the device was not opened with the O_NONBLOCK or O_NDELAY flag, then the drive is not ready for operation, or a tape is not in the drive. If a nonblocking flag was used, then the drive is not ready for operation.
An open operation with the O_RDWR or O_WRONLY flag was attempted on a write-protected tape.
An I/O error occurred that indicates a failure to operate the device. Perform the failure analysis.
This errno is returned when the extended open flag SC_KILL_OPEN is used to kill all processes that currently have the device opened.