小编Cod*_*zan的帖子

dev_err()函数定义

我可以看到这样dev_*()的函数系列dev_err()作为原型给出include/linux/device.h,但没有找到它的定义.我曾访问像lxr.free-electron这样的网站,但没有成功.在linux内核的源代码中使用过的标签,即使失败了.

我想要找到的是如何 dev_err(const struct device *dev, const char *fmt, ...)能够获取设备信息,如pci总线等,​​只需const struct device *dev将参数作为参数打印在日志中.

linux kernel linux-device-driver linux-kernel

3
推荐指数
1
解决办法
4840
查看次数

标签 统计

kernel ×1

linux ×1

linux-device-driver ×1

linux-kernel ×1