pcpu_chunk_populated(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pcpu_chunk_populated(9) β€” Kernel API Manual πŸ’…

okay so bestie, we're in the Kernel API Manual today and this function is genuinely so important, ngl. it's called pcpu_chunk_populated and it's the post-population bookkeeping queen πŸ‘‘


✨ NAME ✨

pcpu_chunk_populated β€” post-population bookkeeping. that's it, that's the whole vibe. it does the paperwork after the pages move in πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

void pcpu_chunk_populated (struct pcpu_chunk *chunk , int page_start ,
       int page_end );

literally that's the whole call. slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • chunk β€” the pcpu_chunk that got populated. the main character of this whole operation πŸ’…
  • page_start β€” the start page. where the party begins ✨
  • page_end β€” the end page. where the party stops 🫢

🌸 DESCRIPTION 🌸

so here's the tea: the pages in [page_start,page_end) have been populated into chunk. note the half-open interval bestie, page_end is not included, that's just how it is πŸŽ€

your job here is to update the bookkeeping information accordingly. the way that this function keeps receipts is honestly iconic. πŸ‘‘

and this part is NOT optional: must be called after each successful population. like, every single one. no skipping, no "I'll do it later", no cap. it's required, fr fr πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

okay this is the friend group, the whole squad, and they're all in the kernel file ./mm/percpu.c β€” go say hi:


ngl, the pcpu_chunk_depopulated(9) girlies and the pcpu_chunk_populated(9) girlies are lowkey in a rivalry and I respect it 😭

and that's the page bestie!! this one lives under ./mm and the version stamp says October 2026 β€” so go forth, populate your chunks, and always do your bookkeeping πŸ’–βœ¨πŸŽ€ πŸ¦‹ 🌈 ⭐ πŸ‘‘ πŸ’œ

πŸ“¦ where this page comes from