diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-15 16:17:50 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-16 11:56:07 +0200 |
| commit | 95ff59017db74a6988f791ca9f122254dd743541 (patch) | |
| tree | b42241ab6b72a68f4fc5ffec13e882b38ec528df /kernel/include | |
| parent | 66d0e68376c9ad3e2b13f6ff8d999a0c85bda1a4 (diff) | |
| download | kernel-95ff59017db74a6988f791ca9f122254dd743541.tar.xz kernel-95ff59017db74a6988f791ca9f122254dd743541.zip | |
refactor find_mount_iterator to avoid code duplication
Diffstat (limited to 'kernel/include')
| -rw-r--r-- | kernel/include/kernel/filesystem/mount_table.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/include/kernel/filesystem/mount_table.hpp b/kernel/include/kernel/filesystem/mount_table.hpp index 8bebfe2..742c928 100644 --- a/kernel/include/kernel/filesystem/mount_table.hpp +++ b/kernel/include/kernel/filesystem/mount_table.hpp @@ -47,6 +47,8 @@ namespace kernel::filesystem private: [[nodiscard]] auto has_child_mounts(kstd::shared_ptr<mount> const & parent_mount) const -> bool; + [[nodiscard]] auto find_mount_iterator(std::string_view path) const + -> kstd::vector<kstd::shared_ptr<mount>>::const_iterator; kstd::vector<kstd::shared_ptr<mount>> m_mounts; }; |
