Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于linux内核的问题。为了使用 get_wchan() 函数,我应该在模块中使用什么头文件?我试图找到,但似乎所有原型都是拱形敏感的。linux 2.6.32 是否提供 get_wchan() 的非拱敏感原型?
Linux 提供了 get_wchan() 的非架构敏感原型。为了使用它,应该包含 asm/processor.h 头文件。但它可以直接从内核使用(而不是从内核模块),因为内核没有为模块导出符号 get_wchan(我的意思是 EXPORT_SYMBOL)。