Commit 3a35c00b authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] DocBook: update ioctl error codes

ENOTTY is now returned for unimplemented ioctl by dvb-frontend.
Old EOPNOTSUPP & ENOSYS could be still returned by some drivers
as well as other "non standard" error codes.

EAGAIN is returned in case of device is in state where it cannot
perform requested operation. This is for example sleep and statistics
are queried. Quick check for few demodulator drivers reveals there is
a lot of different error codes used in such case currently, few to
mention still: EOPNOTSUPP, ENOSYS, EAGAIN ... Lets try harmonize.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 177ffe50
...@@ -6,6 +6,13 @@ ...@@ -6,6 +6,13 @@
&cs-str; &cs-str;
<tbody valign="top"> <tbody valign="top">
<!-- Keep it ordered alphabetically --> <!-- Keep it ordered alphabetically -->
<row>
<entry>EAGAIN</entry>
<entry>The ioctl can't be handled because the device is in state where
it can't perform it. This could happen for example in case where
device is sleeping and ioctl is performed to query statistics.
</entry>
</row>
<row> <row>
<entry>EBADF</entry> <entry>EBADF</entry>
<entry>The file descriptor is not a valid.</entry> <entry>The file descriptor is not a valid.</entry>
...@@ -50,11 +57,6 @@ ...@@ -50,11 +57,6 @@
that this request would overcommit the usb bandwidth reserved that this request would overcommit the usb bandwidth reserved
for periodic transfers (up to 80% of the USB bandwidth).</entry> for periodic transfers (up to 80% of the USB bandwidth).</entry>
</row> </row>
<row>
<entry>ENOSYS or EOPNOTSUPP</entry>
<entry>Function not available for this device (dvb API only. Will likely
be replaced anytime soon by ENOTTY).</entry>
</row>
<row> <row>
<entry>EPERM</entry> <entry>EPERM</entry>
<entry>Permission denied. Can be returned if the device needs write <entry>Permission denied. Can be returned if the device needs write
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment