aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
authormarcel.braun <marcel.braun@ost.ch>2026-03-24 16:50:27 +0100
committerLukas Oesch <lukasoesch20@gmail.com>2026-03-26 21:18:57 +0100
commit444810121f9c89285da1ec118828640f0445b2a7 (patch)
tree270ca5d8e0d5e41ce376d9499c882dc0f630772f /kernel/include
parentb3cb1d0f8864bf54362f1da2b7a65ca693778cff (diff)
downloadteachos-444810121f9c89285da1ec118828640f0445b2a7.tar.xz
teachos-444810121f9c89285da1ec118828640f0445b2a7.zip
Add mount_table
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/kernel/filesystem/mount_table.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/include/kernel/filesystem/mount_table.hpp b/kernel/include/kernel/filesystem/mount_table.hpp
new file mode 100644
index 0000000..14d6d08
--- /dev/null
+++ b/kernel/include/kernel/filesystem/mount_table.hpp
@@ -0,0 +1,23 @@
+#ifndef TEACH_OS_KERNEL_FILESYSTEM_MOUNT_TABLE_HPP
+#define TEACH_OS_KERNEL_FILESYSTEM_MOUNT_TABLE_HPP
+
+#include "kernel/filesystem/dentry.hpp"
+#include "kernel/filesystem/mount.hpp"
+
+#include <kstd/memory>
+#include <kstd/vector>
+
+namespace filesystem
+{
+ struct mount_table
+ {
+ public:
+ void add_mount(kstd::shared_ptr<mount>);
+ auto find_mount_by_dentry(kstd::shared_ptr<dentry> const & dentry) -> kstd::shared_ptr<mount>;
+
+ private:
+ kstd::vector<kstd::shared_ptr<mount>> m_mounts;
+ };
+} // namespace filesystem
+
+#endif