kobject_rename(9)
π kobject_rename(9) β like, the Kernel API Manual page you actually wanna read
okay so bestie, welcome to the glow-up era of kobject_rename(9) β this is the kernel API manual entry for renaming a kobject, and honestly it's giving "short but mighty" β¨
π NAME π
kobject_rename β Change the name of an object. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int kobject_rename (struct kobject *kobj , const char *new_name );
literally the entire signature, no cap π«Ά
πΈ ARGUMENTS πΈ
kobjβ the object in question. yes, that object. the main character πnew_nameβ the object's new name. the rebrand, the fresh identity, the new era π¦
π DESCRIPTION π
okay so here's the tea, and it's important tea: it is the responsibility of the caller to provide mutual exclusion between two different calls of kobject_rename on the same kobject, and to ensure that new_name is valid and won't conflict with other kobjects.
read that again, bestie. the kernel is NOT gonna hold your hand on this one π« no lock, no safety net, no nothing. if you're calling kobject_rename from two places at once on the same kobject without sorting out your own exclusion β that's on you, fr fr. and you also gotta make sure new_name is actually valid and doesn't collide with any other kobject. iykyk π
β SEE ALSO β
kernel file ./lib/kobject.c, plus the whole friend group:
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_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_find_obj(9)kset_create(9)kset_create_and_add(9)
that's the whole kobject/kset extended universe, go read them, they all ate π₯
ngl this page lives at ./lib and it's dated October 2026, so jot that down β seasonal queen behavior π
and that's the page, bestie!! kobject_rename(9) from the Kernel API Manual, ./lib, October 2026 β mwah, 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