summaryrefslogtreecommitdiff
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-19 21:39:19 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-19 21:39:19 -0800
commitc0ad33c126300a51721a4f0ec8c0d757647e9cbe (patch)
tree3da368a314d7dbfc1b440a8410733438452cf483 /include/linux/sysfs.h
parent54e00cf01633eadcbf68973a33246b463131865a (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.h5
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)
{