__module_text_address(9)
π __module_text_address(9) π
okay so this page is from the Kernel API Manual, and it's literally here to answer: βwhich module's code contains this address?β No cap. π«Ά
β¨ NAME β¨
__module_text_address β get the module whose code contains an address.
πΈ SYNOPSIS πΈ
struct module * __module_text_address (unsigned long addr );
π ARGUMENTS π
addrβ the address. Like, the address you're asking about, bestie. π
π¦ DESCRIPTION π¦
Okay so real talk: you must call this within an RCU read section or with the module mutex held. Why? So that the module doesn't get freed during this. That's the safety condition, and it is not optional, periodt. π¨
π SEE ALSO π
Kernel file ./kernel/module/main.c, plus these iconic little references:
find_any_unique_sec(9)is_module_percpu_address(9)module_refcount(9)verify_module_namespace(9)elf_validity_ehdr(9)elf_validity_cache_sechdrs(9)elf_validity_cache_secstrings(9)elf_validity_cache_index_info(9)elf_validity_cache_index_mod(9)elf_validity_cache_index_sym(9)elf_validity_cache_index_str(9)elf_validity_cache_index_versions(9)elf_validity_cache_index(9)elf_validity_cache_strtab(9)is_module_address(9)__module_address(9)is_module_text_address(9)
xoxo, bestie π β source/version: ./kernel/module, date: October 2026, and the page itself is __module_text_address(9). Slay. β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms