Merge branch 'master' into isa/arm64
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / taskfs.h
1 #ifndef __LUNAIX_TASKFS_H
2 #define __LUNAIX_TASKFS_H
3
4 #include <lunaix/fs/api.h>
5 #include <lunaix/fs/twimap.h>
6
7 struct task_attribute
8 {
9     struct llist_header siblings;
10     struct hlist_node attrs;
11     struct hstr key;
12     struct twimap* map_file;
13     char key_val[32];
14 };
15
16 void
17 taskfs_init();
18
19 void
20 taskfs_export_attr(const char* key, struct twimap* attr_map_file);
21
22 struct task_attribute*
23 taskfs_get_attr(struct hstr* key);
24
25 void
26 taskfs_invalidate(pid_t pid);
27
28 #endif /* __LUNAIX_TASKFS_H */