Другими словами, если я наберу в оболочке:
Код: Выделить всё
alexander@asus-b760m-plus-wifi:~$ lspci -PP
...
00:1a.0 PCI bridge: Intel Corporation Device 7a48 (rev 11)
00:1c.0 PCI bridge: Intel Corporation Device 7a38 (rev 11)
00:1c.2 PCI bridge: Intel Corporation Device 7a3a (rev 11)
00:1c.4 PCI bridge: Intel Corporation Device 7a3c (rev 11)
00:1d.0 PCI bridge: Intel Corporation Device 7a36 (rev 11)
...
00:1c.4/04:00.0 Non-Volatile memory controller: Solid State Storage Technology Corporation Device 9100 (rev 03)
Что я уже пытался сделать:
Код: Выделить всё
static int device_probe(struct pci_dev *pMyDev, const struct pci_device_id *pId)
{
...
struct pci_host_bridge *pHostBridge = pci_find_host_bridge(pPciDev->bus);
struct pci_dev *pBridgeDevA = host->bus->self; // always returns NULL
struct pci_dev *pBridgeDevB = pPciDev->bus->parent->self; // returns NULL too
...
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... cie-device