objagg_stats_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 objagg_stats_get(9) β€” the kernel API manual, but make it cute ✨

okay so bestie, welcome to objagg_stats_get(9) from the Kernel API Manual πŸ’– this is the little function that slides you the stats of your objagg instance, and honestly? it's giving main character energy πŸ‘‘


✨ NAME ✨

objagg_stats_get β€” obtains stats of the objagg instance πŸŽ€

like, it gets you the stats. that's the whole vibe. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

const struct objagg_stats * objagg_stats_get (struct objagg *objagg );

look at her. one argument. immaculate. πŸ’…


🌸 ARGUMENTS 🌸

  • objagg β€” the objagg instance πŸ’œ that's it, that's the whole parameter, she's lowkey simple like that 🫢

⭐ NOTE ⭐

first things first, and this is the important bit so don't skip it πŸ™ˆ: all locking must be provided by the caller. like, the function is NOT gonna lock anything for you. that's your job, bestie. handle it πŸ”₯

the returned structure contains statistics of all objects currently in use, ordered by these rules πŸ“‹:

  1. Root objects are always on lower indexes than the rest. πŸ‘‘ (roots stay winning)
  2. Objects with higher delta user count are always on lower indexes. πŸ”₯
  3. In case more objects have the same delta user count, the objects are ordered by user count. 🌈

and the return value? she's a two-path queen πŸ‘Έ:

  • Returns a pointer to the stats instance in case of success ✨
  • otherwise it returns a pointer error using the ERR_PTR macro πŸ’€ (so like, check it with IS_ERR before you go dereferencing, iykyk)
fr fr do not forget the locking. the function will not do it for you. that's not a vibe, that's a crash 🫠

πŸŽ€ SEE ALSO πŸŽ€

go read them. all of them. the whole friend group 🫢✨


and that's the page, bestie πŸ’– brought to you straight out of ./lib, dated October 2026, and yes it's literally titled objagg_stats_get(9) β€” slay, ate, periodt πŸ‘‘πŸ’…πŸŒΈ

πŸ“¦ where this page comes from