igt_device
void igt_device_set_master (int fd);
int fd
void igt_device_drop_master (int fd);
int igt_device_get_card_index (int fd);
fd
the device
Index (N) of /dev/dri/cardN or /dev/dri/renderDN corresponding with fd.
struct pci_device * igt_device_get_pci_device (int fd);
fd : the device
Looks up the main graphics pci device using libpciaccess.
The pci_device, skips the test on any failures.