内核函数定义 [英] Kernel Function definitions

查看:53
本文介绍了内核函数定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Where can I find the complete implementation/body of the following functions, defined as a function prototype in "include/linux/pci.h" in the Linux Kernel.

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);

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

I usually use free-electron's cross reference to find definitions of functions in the kernel. I've also used cscope to find the definitions of these functions but with no luck in both cases.

推荐答案

由于它们是由宏

You can't find them using a "dumb" indexer/tagger because they are generated by macros here.

这篇关于内核函数定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆