1 /* Public domain. */ 2 3 #ifndef _LINUX_SYSFS_H 4 #define _LINUX_SYSFS_H 5 6 #include <linux/kernfs.h> 7 8 struct attribute { 9 const char *name; 10 int mode; 11 }; 12 13 struct bin_attribute { 14 }; 15 16 struct attribute_group { 17 const char *name; 18 struct attribute **attrs; 19 struct bin_attribute **bin_attrs; 20 }; 21 22 #define ATTRIBUTE_GROUPS(x) 23 24 #define sysfs_create_link(x, y, z) 0 25 #define sysfs_remove_link(x, y) 26 #define sysfs_create_group(x, y) 0 27 #define sysfs_remove_group(x, y) 28 #define sysfs_remove_file(x, y) 29 #define sysfs_create_bin_file(x, y) 0 30 #define sysfs_remove_bin_file(x, y) 31 #define sysfs_remove_file_from_group(x, y, z) 32 #define sysfs_create_files(x, y) 0 33 #define sysfs_remove_files(x, y) 34 35 static inline int 36 sysfs_emit(char *str, const char *format, ...) 37 { 38 return 0; 39 } 40 41 static inline int 42 sysfs_emit_at(char *str, int pos, const char *format, ...) 43 { 44 return 0; 45 } 46 47 #endif 48