igt_device

igt_device

Functions

Description

Functions

igt_device_set_master ()

void
igt_device_set_master (int fd);

igt_device_drop_master ()

void
igt_device_drop_master (int fd);

igt_device_get_card_index ()

int
igt_device_get_card_index (int fd);

Parameters

fd

the device

 

Returns

Index (N) of /dev/dri/cardN or /dev/dri/renderDN corresponding with fd.


igt_device_get_pci_device ()

struct pci_device *
igt_device_get_pci_device (int fd);

fd : the device

Looks up the main graphics pci device using libpciaccess.

Returns

The pci_device, skips the test on any failures.


igt_device_get_pci_root_port ()

struct pci_device *
igt_device_get_pci_root_port (int fd);

Looks up the graphics pci device root port using libpciaccess.

Parameters

fd

the device.

 

Returns

The root port pci_device.


igt_device_get_pci_slot_name ()

void
igt_device_get_pci_slot_name (int fd,
                              char *pci_slot_name);

Looks up the graphics pci device using libpciaccess and gets the slot name

Parameters

fd

the device.

 

pci_slot_name

pci slot name

 

Types and Values