1/* Public domain. */ 2 3#ifndef _LINUX_SYSFS_H 4#define _LINUX_SYSFS_H 5 6#include <linux/kernfs.h> 7 8struct attribute { 9 const char *name; 10 int mode; 11}; 12 13struct bin_attribute { 14}; 15 16struct 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#define sysfs_bin_attr_init(x) 35 36static inline int 37sysfs_emit(char *str, const char *format, ...) 38{ 39 return 0; 40} 41 42static inline int 43sysfs_emit_at(char *str, int pos, const char *format, ...) 44{ 45 return 0; 46} 47 48#endif 49