pcpu_free_alloc_info(9)
πΈ pcpu_free_alloc_info(9) πΈ
okay bestie, welcome to the Kernel API Manual β this one's a lil baby page but she's important, so pay attention π
β¨ NAME β¨
pcpu_free_alloc_info β frees the percpu allocation info, no cap π§Ή
β¨ SYNOPSIS β¨
void pcpu_free_alloc_info (struct pcpu_alloc_info *ai );
literally that's the whole vibe. void, so she gives you nothing back β the real gift is the memory you're returning π
β¨ ARGUMENTS β¨
aiβ thepcpu_alloc_infoyou're about to send to the shadow realm. this is the thing getting freed π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea β: this function frees ai, which is the pcpu_alloc_info that was allocated by pcpu_alloc_alloc_info. that's it. that's the whole page. she's a cleanup queen and we stan a symmetrical alloc/free pair π
β οΈ bestie listen β only pass stuff here that actually came from pcpu_alloc_alloc_info. the page says it was allocated by it, so that's the contract, iykyk. don't be out here freeing random pointers, that's giving undefined behaviour and we do NOT have the energy π
β¨ SEE ALSO β¨
so you're in ./mm/percpu.c territory β here's the whole friend group π« (and yes, I'm listing every single one, because leaving a bestie out is a crime):
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_dump_alloc_info(9)pcpu_setup_first_chunk(9)pcpu_build_alloc_info(9)pcpu_embed_first_chunk(9)pcpu_page_first_chunk(9)
and that's the whole page, bestie π¦β¨
cute lil sign-off: this gem lives down in ./mm, it's stamped October 2026, and it's officially Kernel API Manual material β section 9, pcpu_free_alloc_info, periodt ππ
π¦ 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