pcpu_free_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the pcpu_free_pages(9) page from the Kernel API Manual πŸ’…βœ¨ no cap, it’s giving kernel-internals realness.

🌸 NAME 🌸

pcpu_free_pages β€” free pages which were allocated for @chunk 🫢

✨ SYNOPSIS ✨

void pcpu_free_pages (struct pcpu_chunk *chunk , struct page **pages ,
       int page_start , int page_end );

πŸŽ€ ARGUMENTS πŸŽ€

okay so here’s the cast of characters, and yes they all matter:

  • chunk β€” the chunk that those pages were allocated for, periodt.
  • pages β€” the array of pages to be freed, indexed by pcpu_page_idx πŸ’…
  • page_start β€” page index of the first page to be freed ✨
  • page_end β€” page index of the last page to be freed + 1 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

literally what it says on the tin: it frees the pages in the range [page_start and page_end) inside pages, for all units. The pages were allocated for chunk. That’s the whole vibe check πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file is ./mm/percpu-vm.c, and the besties it points you at are:


mwah πŸ’‹ β€” source/version: ./mm, date: October 2026 β€” okay bye bestie, stay iconic πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from