[Mesa-dev] [PATCH 37/40] targets/nine: add note about fd owndership

Axel Davy axel.davy at ens.fr
Sun Oct 18 04:00:19 PDT 2015


On 18/10/2015 12:25, Emil Velikov wrote:
>
>> +    /* XXX: Is the owner responsible for FD owndership or are we ?
>> +     * In the former we're screwing things hard here */
> This will be updated to "Although the fd is provided from external
> source, mesa/nine takes ownership of it." based on input from Axel.
>
> -Emil
>
Ok, I understand the confusion.

Yeah, wine side gives an fd to nine and nine takes its ownership.

Then loader_get_user_preferred_fd will either return the same fd,
or close the previous fd and give a new one.

Then in drm_destroy the fd gets closed.

Axel



More information about the mesa-dev mailing list