pcpu_chunk_map_bits(9)
π pcpu_chunk_map_bits(9) π
okay so bestie, we're in the Kernel API Manual today and this little icon is called pcpu_chunk_map_bits β say it with me, it's giving "tiny helper function with main character energy" β¨
πΈ NAME πΈ
pcpu_chunk_map_bits β a lil helper that converts nr_pages into the size of a bitmap π
π¦ SYNOPSIS π¦
int pcpu_chunk_map_bits (struct pcpu_chunk *chunk );
π ARGUMENTS π
chunkβ the chunk of interest π«Ά like, the one you actually care about, your fave chunk, the chunk in question
β¨ DESCRIPTION β¨
so what's the vibe here? this function does a conversion β and no cap, that's literally its whole thing π
It goes from the number of physical pages that the chunk serves β over to the number of bits in the bitmap. That's the glow-up. page count in, bitmap bits out, slay π
π₯ SEE ALSO π₯
- Kernel file
./mm/percpu-internal.h pcpu_chunk_nr_blocks(9)pcpu_nr_pages_to_map_bits(9)pcpu_obj_full_size(9)
like, go read those too, they're lowkey part of the same friend group π
ngl this one's short and sweet β but that's the point, it's a helper, not the whole saga π
mwah π this page came from ./mm, dated October 2026 β that's the source and the date, bestie, noted and slayed β¨
π¦ 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