aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-15 19:28:40 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-10 10:28:50 -0400
commit3a35c00b048ec368978cb497415c7a02f9200415 (patch)
treeb355df639de495a2298d5d5fdb369d44a3738dd5
parent177ffe506cf8ab5d1d52e7af36871a70d8c22e90 (diff)
[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: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--Documentation/DocBook/media/v4l/gen-errors.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/DocBook/media/v4l/gen-errors.xml b/Documentation/DocBook/media/v4l/gen-errors.xml
index 5bbf3ce1973a..737ecaaa335d 100644
--- a/Documentation/DocBook/media/v4l/gen-errors.xml
+++ b/Documentation/DocBook/media/v4l/gen-errors.xml
@@ -7,6 +7,13 @@
7 <tbody valign="top"> 7 <tbody valign="top">
8 <!-- Keep it ordered alphabetically --> 8 <!-- Keep it ordered alphabetically -->
9 <row> 9 <row>
10 <entry>EAGAIN</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 </entry>
15 </row>
16 <row>
10 <entry>EBADF</entry> 17 <entry>EBADF</entry>
11 <entry>The file descriptor is not a valid.</entry> 18 <entry>The file descriptor is not a valid.</entry>
12 </row> 19 </row>
@@ -51,11 +58,6 @@
51 for periodic transfers (up to 80% of the USB bandwidth).</entry> 58 for periodic transfers (up to 80% of the USB bandwidth).</entry>
52 </row> 59 </row>
53 <row> 60 <row>
54 <entry>ENOSYS or EOPNOTSUPP</entry>
55 <entry>Function not available for this device (dvb API only. Will likely
56 be replaced anytime soon by ENOTTY).</entry>
57 </row>
58 <row>
59 <entry>EPERM</entry> 61 <entry>EPERM</entry>
60 <entry>Permission denied. Can be returned if the device needs write 62 <entry>Permission denied. Can be returned if the device needs write
61 permission, or some special capabilities is needed 63 permission, or some special capabilities is needed