aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-22 18:20:10 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-22 18:20:10 +0200
commitdca8a58dc140481ea1b6cf88ab60f06b88db31ba (patch)
treedfc818c629e20c3975435a41f91ceb471918692f /kapi
parentde0e337412f4aff65195bc69e7f4e13fb2ee73c6 (diff)
downloadkernel-dca8a58dc140481ea1b6cf88ab60f06b88db31ba.tar.xz
kernel-dca8a58dc140481ea1b6cf88ab60f06b88db31ba.zip
kapi: expose create_device_node
Diffstat (limited to 'kapi')
-rw-r--r--kapi/kapi/filesystem.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp
index 56bb295f..4b0971f6 100644
--- a/kapi/kapi/filesystem.hpp
+++ b/kapi/kapi/filesystem.hpp
@@ -86,6 +86,14 @@ namespace kapi::filesystem
//! @return A populated file status object on success, an error otherwise.
auto status(std::string_view path) -> kstd::result<file_status>;
+ //! Create a persistent device node at the given path
+ //!
+ //! @param path The path to the device node
+ //! @param type The type of device referenced by the new node.
+ //! @param number The number of the reference device.
+ //! @return Nothing on success, an error on failure
+ auto create_device_node(std::string_view path, file_type type, device_number number) -> kstd::result<void>;
+
//! @}
} // namespace kapi::filesystem