objagg_obj_get(9)
π objagg_obj_get(9) β the kernel API manual, bestie edition
okay so this is a page straight out of the Kernel API Manual, and it's all about objagg_obj_get β the glow-up function that gets you an object within an objagg instance β¨
πΈ NAME πΈ
objagg_obj_get β literally gets an object within an objagg instance, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
struct objagg_obj * objagg_obj_get (struct objagg *objagg , void *obj );
π ARGUMENTS π
objaggβ your objagg instance. the main character, the container, the whole situation πobjβ a user-specific private object pointer. yes it's literally just calledobj. iconic naming, no notes π₯
π NOTE π
bestie pay attention, this part matters π
all locking must be provided by the caller. not the function's job, not its problem β you bring the locks, queen π
Size of the obj memory is specified in objagg->ops.
There are 3 main options this function wraps β like a lil choose-your-own-adventure, but make it kernel π
- The object according to
objalready exists. In that case the reference counter is incremented and the object is returned. ate, no crumbs, done π - The object does not exist, but it can be aggregated within another object. In that case, user
ops->delta_createis called to obtain delta data, and a new object is created with the returned user-delta private pointer π¦ - The object does not exist and cannot be aggregated into any of the existing objects. In that case, user
ops->root_createis called to create the root, and a new object is created with the returned user-root private pointer π±
It returns a pointer to objagg object instance in case of success β otherwise it returns pointer error using the ERR_PTR macro π¨ (so like, check that thing, fr fr π)
π§ SEE ALSO π§
Kernel file ./lib/objagg.c, plus these certified baddies that you should absolutely check out:
objagg_obj_root_priv(9)objagg_obj_delta_priv(9)objagg_obj_raw(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)objagg_hints_stats_get(9)
and that's the whole page, bestie π«Άβ¨ this one lives down in ./lib, dated October 2026 β go forth and get those objects, you've got this ππ
π¦ 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