kobject_set_name(9)
kobject_set_name(9) β¨
Okay so this is a Kernel API Manual moment, bestie β we're talking about kobject_set_name(9) and it's giving βname that kobjectβ energy π¦
π NAME π
kobject_set_name β sets the name of a kobject π
π SYNOPSIS π
int kobject_set_name (struct kobject *kobj , const char *fmt , ... );
πΈ ARGUMENTS πΈ
kobjβ thestruct kobjectto set the name of π«Άfmtβ format string used to build the name β¨...β variable arguments π
π₯ DESCRIPTION π₯
Okay so real talk: this sets the name of the kobject. Literally that's the vibe π«
But listen β if you have already added the kobject to the system, you must call kobject_rename in order to change the name of the kobject. That's not optional, bestie, that's the rule periodt π
Like, if it's already out there in the system? kobject_rename is the main character for renaming. No cap π«Ά
π SEE ALSO π
Kernel file: ./lib/kobject.c β and the whole squad is here, bestie:
kobject_namespace(9)kobject_get_ownership(9)kobject_get_path(9)kobject_set_name_vargs(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_find_obj(9)kset_create(9)kset_create_and_add(9)
Cute sign-off from source/version ./lib, dated October 2026, page kobject_set_name(9) β mwah, slay, bye bestie π«Άπ
π¦ 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