is_kernel_core_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ is_kernel_core_data(9) πŸ¦‹

okay so bestie, welcome to the Kernel API Manual ✨ This page is lowkey a little vibe check for pointers β€” like, is this address hanging out in .data or .bss land? Let’s get into it πŸ’…

🌸 NAME 🌸

is_kernel_core_data β€” checks if the pointer address is located in the .data or .bss section. periodt πŸ’–

✨ SYNOPSIS ✨

bool is_kernel_core_data (unsigned long addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” address to check. That’s it, that’s the whole assignment 🫢

πŸ”₯ RETURN πŸ”₯

It returns true if the address is located in .data or .bss, and false otherwise. No cap ✨

πŸ’€ NOTE πŸ’€

okay so here’s the caveat, bestie 😭 On some archs it may return true for core RODATA, and false for others. But it will always be true for core RW data. The way architecture differences are always doing the most πŸ™ˆ

🌈 SEE ALSO 🌈

iykyk, go check these out β€” Kernel file ./include/asm-generic/sections.h:


πŸ’‹ that’s the whole page, bestie β€” source/version: ./include/asm-generic Β· date: October 2026 πŸ¦‹

πŸ“¦ where this page comes from