__is_kernel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 πŸ”₯

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