sysfs_group_change_owner(9)
π sysfs_group_change_owner β a kernel API manual moment
ok so bestie, welcome to sysfs_group_change_owner(9) β yes that's the whole title, section 9, Kernel API Manual vibes, and it is literally about one tiny job: changing who owns an attribute group. that's it. that's the whole slay. π
β¨ SYNOPSIS β¨
int sysfs_group_change_owner (struct kobject *kobj , const struct
attribute_group *grp , kuid_t kuid , kgid_t kgid );
look at her. four arguments, returns an int, she's iconic and she knows it. π
πΈ ARGUMENTS πΈ
okay so let's meet the cast, no cap:
kobjβ thekobjectthat contains the group. like, the whole container. the main character. the group's home address. πgrpβ the attribute group itself. theconst struct attribute_group *in question. she's the one getting a new owner fr fr. π¦kuidβ the new owner'skuid. yes, kuid, kernel-user-id flavored. πkgidβ the new owner'skgid. same energy, but group-y. kgid. π
π DESCRIPTION π
so what does she actually do? she changes the owner of an attribute group. that's the vibe check and she passes it.
Returns 0 on success or error code on failure. that's the entire description bestie, don't @ me, the kernel devs kept it short and honestly? respect. π
like genuinely β 0 means slay, anything else is an error code and you should probably read it. error code = not the vibe. π
π₯ SEE ALSO π₯
okay this is the friend group, and they're all in Kernel file ./fs/sysfs/group.c so you know where to find them:
sysfs_create_group(9)sysfs_create_groups(9)sysfs_update_groups(9)sysfs_update_group(9)sysfs_remove_group(9)sysfs_remove_groups(9)sysfs_merge_group(9)sysfs_unmerge_group(9)sysfs_add_link_to_group(9)sysfs_remove_link_from_group(9)compat_only_sysfs_link_entry_to_kobj(9)sysfs_groups_change_owner(9)
not me listing all twelve of them π β but yes, all twelve, every single one, because we don't skip the boring parts in this house. group chat complete. β¨
and that's the page!! ./fs/sysfs is where she lives, she's stamped October 2026, and she's filed under sysfs_group_change_owner(9) β go forth and change some owners, bestie, 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