pcpu_obj_full_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pcpu_obj_full_size(9) πŸŽ€

okay bestie, welcome to the pcpu_obj_full_size(9) page from the Kernel API Manual 🫢 this one is short, sweet, and very much giving β€œtiny helper, big job” energy πŸ’…


✨ NAME ✨

pcpu_obj_full_size β€” helper to calculate size of each accounted object. literally does what it says on the tin ✨


🌸 SYNOPSIS 🌸

the signature, character for character:

size_t pcpu_obj_full_size (size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • size β€” the size of the area to allocate, measured in bytes. yes bestie, bytes 🫢

πŸ’… DESCRIPTION πŸ’…

okay so for each accounted object, there’s an extra space that’s used to store obj_cgroup membership if kmemcg is not disabled. and yeah β€” this helper charges that extra space too πŸ’Έβœ¨ no sneaky free space here, periodt.


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/percpu-internal.h β€” plus these cuties: pcpu_chunk_nr_blocks(9), pcpu_nr_pages_to_map_bits(9), and pcpu_chunk_map_bits(9). iykyk 🌈


mwah πŸ’‹ sign-off time: this page is from source/version ./mm, dated October 2026, and it’s the pcpu_obj_full_size(9) page. bye bestie, go read the kernel with main character energy πŸ‘‘πŸ’–

πŸ“¦ where this page comes from