]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/sysfs.h
Update bcachefs sources to 99750eab4d bcachefs: Persist stripe blocks_used
[bcachefs-tools-debian] / include / linux / sysfs.h
1 #ifndef _SYSFS_H_
2 #define _SYSFS_H_
3
4 #include <linux/compiler.h>
5
6 struct kobject;
7
8 struct attribute {
9         const char              *name;
10         umode_t                 mode;
11 };
12
13 struct sysfs_ops {
14         ssize_t (*show)(struct kobject *, struct attribute *, char *);
15         ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
16 };
17
18 static inline int sysfs_create_files(struct kobject *kobj,
19                                     const struct attribute **attr)
20 {
21         return 0;
22 }
23
24 static inline int sysfs_create_link(struct kobject *kobj,
25                                     struct kobject *target, const char *name)
26 {
27         return 0;
28 }
29
30 static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
31 {
32 }
33
34 #endif /* _SYSFS_H_ */