diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-22 16:02:50 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-22 16:02:50 +0200 |
| commit | d027d60f364e4e6345d26bc5f90eaedcc7793fc7 (patch) | |
| tree | 0d24db962a34289a6cff443c12983f71d94efde6 /kapi | |
| parent | 984d20ec8cb734cb47fb1ff5d34861eaf9f4aa32 (diff) | |
| download | kernel-d027d60f364e4e6345d26bc5f90eaedcc7793fc7.tar.xz kernel-d027d60f364e4e6345d26bc5f90eaedcc7793fc7.zip | |
kapi/fs: implement status and raw_device
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/filesystem.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp index 2b5dc827..56bb295f 100644 --- a/kapi/kapi/filesystem.hpp +++ b/kapi/kapi/filesystem.hpp @@ -80,6 +80,12 @@ namespace kapi::filesystem //! @return Nothing on success, an error on failure. auto create(std::string_view path) -> kstd::result<void>; + //! Get the status information for the file at a given path. + //! + //! @param path The path to the file to query information for. + //! @return A populated file status object on success, an error otherwise. + auto status(std::string_view path) -> kstd::result<file_status>; + //! @} } // namespace kapi::filesystem |
