pcpu_unmap_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the pages array, 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 ✨

made with love from source/version ./mm, dated October 2026, for pcpu_unmap_pages(9) β€” mwah πŸ’‹πŸ’…βœ¨

πŸ“¦ where this page comes from