userspace fun: maze game and a new device to support it
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / ramfs.h
1 #ifndef __LUNAIX_RAMFS_H
2 #define __LUNAIX_RAMFS_H
3
4 #include <lunaix/types.h>
5
6 #define RAMF_FILE 0
7 #define RAMF_DIR 1
8 #define RAMF_SYMLINK 2
9
10 struct ram_inode
11 {
12     u32_t flags;
13     char* symlink;
14 };
15
16 #define RAM_INODE(data) ((struct ram_inode*)(data))
17
18 void
19 ramfs_init();
20
21 #endif /* __LUNAIX_RAMFS_H */