diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2017-02-20 21:21:19 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 15:12:34 +0100 |
commit | 491314b8d41bb680f6ddb2632c1a36dd3959d5b3 (patch) | |
tree | 3a58b7cada36c682b8bfa155d841adfffc75d404 /Documentation/media/uapi/cec/cec-ioc-g-mode.rst | |
parent | [media] cec: return -EPERM when no LAs are configured (diff) | |
download | linux-491314b8d41bb680f6ddb2632c1a36dd3959d5b3.tar.xz linux-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-g-mode.rst')
-rw-r--r-- | Documentation/media/uapi/cec/cec-ioc-g-mode.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/media/uapi/cec/cec-ioc-g-mode.rst b/Documentation/media/uapi/cec/cec-ioc-g-mode.rst index e4ded9df0a84..664f0d47bbcd 100644 --- a/Documentation/media/uapi/cec/cec-ioc-g-mode.rst +++ b/Documentation/media/uapi/cec/cec-ioc-g-mode.rst @@ -249,3 +249,15 @@ 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_S_MODE <CEC_S_MODE>` can return the following +error codes: + +EINVAL + The requested mode is invalid. + +EPERM + Monitor mode is requested without having root permissions + +EBUSY + Someone else is already an exclusive follower or initiator. |