pcpu_check_block_hint(9)
π NAME π
okay bestie, welcome to the pcpu_check_block_hint(9) page from the Kernel API Manual β¨ this function is literally here to check against the contig hint, and that's the vibe π
pcpu_check_block_hint β check against the contig hint.
β¨ SYNOPSIS β¨
bool pcpu_check_block_hint (struct pcpu_block_md *block , int bits , size_t align );
No cap, that's the whole signature π«Ά
π ARGUMENTS π
blockβ block of interest, aka the block you're checking on πbitsβ size of allocation πalignβ alignment of area (maxPAGE_SIZE) π
π DESCRIPTION π
So the check is: can this allocation fit in the block's contig hint? That's it, that's the function β¨
Also, important note bestie: a chunk uses the same hints as a block, so this can also check against the chunk's contig hint. iykyk π
π SEE ALSO π
Kernel file ./mm/percpu.c and the whole squad:
pcpu_addr_in_chunk(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)pcpu_page_first_chunk(9)
this page came from ./mm, dated October 2026 β and yeah, it's the pcpu_check_block_hint(9) manual entry. mwah π
π¦ 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