diff options
Diffstat (limited to 'kernel/src/generic/tmpfs.hpp')
| -rw-r--r-- | kernel/src/generic/tmpfs.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/src/generic/tmpfs.hpp b/kernel/src/generic/tmpfs.hpp new file mode 100644 index 0000000..86d9f13 --- /dev/null +++ b/kernel/src/generic/tmpfs.hpp @@ -0,0 +1,21 @@ +#pragma once +#include <cstdint> +#include <generic/vfs.hpp> + +namespace tmpfs { + + struct tmpfs_node { + union { + char* content; + tmpfs_node** directory_content; + }; + vfs_file_type type; + std::size_t size; + std::size_t physical_size; + std::uint64_t ino; + std::uint64_t mode; + char name[256]; + }; + + void init_default(vfs::node* node); +}
\ No newline at end of file |
