1 .. SPDX-License-Identifier: GFDL-1.1-no-invari 2 3 .. _gen_errors: 4 5 ******************* 6 Generic Error Codes 7 ******************* 8 9 10 .. _gen-errors: 11 12 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}| 13 14 .. flat-table:: Generic error codes 15 :header-rows: 0 16 :stub-columns: 0 17 :widths: 1 16 18 19 20 - - ``EAGAIN`` (aka ``EWOULDBLOCK``) 21 22 - The ioctl can't be handled because t 23 can't perform it. This could happen 24 device is sleeping and ioctl is perf 25 is also returned when the ioctl woul 26 but the device was opened in non-blo 27 28 - - ``EBADF`` 29 30 - The file descriptor is not a valid. 31 32 - - ``EBUSY`` 33 34 - The ioctl can't be handled because t 35 typically return while device is str 36 change something that would affect t 37 the usage of a hardware resource tha 38 ioctl must not be retried without pe 39 the problem first (typically: stop t 40 41 - - ``EFAULT`` 42 43 - There was a failure while copying da 44 caused by an invalid pointer referen 45 46 - - ``EINVAL`` 47 48 - One or more of the ioctl parameters 49 allowed range. This is a widely used 50 individual ioctl requests for specif 51 52 - - ``ENODEV`` 53 54 - Device not found or was removed. 55 56 - - ``ENOMEM`` 57 58 - There's not enough memory to handle 59 60 - - ``ENOTTY`` 61 62 - The ioctl is not supported by the fi 63 64 - - ``ENOSPC`` 65 66 - On USB devices, the stream ioctl's c 67 that this request would overcommit t 68 periodic transfers (up to 80% of the 69 70 - - ``EPERM`` 71 72 - Permission denied. Can be returned i 73 permission, or some special capabili 74 75 - - ``EIO`` 76 77 - I/O error. Typically used when there 78 a hardware device. This could indica 79 It's a 'Something is wrong, I give u 80 81 - - ``ENXIO`` 82 83 - No device corresponding to this devi 84 85 86 .. note:: 87 88 #. This list is not exhaustive; ioctls may r 89 Since errors may have side effects such a 90 applications should abort on unexpected e 91 assume that the device is in a bad state. 92 93 #. Request-specific error codes are listed i 94 requests descriptions.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.