一、接口
char *pci_lookup_name(struct pci_access *a, char *buf, intsize, int flags, ...) PCI_ABI;
(/usr/include/pci/pci.h)
二、描述
在/sys/bus/pci/devices/<pci address>目录下面可以读取PCI设备的VendorId(从vendor文件获取), DeviceId(从device文件获取),但是关于vendor的文字描述和device的文字描述却没有。
1) 刚开始的时候使用lspci来获取vendor和device的文字描述,但是效率比较低;