IOCTL error codes
The following codes and their descriptions apply to IOCTL operations.
- [EINVAL]
- The operation that is requested has invalid parameters or an invalid
combination of parameters.
This error code also results if the IOCTL is not supported for the device.
- [EWRPROTECT]
- An operation that modifies the media was attempted on a write-protected tape or a device opened with the O_RDONLY flag.
- [EIO]
- An I/O error occurred during the operation. Perform the failure analysis.
- [ECANCELLED]
- The STIOCTOP IOCTL with the st_op field that specifies STERASE_IMM was canceled by another process that issued the STIOC_CANCEL_ERASE IOCTL.