[Intel-gfx] [PATCH i-g-t 1/4] lib: add function to change connector states
Chris Wilson
chris at chris-wilson.co.uk
Wed Jun 18 16:05:48 CEST 2014
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
More information about the Intel-gfx
mailing list