clear_user_highpage(9)
π clear_user_highpage(9) β from the Kernel API Manual, bestie π
okay so picture this: the kernel docs, but make it make sense. this one's from the Kernel API Manual, and it's about clearing a page so it can get mapped into user space. lowkey iconic behavior. β¨
πΈ NAME πΈ
clear_user_highpage β literally clears a page so it's ready to be mapped to user space. that's the whole vibe. π
π¦ SYNOPSIS π¦
void clear_user_highpage (struct page *page , unsigned long vaddr );
the way it takes two args and returns nothing... main character energy fr fr. π
π ARGUMENTS π
pageβ start page. yes bestie, the actual page. the starting one. πvaddrβ start address of the user mapping. that's the address, in user space, where the mapping begins. π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea β β with !CONFIG_HIGHMEM, this function (and the copy_user_highpage below) will be plain clear_user_page (and copy_user_page). that's it, that's the whole note. no cap, it's just a little "hey, in this config it's basically these other ones" heads up. π
highkey read that ! carefully β it means when CONFIG_HIGHMEM is not set. π§
π SEE ALSO π
kernel file ./include/linux/highmem.h, plus the whole friend group:
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_highpages(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)
like, the whole highmem friend group showed OUT for this one. obsessed. π₯
and that's a wrap, bestie π«Ά this lil page lives in ./include/linux and it's dated October 2026, and yeah β <rainbow>clear_user_highpage(9)</rainbow> β slay, periodt, bye π
π¦ 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