__is_kernel(9)
π __is_kernel β Kernel API Manual β¨
okay so bestie, welcome to __is_kernel(9), the little kernel-API manual page that's about to become your new hyperfixation π
πΈ NAME πΈ
__is_kernel β the function that checks if the pointer address is located in the kernel range π
β¨ SYNOPSIS β¨
bool __is_kernel (unsigned long addr );
π¦ ARGUMENTS π¦
addrβ the address to check, that's it, that's the whole vibe π
π RETURN π
true if the address is located in the kernel range, false otherwise. literally that simple, no cap π
π NOTE π
okay so this one's an internal helper β it checks the range of _stext to _end, and it also checks the range from __init_begin to __init_end, which can be outside of the _stext to _end range. the way that init section just does its own thing π keep that in mind fr fr.
π₯ 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_rodata(9)is_kernel_inittext(9)__is_kernel_text(9)
go read those too, they're all iconic in their own way β
bestie reminder: __is_kernel is a internal helper, so don't go treating it like a public main-character API, iykyk π
and that's the page!! sourced from ./include/asm-generic and dated October 2026 β so go forth, vibe check your pointers, and 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