On Wed, Jun 18, 2014 at 02:44:10PM +0100, Thomas Wood wrote:
> +static int get_card_number(int fd)
> +{
> +     struct stat buf;
> +
> +     /* find the minor number of the device */
> +     fstat(fd, &buf);
> +
> +     return minor(buf.st_rdev);

This mixes in rendernode/controlnode tags.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to