kset_find_obj(9)
π kset_find_obj β Kernel API Manual β¨
okay so before we even start, yes this is from the Kernel API Manual, and yes it's about digging through a kset to find one specific object, and honestly? it's giving "searching for your friend in a crowd" energy π«Ά
πΈ NAME πΈ
kset_find_obj β literally go find an object in a kset, bestie π
β SYNOPSIS β
struct kobject * kset_find_obj (struct kset *kset , const char *name );
π ARGUMENTS π
ksetβ the kset we're looking in. like, this is the friend group we're searching through πnameβ the object's name. the vibe check we're matching against β¨
π¦ DESCRIPTION π¦
okay so here's the whole situation. first you lock the kset via kset->subsys π β gotta be safe, no cap.
then you iterate over kset->list, looking for a matching kobject. like, one by one, bestie, checking each one π
and if a matching object is found? you take a reference and return the object. that's it, that's the whole thing. iconic behavior honestly π
lowkey important: that reference you take means you're gonna have to put it back later. don't just vibe and forget, that's a leak fr fr π
π SEE ALSO π
kernel file ./lib/kobject.c β plus the whole kobject/kset extended universe, and yes we're listing all of them because they're all part of the lore π
kobject_namespace(9)kobject_get_ownership(9)kobject_get_path(9)kobject_set_name_vargs(9)kobject_set_name(9)kobject_init(9)kobject_add(9)kobject_init_and_add(9)kobject_rename(9)kobject_move(9)kobject_del(9)kobject_get(9)kobject_put(9)kobject_create(9)kobject_create_and_add(9)kset_init(9)kset_register(9)kset_unregister(9)kset_create(9)kset_create_and_add(9)
mwah π that's the page! came from ./lib, dated October 2026, and honestly? she ate. go find your objects bestie, and remember to kobject_put(9) when you're done π«Άβ¨
π¦ 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