vm_area_register_early(9)
β¨ vm_area_register_early β kernel API manual, section 9 β¨
okay so bestie, buckle up, because this page is literally about vm_area_register_early(9) and it's giving "early boot era" main character energy π
πΈ NAME πΈ
vm_area_register_early β bestie's job is literally to register a vmap area early during boot π no cap.
π¦ SYNOPSIS π¦
void vm_area_register_early (struct vm_struct *vm , size_t align );
π ARGUMENTS π
vmβ thevm_structyou want to register. that's the whole vibe, she's the star of the show βalignβ the requested alignment. like, how perfectly lined up you want things to be. alignment matters, periodt β¨
π₯ DESCRIPTION π₯
okay so here's the tea π: this function is used to register a kernel vm area before vmalloc_init is called. like, she wakes up before everybody else does, that's her whole thing π
on entry, vm->size and vm->flags should already contain proper values, and the other fields should be zero. yes, literally zero. don't be messy about it π
on return, vm->addr contains the allocated address π so you get your address back, slay.
β οΈ DO NOT USE THIS FUNCTION UNLESS YOU KNOW WHAT YOU'RE DOING.
that's not a vibe check, that's a warning, and it's in all caps for a reason bestie π like, genuinely, if you don't know what you're doing, put it down and back away slowly π«Ά
π SEE ALSO π
kernel file ./mm/vmalloc.c β and honestly, the whole friend group showed up for this one π
vunmap_range(9)vmap_pages_range(9)vm_area_map_pages(9)vm_area_unmap_pages(9)new_vmap_block(9)vm_unmap_aliases(9)vm_unmap_ram(9)vm_map_ram(9)vm_area_add_early(9)get_vm_area(9)find_vm_area(9)remove_vm_area(9)vfree_atomic(9)vfree(9)vunmap(9)vmap(9)vmap_pfn(9)__vmalloc_node_range(9)__vmalloc_node(9)vmalloc(9)vmalloc_huge_node(9)vzalloc(9)vmalloc_user(9)vmalloc_node(9)vzalloc_node(9)vrealloc_node_align(9)vmalloc_32(9)vmalloc_32_user(9)vread_iter(9)remap_vmalloc_range_partial(9)remap_vmalloc_range(9)pvm_find_va_enclose_addr(9)pvm_determine_end_from_reverse(9)pcpu_get_vm_areas(9)pcpu_free_vm_areas(9)
π« and that's the whole page!! this one came from the ./mm pile, dated October 2026, and it's filed under vm_area_register_early(9) β iykyk π§ββοΈ go forth and register your early vmap areas responsibly, 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