IOCTL error codes

The following codes and their descriptions apply to IOCTL operations.
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.

An operation that modifies the media was attempted on a write-protected tape or a device opened with the O_RDONLY flag.
An I/O error occurred during the operation. Perform the failure analysis.
The STIOCTOP IOCTL with the st_op field that specifies STERASE_IMM was canceled by another process that issued the STIOC_CANCEL_ERASE IOCTL.