有两个接口,一个是/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