1 #ifndef __LUNAIX_DEVICE_H
2 #define __LUNAIX_DEVICE_H
4 #define DEVICE_NAME_SIZE 32
6 #include <lunaix/ds/hstr.h>
7 #include <lunaix/ds/llist.h>
11 struct llist_header dev_list;
12 struct device* parent;
14 char name_val[DEVICE_NAME_SIZE];
17 int (*read)(struct device* dev,
21 int (*write)(struct device* dev,
31 device_addseq(struct device* parent, void* underlay, char* name_fmt, ...);
34 device_addvol(struct device* parent, void* underlay, char* name_fmt, ...);
37 device_remove(struct device* dev);
39 #endif /* __LUNAIX_DEVICE_H */