aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/kernel/filesystem/mount.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/include/kernel/filesystem/mount.hpp b/kernel/include/kernel/filesystem/mount.hpp
index fb5a627..5d8ea69 100644
--- a/kernel/include/kernel/filesystem/mount.hpp
+++ b/kernel/include/kernel/filesystem/mount.hpp
@@ -8,6 +8,7 @@
#include <kstd/string>
#include <atomic>
+#include <cstddef>
namespace kernel::filesystem
{
@@ -71,6 +72,12 @@ namespace kernel::filesystem
*/
[[nodiscard]] auto is_ready_to_unmount() const -> bool;
+ /**
+ @brief Get the current reference count for this mount.
+ @return The current reference count.
+ */
+ [[nodiscard]] auto get_ref_count() const -> size_t;
+
private:
kstd::shared_ptr<dentry> m_mount_dentry;
kstd::shared_ptr<dentry> m_root_dentry;