clear_user_highpages(9)
π clear_user_highpages β the section 9 girlies are gonna eat this UP
okay so bestie, welcome to clear_user_highpages(9) β it's a Kernel API Manual page, and honestly? she's a little icon. lowkey niche, highkey essential. let's get into it π
β¨ NAME β¨
clear_user_highpages β clear a page range to be mapped to user space
like, literally. you hand her a chunk of pages and she clears them so they're ready to get mapped on into user space. it's giving prep-work main character energy. π
πΈ SYNOPSIS πΈ
void clear_user_highpages (struct page *page , unsigned long vaddr ,
unsigned int npages );
no cap, that's the whole signature. returns void β she doesn't have anything to say back to you, she just does the thing. periodt.
π¦ ARGUMENTS π¦
pageβ start page. this is where the whole vibe begins, bestie π±vaddrβ start address of the user mapping. the user-space coordinates of the situation, iykyk πΊοΈnpagesβ number of pages. how many we're clearing. the count. the quantity. the amount of clearing happening. β¨
π DESCRIPTION π
okay so here's the tea π΅ β this function assumes that all the pages in the region (page, +npages) are valid, so it does no exception handling.
read that again. no exception handling. none. zero. she is trusting you completely π β so if you feed her invalid pages, that's on you, not her. she said "i'm not checking, i believe in you" and honestly? iconic but also be careful bestie ππ
π₯ SEE ALSO π₯
she runs with a whole friend group, ngl β all living in the kernel file ./include/linux/highmem.h, and every single one of them is invited to the group chat:
kmap(9)kunmap(9)kmap_to_page(9)kmap_flush_unused(9)kmap_local_page(9)kmap_local_folio(9)kmap_atomic(9)clear_user_page(9)clear_user_pages(9)clear_user_highpage(9)vma_alloc_zeroed_movable_folio(9)memcpy_from_folio(9)memcpy_to_folio(9)folio_zero_tail(9)folio_fill_tail(9)memcpy_from_file_folio(9)folio_zero_segments(9)folio_zero_segment(9)folio_zero_range(9)folio_release_kmap(9)
the roster is LONG and every name is a baddie, no skips π
and that's the whole page, bestie π«Ά this cutie lives over in ./include/linux, brought to you by the Kernel API Manual, dated October 2026 β stay hydrated, clear your pages, and remember: no exception handling means she trusts you fr fr πβ¨π
π¦ 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