内核函数定义

mic*_*lvi 1 cross-reference linux-kernel

我在哪里可以找到以下函数的完整实现/主体,在Linux内核中的"include/linux/pci.h"中定义为函数原型.

int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val);
int pci_bus_write_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 val);
Run Code Online (Sandbox Code Playgroud)

我通常使用自由电子的交叉引用来查找内核中函数的定义.我也使用cscope来查找这些函数的定义,但两种情况都没有运气.

ido*_*oby 5

使用"哑"索引/恶搞,因为它们是由宏生成你不能找到他们这里.

  • 谢谢IBY,你救了一天:) (2认同)