diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2016-12-16 07:22:08 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-01-30 15:42:47 -0200 |
commit | 05a89739e9f537855b02f5756ca04b7c77f1e9aa (patch) | |
tree | 4445b14ce94224a37f75c9f3c9676d997b022f75 | |
parent | 6ab1a322dcafc2de6a2f9a5f876e661b4457d0c9 (diff) | |
download | linux-05a89739e9f537855b02f5756ca04b7c77f1e9aa.tar.gz linux-05a89739e9f537855b02f5756ca04b7c77f1e9aa.tar.bz2 linux-05a89739e9f537855b02f5756ca04b7c77f1e9aa.zip |
[media] gen-errors.rst: document EIO
Document the EIO error since this can happen anywhere anytime and applications
should be aware of this.
Also fix typo: exaustive -> exhaustive
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | Documentation/media/uapi/gen-errors.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/media/uapi/gen-errors.rst b/Documentation/media/uapi/gen-errors.rst index 6e983b9880fc..d39e34d1b19d 100644 --- a/Documentation/media/uapi/gen-errors.rst +++ b/Documentation/media/uapi/gen-errors.rst @@ -94,9 +94,17 @@ Generic Error Codes - Permission denied. Can be returned if the device needs write permission, or some special capabilities is needed (e. g. root) + - .. row 11 + + - ``EIO`` + + - I/O error. Typically used when there are problems communicating with + a hardware device. This could indicate broken or flaky hardware. + It's a 'Something is wrong, I give up!' type of error. + .. note:: - #. This list is not exaustive; ioctls may return other error codes. + #. This list is not exhaustive; ioctls may return other error codes. Since errors may have side effects such as a driver reset, applications should abort on unexpected errors, or otherwise assume that the device is in a bad state. |