folio_zero_user(9)
πΈ folio_zero_user(9) πΈ
okay bestie, welcome to the Kernel API Manual entry for folio_zero_user β yes the (9) means it's a kernel function, we're in the big leagues now π
This one is short and sweet and honestly kind of iconic for it.
β¨ NAME β¨
folio_zero_user β zero out a folio that's gonna get mapped to userspace. That's it, that's the whole job, and she does it flawlessly π«Ά
π SYNOPSIS π
void folio_zero_user (struct folio *folio , unsigned long addr_hint );
literally just a void return, no notes, no drama, she does not give you anything back except a zeroed folio π
π¦ ARGUMENTS π¦
folioβ the folio you want zeroed. the main character of this whole operation ngl πaddr_hintβ the address the user accessed, or the base address. it's a hint, it's giving helpful bestie energy, use it wisely β¨
π SEE ALSO π
Kernel file ./mm/memory.c β and the whole squad of neighbours, fr fr, all of these are in ./mm and they all get a mention:
free_pgd_range(9)free_pgtables(9)__vm_normal_page(9)vm_normal_page(9)vm_normal_folio(9)vm_normal_page_pmd(9)vm_normal_folio_pmd(9)vm_normal_page_pud(9)restore_exclusive_pte(9)cond_install_uffd_wp_ptes(9)zap_vma_for_reaping(9)unmap_vmas(9)zap_vma_range_batched(9)zap_vma_range(9)zap_special_vma_range(9)vm_insert_pages(9)vm_insert_page(9)vm_map_pages(9)vm_map_pages_zero(9)vmf_insert_pfn_prot(9)vmf_insert_pfn(9)remap_pfn_range(9)vm_iomap_memory(9)__vmf_anon_prepare(9)finish_mkwrite_fault(9)unmap_mapping_folio(9)unmap_mapping_pages(9)unmap_mapping_range(9)set_pte_range(9)finish_fault(9)mm_account_fault(9)follow_pfnmap_start(9)follow_pfnmap_end(9)generic_access_phys(9)access_remote_vm(9)copy_remote_vm_str(9)
like, that's the whole group chat, go say hi π
no cap β every one of those is listed exactly like the original, don't come for me, I copied nothing but the facts π
and that's the page, bestie!! π this one lives in ./mm, dropped October 2026, and it's filed under folio_zero_user(9) β go zero some folios, slay, 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