aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-02-20 17:21:19 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-03-22 11:12:34 -0300
commit491314b8d41bb680f6ddb2632c1a36dd3959d5b3 (patch)
tree3a58b7cada36c682b8bfa155d841adfffc75d404 /Documentation/media/uapi/cec/cec-ioc-dqevent.rst
parent[media] cec: return -EPERM when no LAs are configured (diff)
downloadlinux-dev-491314b8d41bb680f6ddb2632c1a36dd3959d5b3.tar.xz
linux-dev-491314b8d41bb680f6ddb2632c1a36dd3959d5b3.zip
[media] cec: document the error codes
Document all the various error codes returned by the CEC ioctls. These were never documented, instead the documentation relied on a reference to the generic error codes, but that's not sufficient. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi/cec/cec-ioc-dqevent.rst')
-rw-r--r--Documentation/media/uapi/cec/cec-ioc-dqevent.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/media/uapi/cec/cec-ioc-dqevent.rst b/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
index 89ef6c1a2e42..4d3570c2e0b3 100644
--- a/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
+++ b/Documentation/media/uapi/cec/cec-ioc-dqevent.rst
@@ -174,3 +174,14 @@ Return Value
On success 0 is returned, on error -1 and the ``errno`` variable is set
appropriately. The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
+
+The :ref:`ioctl CEC_DQEVENT <CEC_DQEVENT>` can return the following
+error codes:
+
+EAGAIN
+ This is returned when the filehandle is in non-blocking mode and there
+ are no pending events.
+
+ERESTARTSYS
+ An interrupt (e.g. Ctrl-C) arrived while in blocking mode waiting for
+ events to arrive.