objagg_stats_get(9)
πΈ 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 π:
- Root objects are always on lower indexes than the rest. π (roots stay winning)
- Objects with higher delta user count are always on lower indexes. π₯
- 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_PTRmacro π (so like, check it withIS_ERRbefore 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 π
- Kernel file
./lib/objagg.c 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_put(9)objagg_hints_get(9)objagg_hints_put(9)objagg_hints_stats_get(9)
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
- 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