diff options
Diffstat (limited to 'kernel/kernel/vfs/inode.hpp')
| -rw-r--r-- | kernel/kernel/vfs/inode.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/kernel/vfs/inode.hpp b/kernel/kernel/vfs/inode.hpp index d8db8046..63e73315 100644 --- a/kernel/kernel/vfs/inode.hpp +++ b/kernel/kernel/vfs/inode.hpp @@ -1,6 +1,8 @@ #ifndef TEACHOS_KERNEL_VFS_INODE_HPP #define TEACHOS_KERNEL_VFS_INODE_HPP +#include <kernel/vfs/driver_state.hpp> + #include <kapi/filesystem.hpp> #include <kstd/memory.hpp> @@ -116,23 +118,23 @@ namespace kernel::vfs //! @} - //! @name Mount Resolution + //! @name Driver State Resolution //! @{ //! Get the mount this inode belongs to. //! //! @return The mount this inode belongs to. - [[nodiscard]] auto owning_mount() const noexcept -> kstd::weak_ptr<mount>; + [[nodiscard]] auto driver_state() const noexcept -> kstd::weak_ptr<vfs::driver_state>; //! Define which mount this inode belongs to. //! //! @param source The mount this inode belongs to. - auto set_owning_mount(kstd::shared_ptr<mount> const & source) noexcept -> void; + auto set_driver_state(kstd::shared_ptr<vfs::driver_state> const & source) noexcept -> void; //! @} private: - kstd::weak_ptr<mount> m_owning_mount{}; + kstd::weak_ptr<vfs::driver_state> m_driver_state{}; }; } // namespace kernel::vfs |
