vm_area_add_early(9)
π vm_area_add_early(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for vm_area_add_early(9), and it is lowkey a βhandle with careβ situation. π«Ά
β¨ NAME β¨
vm_area_add_early β add vmap area early during boot
πΈ SYNOPSIS πΈ
void vm_area_add_early (struct vm_struct *vm );
π ARGUMENTS π
vmβ thevm_structto add. That's the whole argument, no cap. π
π DESCRIPTION π
This function is used to add fixed kernel vm area to vmlist before vmalloc_init is called. It's giving βearly-boot setup onlyβ energy, fr fr. π
For this to go right, vm->addr, vm->size, and vm->flags should contain proper values, and the other fields should be zero. Like, the struct needs to be dressed correctly before it walks into the function. π
β οΈ DO NOT USE THIS FUNCTION UNLESS YOU KNOW WHAT YOU'RE DOING. β οΈ
That's the manual's own all-caps warning, and we do not soften it. This is not a βjust try it and seeβ moment, bestie. π
π¦ SEE ALSO π¦
Kernel file ./mm/vmalloc.c β and the whole reference squad is:
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_register_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)
signed off with love from the ./mm source, October 2026 edition β slay, bye! π
β¨
π¦ 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