vmap_pfn(9)
π¦ vmap_pfn(9) π¦
okay bestie, this page is straight out of the Kernel API Manual, and itβs giving βmap an array of PFNs into virtually contiguous spaceβ energy β¨
πΈ NAME πΈ
vmap_pfn β map an array of PFNs into virtually contiguous space π
β¨ SYNOPSIS β¨
void * vmap_pfn (unsigned long *pfns , unsigned int count , pgprot_t
prot );
π ARGUMENTS π
pfnsβ array of PFNscountβ number of pages to mapprotβ page protection for the mapping
π DESCRIPTION π
okay so hereβs the tea: vmap_pfn() maps count PFNs from pfns into contiguous kernel virtual space, and returns the start address of the mapping. slay. π«Ά
π SEE ALSO π
Kernel file ./mm/vmalloc.c β and the whole SEE ALSO friend group is literally right here:
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)__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 page, bestie! π
source/version ./mm, dated October 2026, serving vmap_pfn(9) energy β periodt. π¦
π¦ 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