aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2005-04-19 00:57:32 -0400
committerGreg KH <greg@press.kroah.org>2005-04-19 00:57:32 -0400
commit31e5abe9a6dab1ed3a5c30352bdb001353146318 (patch)
tree941317d6f91fe2bd0cb605692230b65686ca13e0 /include
parent6897089c5f7989603ccb9c696050470ba1dbd262 (diff)
[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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sysfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index 6f502ff7902a..38b58b30814a 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -99,6 +99,9 @@ sysfs_create_file(struct kobject *, const struct attribute *);
99extern int 99extern int
100sysfs_update_file(struct kobject *, const struct attribute *); 100sysfs_update_file(struct kobject *, const struct attribute *);
101 101
102extern int
103sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode);
104
102extern void 105extern void
103sysfs_remove_file(struct kobject *, const struct attribute *); 106sysfs_remove_file(struct kobject *, const struct attribute *);
104 107
@@ -140,6 +143,10 @@ static inline int sysfs_update_file(struct kobject * k, const struct attribute *
140{ 143{
141 return 0; 144 return 0;
142} 145}
146static inline int sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode)
147{
148 return 0;
149}
143 150
144static inline void sysfs_remove_file(struct kobject * k, const struct attribute * a) 151static inline void sysfs_remove_file(struct kobject * k, const struct attribute * a)
145{ 152{