~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/userspace-api/media/gen-errors.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/userspace-api/media/gen-errors.rst (Version linux-6.12-rc7) and /Documentation/userspace-api/media/gen-errors.rst (Version linux-5.16.20)


  1 .. SPDX-License-Identifier: GFDL-1.1-no-invari      1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2                                                     2 
  3 .. _gen_errors:                                     3 .. _gen_errors:
  4                                                     4 
  5 *******************                                 5 *******************
  6 Generic Error Codes                                 6 Generic Error Codes
  7 *******************                                 7 *******************
  8                                                     8 
  9                                                     9 
 10 .. _gen-errors:                                    10 .. _gen-errors:
 11                                                    11 
 12 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|           12 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
 13                                                    13 
 14 .. flat-table:: Generic error codes                14 .. flat-table:: Generic error codes
 15     :header-rows:  0                               15     :header-rows:  0
 16     :stub-columns: 0                               16     :stub-columns: 0
 17     :widths: 1 16                                  17     :widths: 1 16
 18                                                    18 
 19                                                    19 
 20     -  -  ``EAGAIN`` (aka ``EWOULDBLOCK``)         20     -  -  ``EAGAIN`` (aka ``EWOULDBLOCK``)
 21                                                    21 
 22        -  The ioctl can't be handled because t     22        -  The ioctl can't be handled because the device is in state where it
 23           can't perform it. This could happen      23           can't perform it. This could happen for example in case where
 24           device is sleeping and ioctl is perf     24           device is sleeping and ioctl is performed to query statistics. It
 25           is also returned when the ioctl woul     25           is also returned when the ioctl would need to wait for an event,
 26           but the device was opened in non-blo     26           but the device was opened in non-blocking mode.
 27                                                    27 
 28     -  -  ``EBADF``                                28     -  -  ``EBADF``
 29                                                    29 
 30        -  The file descriptor is not a valid.      30        -  The file descriptor is not a valid.
 31                                                    31 
 32     -  -  ``EBUSY``                                32     -  -  ``EBUSY``
 33                                                    33 
 34        -  The ioctl can't be handled because t     34        -  The ioctl can't be handled because the device is busy. This is
 35           typically return while device is str     35           typically return while device is streaming, and an ioctl tried to
 36           change something that would affect t     36           change something that would affect the stream, or would require
 37           the usage of a hardware resource tha     37           the usage of a hardware resource that was already allocated. The
 38           ioctl must not be retried without pe     38           ioctl must not be retried without performing another action to fix
 39           the problem first (typically: stop t     39           the problem first (typically: stop the stream before retrying).
 40                                                    40 
 41     -  -  ``EFAULT``                               41     -  -  ``EFAULT``
 42                                                    42 
 43        -  There was a failure while copying da     43        -  There was a failure while copying data from/to userspace, probably
 44           caused by an invalid pointer referen     44           caused by an invalid pointer reference.
 45                                                    45 
 46     -  -  ``EINVAL``                               46     -  -  ``EINVAL``
 47                                                    47 
 48        -  One or more of the ioctl parameters      48        -  One or more of the ioctl parameters are invalid or out of the
 49           allowed range. This is a widely used     49           allowed range. This is a widely used error code. See the
 50           individual ioctl requests for specif     50           individual ioctl requests for specific causes.
 51                                                    51 
 52     -  -  ``ENODEV``                               52     -  -  ``ENODEV``
 53                                                    53 
 54        -  Device not found or was removed.         54        -  Device not found or was removed.
 55                                                    55 
 56     -  -  ``ENOMEM``                               56     -  -  ``ENOMEM``
 57                                                    57 
 58        -  There's not enough memory to handle      58        -  There's not enough memory to handle the desired operation.
 59                                                    59 
 60     -  -  ``ENOTTY``                               60     -  -  ``ENOTTY``
 61                                                    61 
 62        -  The ioctl is not supported by the fi !!  62        -  The ioctl is not supported by the driver, actually meaning that
                                                   >>  63           the required functionality is not available, or the file
                                                   >>  64           descriptor is not for a media device.
 63                                                    65 
 64     -  -  ``ENOSPC``                               66     -  -  ``ENOSPC``
 65                                                    67 
 66        -  On USB devices, the stream ioctl's c     68        -  On USB devices, the stream ioctl's can return this error, meaning
 67           that this request would overcommit t     69           that this request would overcommit the usb bandwidth reserved for
 68           periodic transfers (up to 80% of the     70           periodic transfers (up to 80% of the USB bandwidth).
 69                                                    71 
 70     -  -  ``EPERM``                                72     -  -  ``EPERM``
 71                                                    73 
 72        -  Permission denied. Can be returned i     74        -  Permission denied. Can be returned if the device needs write
 73           permission, or some special capabili     75           permission, or some special capabilities is needed (e. g. root)
 74                                                    76 
 75     -  -  ``EIO``                                  77     -  -  ``EIO``
 76                                                    78 
 77        -  I/O error. Typically used when there     79        -  I/O error. Typically used when there are problems communicating with
 78           a hardware device. This could indica     80           a hardware device. This could indicate broken or flaky hardware.
 79           It's a 'Something is wrong, I give u     81           It's a 'Something is wrong, I give up!' type of error.
 80                                                    82 
 81     -  - ``ENXIO``                                 83     -  - ``ENXIO``
 82                                                    84 
 83        -  No device corresponding to this devi     85        -  No device corresponding to this device special file exists.
 84                                                    86 
 85                                                    87 
 86 .. note::                                          88 .. note::
 87                                                    89 
 88   #. This list is not exhaustive; ioctls may r     90   #. This list is not exhaustive; ioctls may return other error codes.
 89      Since errors may have side effects such a     91      Since errors may have side effects such as a driver reset,
 90      applications should abort on unexpected e     92      applications should abort on unexpected errors, or otherwise
 91      assume that the device is in a bad state.     93      assume that the device is in a bad state.
 92                                                    94 
 93   #. Request-specific error codes are listed i     95   #. Request-specific error codes are listed in the individual
 94      requests descriptions.                        96      requests descriptions.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php