pcpu_chunk_populated(9)
π 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β thepcpu_chunkthat 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:
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_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)pcpu_page_first_chunk(9)
ngl, thepcpu_chunk_depopulated(9)girlies and thepcpu_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
- 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