pcpu_check_block_hint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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 (max PAGE_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:


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