sysfs_chmod_file(9)
okay so bestie, this is sysfs_chmod_file(9) from the Kernel API Manual β and itβs literally the βupdate the modified mode value on an object attributeβ girlie π
β¨ no cap.
π NAME π
sysfs_chmod_file β updates the modified mode value on an object attribute.
β¨ SYNOPSIS β¨
okay so the signature is right here, copy it exactly:
int sysfs_chmod_file (struct kobject *kobj , const struct attribute
*attr , umode_t mode );
πΈ ARGUMENTS πΈ
kobjβ the object weβre acting for π«Άattrβ the attribute descriptor πmodeβ the file permissions π
π¦ SEE ALSO π¦
bestie, the kernel file ./fs/sysfs/file.c is part of the squad too, and hereβs the whole related-functions group chat β all of them, no skips:
sysfs_create_file_ns(9)sysfs_add_file_to_group(9)sysfs_break_active_protection(9)sysfs_unbreak_active_protection(9)sysfs_remove_file_ns(9)sysfs_remove_file_self(9)sysfs_remove_file_from_group(9)sysfs_create_bin_file(9)sysfs_remove_bin_file(9)sysfs_link_change_owner(9)sysfs_file_change_owner(9)sysfs_change_owner(9)sysfs_emit(9)sysfs_emit_at(9)sysfs_bin_attr_simple_read(9)
kisses bestie π little footer moment: source ./fs/sysfs, dated October 2026 πβ¨
π¦ 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