[Intel-gfx] [PATCH] drm/doc: Document ioctl errno value patterns

Daniel Stone daniel at fooishbar.org
Fri Aug 18 14:26:10 UTC 2017


Hi,

On 18 August 2017 at 10:21, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> +Recommended IOCTL Return Values
> +===============================
> +
> +In theory a driver's IOCTL callback is only allowed to return very few error
> +codes. In practice it's good to abuse a few more. This section documents common
> +practice within the DRM subsystem:
> +
> +ENOENT:
> +        Strictly speaking only when you try to open isn't there.

There's a word from this sentence.

> +        We reuse that
> +        to signal any kind of object lookup failure, e.g. for unknown GEM buffer
> +        object handles, unknown KMS object handles and similar cases.
> +
> +ENOSPC:
> +        Some drivers use this to differiante

'differentiate'

Cheers,
Daniel


More information about the dri-devel mailing list