is_kernel_core_data(9)
π¦ 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 returntruefor core RODATA, andfalsefor others. But it will always betruefor 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:
memory_contains(9)memory_intersects(9)init_section_contains(9)init_section_intersects(9)is_kernel_rodata(9)is_kernel_inittext(9)__is_kernel_text(9)__is_kernel(9)
π thatβs the whole page, bestie β source/version: ./include/asm-generic Β· date: October 2026 π¦
π¦ 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