Re: [PATCH]upi:media: Added rest of the Generic Error Codes to the existing list

From: Jonathan Corbet
Date: Mon Aug 07 2023 - 14:12:06 EST


Bhaskar Chowdhury <unixbhaskar@xxxxxxxxx> writes:

> Added rest of the Generic Error Codes to the existing list of codes.
>
> cc: torvalds@xxxxxxxxxxxxxxxxxxxx
> cc: randy.dunlap@xxxxxxxxxx
> cc: paulmck@xxxxxxxxxx
> cc: corbet@xxxxxxx
> cc: markus.heiser@xxxxxxxxxxx
>
> Signed-off-by: Bhaskar Chowdhury <unixbhaskar@xxxxxxxxx>
> ---
> There is a "moreutils" package across the Linux distribution, if you
> installed it and that package has a binary name "errno",if you run it with
> "-l" or "--list" option, it will show all the error codes.In my system, while
> running it shows me precisely, 134 of such codes.YMMV
>
> .../userspace-api/media/gen-errors.rst | 479 ++++++++++++++++++
> 1 file changed, 479 insertions(+)

This document is a list of errors that can be returned by media drivers,
with a focus on what those errors mean in the media context. What is
the point of stuffing it full of error numbers that media drivers will
never return, along with generic, one-line descriptions? I'll defer to
the media folks on this, but I don't think this helps their users.

Thanks,

jon