aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/custody.cpp
diff options
context:
space:
mode:
authormarcel.braun <marcel.braun@ost.ch>2026-03-23 09:03:27 +0100
committerLukas Oesch <lukasoesch20@gmail.com>2026-03-26 21:18:46 +0100
commitf90cbdaa91b1b7a4752db3f159ce2524696cff9f (patch)
treecdc87c4e856b593a207e7a03f9917c65943e18a8 /kernel/src/filesystem/custody.cpp
parent840c7fec926e7fa8a9d9b64b23167f269096b59b (diff)
downloadteachos-f90cbdaa91b1b7a4752db3f159ce2524696cff9f.tar.xz
teachos-f90cbdaa91b1b7a4752db3f159ce2524696cff9f.zip
Rename custody to dentry and add children
Diffstat (limited to 'kernel/src/filesystem/custody.cpp')
-rw-r--r--kernel/src/filesystem/custody.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/kernel/src/filesystem/custody.cpp b/kernel/src/filesystem/custody.cpp
deleted file mode 100644
index a4dd12c..0000000
--- a/kernel/src/filesystem/custody.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "kernel/filesystem/custody.hpp"
-
-#include "kapi/system.hpp"
-
-#include "kernel/filesystem/inode.hpp"
-
-#include <kstd/memory>
-
-namespace filesystem
-{
- custody::custody(kstd::shared_ptr<custody> const & parent, kstd::shared_ptr<inode> const & node)
- : m_parent(parent)
- , m_inode(node)
- {
- if (!m_inode)
- {
- kapi::system::panic("[FILESYSTEM] custody constructed with null inode.");
- }
- }
-
- auto custody::get_inode() const -> kstd::shared_ptr<inode> const &
- {
- return m_inode;
- }
-
- auto custody::get_parent() const -> kstd::shared_ptr<custody> const &
- {
- return m_parent;
- }
-} // namespace filesystem \ No newline at end of file