objagg_hints_stats_get(9)
๐ 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:
- Root objects are always on lower indexes than the rest. ๐ณ
- Objects with higher delta user count are always on lower indexes. ๐
- 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:
objagg_obj_root_priv(9)objagg_obj_delta_priv(9)objagg_obj_raw(9)objagg_obj_get(9)objagg_obj_put(9)objagg_create(9)objagg_destroy(9)objagg_stats_get(9)objagg_stats_put(9)objagg_hints_get(9)objagg_hints_put(9)
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
- 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