fromPCIDevice

fun fromPCIDevice(pciDevice: PCIDeviceList.Device, pciDeviceList: PCIDeviceList, driFileList: List<Path>): GpuDevice

Creates an instance of GpuDevice using various information from Linux commands.

Parameters

pciDevice

The PCI device to create a GpuDevice from.

pciDeviceList

The list of all PCI devices.

driFileList

The list of all DRI devices under /dev/dri.