pcpu_unmap_pages(9)
hii bestie π this is pcpu_unmap_pages(9) from the Kernel API Manual, and it's giving βbye-bye pagesβ energy. lowkey important, so letβs get into it.
β¨ NAME β¨
pcpu_unmap_pages β unmap pages out of a pcpu_chunk.
πΈ SYNOPSIS πΈ
void pcpu_unmap_pages (struct pcpu_chunk *chunk , struct page **pages ,
int page_start , int page_end );
π ARGUMENTS π
chunkβ the chunk of interest π, aka the pcpu chunk weβre working with.pagesβ thepagesarray, which can be used to pass information to free π«Ά.page_startβ page index of the first page to unmap β¨.page_endβ page index of the last page to unmap + 1 π₯. yes bestie, plus one β itβs that kind of range.
π₯ DESCRIPTION π₯
okay so for each cpu, we unmap pages [page_start,page_end) out of chunk. periodt π
.
The corresponding elements in pages were cleared by the caller, and they can be used to carry information to pcpu_free_pages, which will be called after all unmaps are finished. iykyk β the caller should call proper pre/post flush functions. no cap, that part is on you π«Ά.
π¦ SEE ALSO π¦
Kernel file ./mm/percpu-vm.c β the source file bestie β¨
pcpu_get_pages(9)pcpu_free_pages(9)pcpu_alloc_pages(9)pcpu_pre_unmap_flush(9)pcpu_post_unmap_tlb_flush(9)pcpu_map_pages(9)pcpu_post_map_flush(9)pcpu_populate_chunk(9)pcpu_depopulate_chunk(9)pcpu_should_reclaim_chunk(9)
made with love from source/version ./mm, dated October 2026, for pcpu_unmap_pages(9) β mwah ππ
β¨
π¦ 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