vmballoon_shrinker_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

vmballoon_shrinker_count β€” return the number of ballooned pages.

Okay bestie, welcome to the vmballoon_shrinker_count(9) page from the Kernel API Manual ✨ This function is literally here to return the number of ballooned pages, and that’s the whole main-character job. No cap.


✨ SYNOPSIS ✨

unsigned long vmballoon_shrinker_count (struct shrinker *shrinker ,
       struct shrink_control *sc );

🫢 ARGUMENTS 🫢

  • shrinker β€” pointer to the balloon shrinker. It’s giving β€œhere is the balloon shrinker pointer,” and that’s the vibe πŸ’…
  • sc β€” page reclaim information. Lowkey self-explanatory: it carries the page reclaim information, iykyk.

🌸 RETURN 🌸

It returns the number of 4k pages that are allocated for the balloon and can therefore be reclaimed under pressure. That’s the answer, and it ate πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/misc/vmw_balloon.c β€” yes bestie, the source file is part of the see-also squad too πŸ‘‘


That’s the vibe check: source/version ./drivers/misc, dated October 2026, and it’s the vmballoon_shrinker_count(9) page β€” bye bestie, slay responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from