1 <title>Generic Error Codes</title>
3 <table frame="none" pgwide="1" id="gen-errors">
4 <title>Generic error codes</title>
8 <!-- Keep it ordered alphabetically -->
10 <entry>EAGAIN (aka EWOULDBLOCK)</entry>
11 <entry>The ioctl can't be handled because the device is in state where
12 it can't perform it. This could happen for example in case where
13 device is sleeping and ioctl is performed to query statistics.
14 It is also returned when the ioctl would need to wait
15 for an event, but the device was opened in non-blocking mode.
20 <entry>The file descriptor is not a valid.</entry>
24 <entry>The ioctl can't be handled because the device is busy. This is
25 typically return while device is streaming, and an ioctl tried to
26 change something that would affect the stream, or would require the
27 usage of a hardware resource that was already allocated. The ioctl
28 must not be retried without performing another action to fix the
29 problem first (typically: stop the stream before retrying).</entry>
33 <entry>There was a failure while copying data from/to userspace,
34 probably caused by an invalid pointer reference.</entry>
38 <entry>One or more of the ioctl parameters are invalid or out of the
39 allowed range. This is a widely used error code. See the individual
40 ioctl requests for specific causes.</entry>
44 <entry>Device not found or was removed.</entry>
48 <entry>There's not enough memory to handle the desired operation.</entry>
52 <entry>The ioctl is not supported by the driver, actually meaning that
53 the required functionality is not available, or the file
54 descriptor is not for a media device.</entry>
58 <entry>On USB devices, the stream ioctl's can return this error, meaning
59 that this request would overcommit the usb bandwidth reserved
60 for periodic transfers (up to 80% of the USB bandwidth).</entry>
64 <entry>Permission denied. Can be returned if the device needs write
65 permission, or some special capabilities is needed
72 <para>Note 1: ioctls may return other error codes. Since errors may have side
73 effects such as a driver reset, applications should abort on unexpected errors.
76 <para>Note 2: Request-specific error codes are listed in the individual
77 requests descriptions.</para>