pcpu_page_first_chunk(9)
π 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):
pcpu_addr_in_chunk(9)pcpu_check_block_hint(9)pcpu_next_md_free_region(9)pcpu_next_fit_region(9)pcpu_mem_zalloc(9)pcpu_mem_free(9)pcpu_chunk_relocate(9)pcpu_block_update(9)pcpu_chunk_refresh_hint(9)pcpu_block_refresh_hint(9)pcpu_block_update_hint_alloc(9)pcpu_block_update_hint_free(9)pcpu_is_populated(9)pcpu_find_block_fit(9)pcpu_alloc_area(9)pcpu_free_area(9)pcpu_alloc_first_chunk(9)pcpu_chunk_populated(9)pcpu_chunk_depopulated(9)pcpu_chunk_addr_search(9)pcpu_alloc(9)pcpu_balance_free(9)pcpu_balance_populated(9)pcpu_reclaim_populated(9)pcpu_balance_workfn(9)free_percpu(9)is_kernel_percpu_address(9)per_cpu_ptr_to_phys(9)pcpu_alloc_alloc_info(9)pcpu_free_alloc_info(9)pcpu_dump_alloc_info(9)pcpu_setup_first_chunk(9)pcpu_build_alloc_info(9)pcpu_embed_first_chunk(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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms