ILD

获得内核模块的加载地址
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2022-7-14 站点:Inside Linux Development

有两个接口,一个是/sys/module/xxx/sections/.txt。一个是/proc/modules。例如:


# cat /sys/module/bootconfig/sections/.text

0xffffffc008772000


# cat /proc/modules | grep bootconfig

bootconfig 16384 0 - Live 0xffffffc008772000


https://stackoverflow.com/questions/15538685/finding-the-kernel-address-of-a-loadable-kernel-module


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.