From dca8a58dc140481ea1b6cf88ab60f06b88db31ba Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 22 Jul 2026 18:20:10 +0200 Subject: kapi: expose create_device_node --- kapi/kapi/filesystem.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kapi') 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; + //! 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; + //! @} } // namespace kapi::filesystem -- cgit v1.2.3