diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-19 21:39:19 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-19 21:39:19 -0800 |
commit | c0ad33c126300a51721a4f0ec8c0d757647e9cbe (patch) | |
tree | 3da368a314d7dbfc1b440a8410733438452cf483 /include/linux/sysfs.h | |
parent | 54e00cf01633eadcbf68973a33246b463131865a (diff) |
bcachefs-in-userspace improvements
Got rid of the stupid shim file hack
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 0be85b70..dde16922 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -17,6 +17,11 @@ struct attribute { .store = _store, \ } +struct sysfs_ops { + ssize_t (*show)(struct kobject *, struct attribute *, char *); + ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t); +}; + static inline int sysfs_create_files(struct kobject *kobj, const struct attribute **attr) { |