diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-04-19 10:01:52 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-04-19 10:01:52 +0200 |
| commit | 1356405c9fc6d54cf9da4d5f6fd54c55d51ce66d (patch) | |
| tree | 8204fad4c5882f7a371410086b12298f88c73a8f /kernel/include | |
| parent | e9837b17eeee5ba69f5067e5bfe3f40aca0a9277 (diff) | |
| download | teachos-1356405c9fc6d54cf9da4d5f6fd54c55d51ce66d.tar.xz teachos-1356405c9fc6d54cf9da4d5f6fd54c55d51ce66d.zip | |
vfs open returns the dentry not the open file description
Diffstat (limited to 'kernel/include')
| -rw-r--r-- | kernel/include/kernel/filesystem/vfs.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<open_file_description>; + auto open(std::string_view path) -> kstd::shared_ptr<dentry>; /** @brief Mount a @p source path to a specific @p target path. |
