init_section_contains(9)
β¨ NAME β¨
okay so welcome to the init_section_contains(9) page from the Kernel API Manual, bestie π«Ά this one is short, sweet, and lowkey iconic.
init_section_contains β checks if an object is contained within the init section. that's the whole assignment. no cap π
πΈ SYNOPSIS πΈ
bool init_section_contains (void *virt , size_t size );
the way this signature is just sitting there looking all official π copy it exactly, okay?
π ARGUMENTS π
virtβ the virtual address of the memory object. literally the address, bestie πsizeβ the size of the memory object. yes, the size. the whole size. π
π RETURN π
returns true if the object specified by virt and size is entirely contained within the init section, and false otherwise. entire-ly, bestie β that word is doing main character work π₯
π¦ SEE ALSO π¦
- kernel file
./include/asm-generic/sections.h memory_contains(9)memory_intersects(9)init_section_intersects(9)is_kernel_core_data(9)is_kernel_rodata(9)is_kernel_inittext(9)__is_kernel_text(9)__is_kernel(9)
go read these if you want the full lore, iykyk π
mwah π the source/version line says ./include/asm-generic, the date says October 2026, and yes it's literally init_section_contains(9). bye bestie π«Ά
π¦ 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