struct module *__module_address(unsigned long addr)

function: 根据地址获得该地址所在的模块

addr:       内存地址

返回值:     地址所在模块的地址,若不存在则返回NULL

注意:        使用此函数需要禁止内核抢占使用preempt_disable和preempt_enable来禁止和允许内核抢占

头文件:     #include  <linux/module.h>


使用举例子:

内核函数 __module_addess

内核函数 __module_addess

内核函数 __module_addess

相关文章:

  • 2022-12-23
  • 2021-10-05
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-09-03
  • 2021-10-02
猜你喜欢
  • 2021-07-11
  • 2021-07-16
  • 2021-05-21
  • 2021-11-13
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案