is_kernel_rodata(9)
β¨ is_kernel_rodata(9) β¨
okay bestie, welcome to the Kernel API Manual π this one is short but iconic: is_kernel_rodata checks if the pointer address is located in the .rodata section. no cap, thatβs the whole vibe check π«Ά
πΈ NAME πΈ
is_kernel_rodata β checks if the pointer address is located in the .rodata section β¨
π SYNOPSIS π
bool is_kernel_rodata (unsigned long addr );
π¦ ARGUMENTS π¦
addrβ address to check π
π RETURN π
true if the address is located in .rodata, false otherwise. periodt π
π SEE ALSO π
- Kernel file
./include/asm-generic/sections.h memory_contains(9)memory_intersects(9)init_section_contains(9)init_section_intersects(9)is_kernel_core_data(9)is_kernel_inittext(9)__is_kernel_text(9)__is_kernel(9)
signed off from ./include/asm-generic, dated October 2026 β stay rodata-coded, bestie ππ
π¦ 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