pcpu_populate_chunk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet pcpu_populate_chunk(9) β€” straight out of the Kernel API Manual ✨. Its whole thing is to populate and map an area of a pcpu_chunk. that's the vibe 🫢.

✨ SYNOPSIS ✨

int pcpu_populate_chunk (struct pcpu_chunk *chunk , int page_start , int page_end , gfp_t gfp );

πŸŽ€ ARGUMENTS πŸŽ€

  • chunk β€” the chunk of interest πŸŽ€
  • page_start β€” the start page
  • page_end β€” the end page
  • gfp β€” allocation flags passed to the underlying memory allocator

πŸ¦‹ DESCRIPTION πŸ¦‹

For each cpu, it populates and maps pages [page_start,page_end) into chunk. no cap, that is literally the whole description and it ate πŸ’….

πŸ’… CONTEXT πŸ’…

Heads up, bestie: the context is pcpu_alloc_mutex, and it does gfp allocation. keep that in mind, iykyk 😌.

🌸 SEE ALSO 🌸

Kernel file ./mm/percpu-vm.c β€” plus the whole friend group:


mwah πŸ’‹ sign-off from source ./mm, October 2026, for pcpu_populate_chunk(9) β€” out ✨.

πŸ“¦ where this page comes from