aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/kernel/filesystem/dentry.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/kernel/filesystem/dentry.hpp b/kernel/include/kernel/filesystem/dentry.hpp
index 45d2ca2..bd62735 100644
--- a/kernel/include/kernel/filesystem/dentry.hpp
+++ b/kernel/include/kernel/filesystem/dentry.hpp
@@ -55,6 +55,12 @@ namespace kernel::filesystem
[[nodiscard]] auto get_name() const -> std::string_view;
/**
+ @brief Get the full path of the dentry by traversing up to the root.
+ @return The full path of the dentry.
+ */
+ [[nodiscard]] auto get_full_path() const -> kstd::string;
+
+ /**
@brief Add a @p child dentry.
@param child The child dentry to add.
*/