feat: twifs - pseudo file system for lunaix kernel state exposure
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / twifs.h
1 #ifndef __LUNAIX_TWIFS_H
2 #define __LUNAIX_TWIFS_H
3
4 #include <lunaix/fs.h>
5
6 struct twifs_node
7 {
8     struct hstr name;
9     uint32_t itype;
10     struct llist_header children;
11     struct llist_header siblings;
12     struct v_file_ops fops;
13 };
14
15 void
16 twifs_init();
17
18 struct twifs_node*
19 twifs_child_node(struct twifs_node* parent, const char* name, int name_len);
20
21 struct twifs_node*
22 twifs_toplevel_node(const char* name, int name_len);
23
24 #endif /* __LUNAIX_TWIFS_H */