aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
authorLukas Oesch <lukasoesch20@gmail.com>2026-05-15 22:38:24 +0200
committerLukas Oesch <lukasoesch20@gmail.com>2026-05-16 11:56:07 +0200
commit1f9fe3cf18b561749cfbdb2db8ab7572ddc40c03 (patch)
treeafb1e1be65e05806ffe776c4fbbc994722b860e9 /kernel/include
parent0e279db4e1b799c4db0cc7c714d57686e3de7089 (diff)
downloadkernel-1f9fe3cf18b561749cfbdb2db8ab7572ddc40c03.tar.xz
kernel-1f9fe3cf18b561749cfbdb2db8ab7572ddc40c03.zip
uniform interface for open and close
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/kernel/filesystem/vfs.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/include/kernel/filesystem/vfs.hpp b/kernel/include/kernel/filesystem/vfs.hpp
index 48b99b2..0058d04 100644
--- a/kernel/include/kernel/filesystem/vfs.hpp
+++ b/kernel/include/kernel/filesystem/vfs.hpp
@@ -62,11 +62,11 @@ namespace kernel::filesystem
auto open(std::string_view path) -> kstd::shared_ptr<dentry>;
/**
- @brief Close a file by its associated @p dentry.
- @param dentry The dentry of the file to close.
+ @brief Close a file by its associated @p path.
+ @param path The path to the file to close.
@return The result of the close operation.
*/
- auto close(kstd::shared_ptr<dentry> const & dentry) -> operation_result;
+ auto close(std::string_view path) -> operation_result;
/**
@brief Mount a @p source path to a specific @p target path.