mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
[PATCH] sysfs: add sysfs_chmod_file()
sysfs: allow changing the permissions for already created attributes Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
6897089c5f
commit
31e5abe9a6
2 changed files with 42 additions and 0 deletions
|
@ -99,6 +99,9 @@ sysfs_create_file(struct kobject *, const struct attribute *);
|
|||
extern int
|
||||
sysfs_update_file(struct kobject *, const struct attribute *);
|
||||
|
||||
extern int
|
||||
sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode);
|
||||
|
||||
extern void
|
||||
sysfs_remove_file(struct kobject *, const struct attribute *);
|
||||
|
||||
|
@ -140,6 +143,10 @@ static inline int sysfs_update_file(struct kobject * k, const struct attribute *
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void sysfs_remove_file(struct kobject * k, const struct attribute * a)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue