__is_kernel_text(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __is_kernel_text (9) β€” the Kernel API Manual, bestie edition ✨

okay so real talk, this one lives in the Kernel API Manual and it's literally just here to tell you if a pointer is hanging out in the .text section. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

__is_kernel_text β€” checks if the pointer address is located in the .text section πŸ¦‹


✨ SYNOPSIS ✨

bool __is_kernel_text (unsigned long addr );

🫢 ARGUMENTS 🫢

  • addr β€” the address to check πŸ‘€ like, the one you're wondering about

πŸ’– RETURN πŸ’–

  • true if the address is located in .text βœ…
  • false otherwise ❌

no in-between, no "it depends", just true or false. periodt. πŸ’…


πŸ”₯ NOTE πŸ”₯

okay so listen β€” this is an internal helper, meaning it's not out here trying to be your main character. it only checks the range of _stext to _etext. that's the whole scope, no cap. 🧚


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./include/asm-generic/sections.h β€” and the whole friend group:


and that's the whole page, bestie 🫢 this iconic little helper came from ./include/asm-generic and it's dated October 2026 ⭐ go forth and vibe check those pointers πŸ’œ

πŸ“¦ where this page comes from