Commit 66b30b5d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] DocBook/dvb: Use generic descriptions for the frontend API

Move generic stuff into gen-errors.xml, and remove them from
DVB API. While here, removes two bogus error codes that aren't
supported or used on Linux: EINTERNAL and ENOSIGNAL.
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 16d6c0b0
...@@ -82,15 +82,6 @@ struct dtv_properties { ...@@ -82,15 +82,6 @@ struct dtv_properties {
</row></tbody></tgroup></informaltable> </row></tbody></tgroup></informaltable>
&return-value-dvb; &return-value-dvb;
<informaltable><tgroup cols="2"><tbody><row> <informaltable><tgroup cols="2"><tbody><row>
<entry align="char"><para>EINVAL</para></entry>
<entry align="char"><para>Invalid parameter(s) received or number of parameters out of the range.</para></entry>
</row><row>
<entry align="char"><para>ENOMEM</para></entry>
<entry align="char"><para>Out of memory.</para></entry>
</row><row>
<entry align="char"><para>EFAULT</para></entry>
<entry align="char"><para>Failure while copying data from/to userspace.</para></entry>
</row><row>
<entry align="char"><para>EOPNOTSUPP</para></entry> <entry align="char"><para>EOPNOTSUPP</para></entry>
<entry align="char"><para>Property type not supported.</para></entry> <entry align="char"><para>Property type not supported.</para></entry>
</row></tbody></tgroup></informaltable> </row></tbody></tgroup></informaltable>
...@@ -139,15 +130,6 @@ struct dtv_properties { ...@@ -139,15 +130,6 @@ struct dtv_properties {
</row></tbody></tgroup></informaltable> </row></tbody></tgroup></informaltable>
&return-value-dvb; &return-value-dvb;
<informaltable><tgroup cols="2"><tbody><row> <informaltable><tgroup cols="2"><tbody><row>
<entry align="char"><para>EINVAL</para></entry>
<entry align="char"><para>Invalid parameter(s) received or number of parameters out of the range.</para></entry>
</row><row>
<entry align="char"><para>ENOMEM</para></entry>
<entry align="char"><para>Out of memory.</para></entry>
</row><row>
<entry align="char"><para>EFAULT</para></entry>
<entry align="char"><para>Failure while copying data from/to userspace.</para></entry>
</row><row>
<entry align="char"><para>EOPNOTSUPP</para></entry> <entry align="char"><para>EOPNOTSUPP</para></entry>
<entry align="char"><para>Property type not supported.</para></entry> <entry align="char"><para>Property type not supported.</para></entry>
</row></tbody></tgroup></informaltable> </row></tbody></tgroup></informaltable>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<!-- Keep it ordered alphabetically --> <!-- Keep it ordered alphabetically -->
<row> <row>
<entry>EBADF</entry> <entry>EBADF</entry>
<entry><parameter>fd</parameter> is not a valid open file descriptor.</entry> <entry>The file descriptor is not a valid.</entry>
</row> </row>
<row> <row>
<entry>EBUSY</entry> <entry>EBUSY</entry>
...@@ -21,18 +21,21 @@ ...@@ -21,18 +21,21 @@
</row> </row>
<row> <row>
<entry>EFAULT</entry> <entry>EFAULT</entry>
<entry><parameter>fd</parameter> is not a valid open file descriptor.</entry> <entry>There was a failure while copying data from/to userspace,
probably caused by an invalid pointer reference.</entry>
</row> </row>
<row> <row>
<entry>EINVAL</entry> <entry>EINVAL</entry>
<entry>One or more of the ioctl parameters are invalid. This is a widely <entry>One or more of the ioctl parameters are invalid or out of the
used error code. See the individual ioctl requests for actual causes.</entry> allowed range. This is a widely used error code. See the individual
ioctl requests for specific causes.</entry>
</row> </row>
<row> <row>
<entry>EINVAL or ENOTTY</entry> <entry>EINVAL or ENOTTY</entry>
<entry>The ioctl is not supported by the driver, actually meaning that <entry>The ioctl is not supported by the driver, actually meaning that
the required functionality is not available, or the file the required functionality is not available, or the file
descriptor is not for a media device.</entry> descriptor is not for a media device. The usage of EINVAL is
deprecated and will be fixed on a latter patch.</entry>
</row> </row>
<row> <row>
<entry>ENODEV</entry> <entry>ENODEV</entry>
...@@ -48,6 +51,17 @@ ...@@ -48,6 +51,17 @@
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>
<entry>EPERM</entry>
<entry>Permission denied. Can be returned if the device needs write
permission, or some special capabilities is needed
(e. g. root)</entry>
</row>
<row> <row>
<entry>EWOULDBLOCK</entry> <entry>EWOULDBLOCK</entry>
<entry>Operation would block. Used when the ioctl would need to wait <entry>Operation would block. Used when the ioctl would need to wait
......
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