4 #include <linux/compiler.h>
5 #include <linux/stringify.h>
14 #define __ATTR(_name, _mode, _show, _store) { \
15 .attr = {.name = __stringify(_name), .mode = _mode }, \
21 ssize_t (*show)(struct kobject *, struct attribute *, char *);
22 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
25 static inline int sysfs_create_files(struct kobject *kobj,
26 const struct attribute **attr)
31 static inline int sysfs_create_link(struct kobject *kobj,
32 struct kobject *target, const char *name)
37 static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
41 #endif /* _SYSFS_H_ */