aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/mount.cpp
diff options
context:
space:
mode:
authorMarcel Braun <marcel.braun@ost.ch>2026-05-16 17:04:15 +0200
committerMarcel Braun <marcel.braun@ost.ch>2026-05-16 17:04:15 +0200
commit2ac578a90aaf5076f9b725b8a1a2c139075b9528 (patch)
treebb8bf76908079f53daa532486d8c003bed969894 /kernel/src/filesystem/mount.cpp
parent106e9731aaf856f940592c02953e49a496555822 (diff)
parent3d8ea5b1b833f39b77f0591fb2a301842ed5eb1c (diff)
downloadkernel-2ac578a90aaf5076f9b725b8a1a2c139075b9528.tar.xz
kernel-2ac578a90aaf5076f9b725b8a1a2c139075b9528.zip
Merge branch 'refactoring' into 'develop-BA-FS26'
refactoring See merge request teachos/kernel!38
Diffstat (limited to 'kernel/src/filesystem/mount.cpp')
-rw-r--r--kernel/src/filesystem/mount.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/src/filesystem/mount.cpp b/kernel/src/filesystem/mount.cpp
index 1e04083..b64c370 100644
--- a/kernel/src/filesystem/mount.cpp
+++ b/kernel/src/filesystem/mount.cpp
@@ -27,7 +27,7 @@ namespace kernel::filesystem
}
}
- auto mount::get_mount_dentry() const -> kstd::shared_ptr<dentry> const &
+ auto mount::mount_dentry() const -> kstd::shared_ptr<dentry> const &
{
return m_mount_dentry;
}
@@ -37,21 +37,21 @@ namespace kernel::filesystem
return m_filesystem;
}
- auto mount::get_root_dentry() const -> kstd::shared_ptr<dentry> const &
+ auto mount::root_dentry() const -> kstd::shared_ptr<dentry> const &
{
return m_root_dentry;
}
- auto mount::get_mount_path() const -> kstd::string
+ auto mount::mount_path() const -> kstd::string
{
if (m_mount_dentry)
{
- return m_mount_dentry->get_absolute_path();
+ return m_mount_dentry->absolute_path();
}
return "/";
}
- auto mount::get_parent_mount() const -> kstd::shared_ptr<mount> const &
+ auto mount::parent_mount() const -> kstd::shared_ptr<mount> const &
{
return m_parent_mount;
}
@@ -77,7 +77,7 @@ namespace kernel::filesystem
return m_ref_count == 0;
}
- auto mount::get_ref_count() const -> size_t
+ auto mount::ref_count() const -> size_t
{
return m_ref_count;
}