linux - 使用 get_wchan()

标签 linux linux-kernel

我有一个关于 Linux 内核的问题。 为了使用 get_wchan() 函数,我应该在模块中使用什么 header ? 我试图找到,但似乎所有原型(prototype)都是弓敏感的。 linux 2.6.32 是否提供了 get_wchan() 的非架构敏感原型(prototype)?

最佳答案

Linux 提供了非架构敏感的 get_wchan() 原型(prototype)。要使用它,应包含 asm/processor.h header 。 但它可以直接从内核使用(而不是从内核模块),因为符号 get_wchan 没有由内核为模块导出(我的意思是 EXPORT_SYMBOL)。

关于linux - 使用 get_wchan(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15883851/

相关文章:

php - if_POST then 执行一个或多个命令

python - 使用 setup.py 安装 .desktop 文件

linux - 命令 blkid 不显示我的分区 UUID

c - 为什么 vmalloc 返回的地址不能转换为物理地址

linux - linux_kernel 系统调用中未声明的 ptep_t

linux - 无法在 Ubuntu 16.10 上启动 MongoDB

linux - wc -m in linux excess 1 值

c - 在内核中处理线程的正确方法?

c - 从以太网 header 打印 MAC 地址