new_vmap_block(9)
π new_vmap_block(9)
okay so welcome to the Kernel API Manual page for new_vmap_block(9), bestie β yes, section (9), kernel API edition. π
β¨ NAME β¨
new_vmap_block β allocates a new vmap_block and occupies 2^order pages in this block. Of course, the number of pages can't exceed VMAP_BBMAP_BITS. π«Ά
πΈ SYNOPSIS πΈ
void * new_vmap_block (unsigned int order , gfp_t gfp_mask );
π ARGUMENTS π
orderβ how many2^orderpages should be occupied in the newly allocated block. π¦gfp_maskβ flags for the page-level allocator. β¨
π¦ RETURN π¦
Returns the virtual address in a newly allocated block, or ERR_PTR(-errno) if it's giving error vibes. π
π SEE ALSO π
The kernel file is ./mm/vmalloc.c β that's the home base, no cap. The whole vmalloc crew is here too:
vunmap_range(9)vmap_pages_range(9)vm_area_map_pages(9)vm_area_unmap_pages(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)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)
mwah π this page's source/version tag is./mm, and the date on the manual isOctober 2026. Go off, 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