objagg_hints_stats_get(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… objagg_hints_stats_get โ€” Kernel API Manual โœจ

So bestie, welcome to the objagg_hints_stats_get(9) page ๐Ÿ’– this one lives in the Kernel API Manual and honestly it's giving "one job, does it well" energy.


๐ŸŒธ NAME ๐ŸŒธ

objagg_hints_stats_get โ€” obtains stats of the hints instance ๐ŸŽ€


โœจ SYNOPSIS โœจ

const struct objagg_stats * objagg_hints_stats_get (struct objagg_hints
*objagg_hints );

๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • objagg_hints โ€” hints instance. That's the thing you're grabbing stats for, no cap ๐Ÿ’…

๐Ÿ”ฅ NOTE ๐Ÿ”ฅ

all locking must be provided by the caller. ๐Ÿซถ

Read that again bestie โ€” the function is not out here doing the locking for you, that's on you. Lock it up properly or it's gonna be a whole situation ๐Ÿ˜ญ


๐Ÿ‘‘ the ordering rules (yes, they're ordered too) ๐Ÿ‘‘

The returned structure contains statistics of all objects currently in use, ordered by following rules:

  1. Root objects are always on lower indexes than the rest. ๐ŸŒณ
  2. Objects with higher delta user count are always on lower indexes. ๐Ÿ“ˆ
  3. In case multiple objects have the same delta user count, the objects are ordered by user count. ๐Ÿงฎ

๐ŸŒˆ RETURN VALUE ๐ŸŒˆ

Returns a pointer to stats instance in case of success โœจ otherwise it returns pointer error using ERR_PTR macro. ๐Ÿ’€ So yeah โ€” check it, don't just vibe with it blindly, iykyk.


๐Ÿ’œ SEE ALSO ๐Ÿ’œ

Kernel file ./lib/objagg.c, plus the whole squad:


and that's the whole page bestie, you ate it ๐Ÿ’…โœจ

Sign-off time ๐ŸŽ€ this one's from ./lib, dated October 2026, and it's literally objagg_hints_stats_get(9) โ€” iconic, no notes ๐Ÿฆ‹๐ŸŒธ

๐Ÿ“ฆ where this page comes from