From 1356405c9fc6d54cf9da4d5f6fd54c55d51ce66d Mon Sep 17 00:00:00 2001 From: Lukas Oesch Date: Sun, 19 Apr 2026 10:01:52 +0200 Subject: vfs open returns the dentry not the open file description --- kernel/include/kernel/filesystem/vfs.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/include') diff --git a/kernel/include/kernel/filesystem/vfs.hpp b/kernel/include/kernel/filesystem/vfs.hpp index 2a9d5f7..678e645 100644 --- a/kernel/include/kernel/filesystem/vfs.hpp +++ b/kernel/include/kernel/filesystem/vfs.hpp @@ -52,11 +52,11 @@ namespace kernel::filesystem ~vfs() = default; /** - @brief Open a file by its @p path. This method resolves the path and creates an open file description. + @brief Open a file by its @p path. This method resolves the path and returns the corresponding dentry. @param path The path to the file to open. - @return A shared pointer to the open file description or a null pointer if the file could not be opened. + @return A shared pointer to the dentry or a null pointer if the file could not be opened. */ - auto open(std::string_view path) -> kstd::shared_ptr; + auto open(std::string_view path) -> kstd::shared_ptr; /** @brief Mount a @p source path to a specific @p target path. -- cgit v1.2.3