pcpu_page_first_chunk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pcpu_page_first_chunk(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for pcpu_page_first_chunk β€” she's section (9), she's a kernel function, and she's here to help with the first percpu chunk. main character energy, no cap. πŸ’…

✨ NAME ✨

pcpu_page_first_chunk β€” map the first chunk using PAGE_SIZE pages πŸŽ€

🌸 SYNOPSIS 🌸

int pcpu_page_first_chunk (size_t reserved_size ,
pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • reserved_size β€” the size of reserved percpu area in bytes. literally the byte count, bestie. πŸ’œ
  • cpu_to_nd_fn β€” callback to convert cpu to it's node, optional. yes, optional β€” so it's giving "bring it if you got it" energy. 🫢

🧚 DESCRIPTION 🧚

This is a helper to ease setting up page-remapped first percpu chunk, and it can be called where pcpu_setup_first_chunk is expected. helper function ate, honestly. ✨

This is the basic allocator. Static percpu area is allocated page-by-page into vmalloc area. periodt. πŸ’…

πŸ‘‘ RETURN πŸ‘‘

0 on success, -errno on failure. that's the whole vibe check, bestie. 🫢

🌈 SEE ALSO 🌈

Kernel file ./mm/percpu.c is the home base 🏠 β€” and here's the whole percpu squad, all (9):


mwah πŸ’‹ β€” this cutie comes from source/version ./mm, dated October 2026, and the footer is literally pcpu_page_first_chunk(9). bye bestie! 🌟

πŸ“¦ where this page comes from