]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/sysfs.h
rust: bump rpassword to v7.x
[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 attribute_group {
14         struct attribute        **attrs;
15 };
16
17 struct sysfs_ops {
18         ssize_t (*show)(struct kobject *, struct attribute *, char *);
19         ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
20 };
21
22 static inline int sysfs_create_files(struct kobject *kobj,
23                                     const struct attribute **attr)
24 {
25         return 0;
26 }
27
28 static inline int sysfs_create_link(struct kobject *kobj,
29                                     struct kobject *target, const char *name)
30 {
31         return 0;
32 }
33
34 static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
35 {
36 }
37
38 #endif /* _SYSFS_H_ */