vmalloc_huge_node(9)
πΈ NAME πΈ
vmalloc_huge_node β allocate virtually contiguous memory, allow huge pages. and welcome to the vmalloc_huge_node(9) page from the Kernel API Manual, bestie π
π¦ SYNOPSIS π¦
void * vmalloc_huge_node (unsigned long size , gfp_t gfp_mask , int node
);
π ARGUMENTS π
sizeβ the allocation size β¨gfp_maskβ flags for the page level allocator π«Άnodeβ node to use for allocation orNUMA_NO_NODEπ
π DESCRIPTION π
okay so hereβs the tea: it allocates enough pages to cover size from the page level allocator and maps them into contiguous kernel virtual space. literally the whole point, no cap.
and if size is greater than or equal to PMD_SIZE, itβs allowed to use huge pages for the memory. periodt π«
vibe check: enough pages to coversize, mapped into contiguous kernel virtual space, with huge-page permission whensizeis greater than or equal toPMD_SIZEπ¦
β RETURN β
pointer to the allocated memory or NULL on error π
π« SEE ALSO π«
the original starts with Kernel file ./mm/vmalloc.c, and then the whole vmalloc bestie group chat 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_add_early(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)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)
xoxo, this one came from the ./mm source, October 2026 edition β vmalloc_huge_node(9) signing off πβ¨
π¦ 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