diff options
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/capabilities/facet_id.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/devices/bus.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/devices/device_registry.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/filesystem.hpp | 8 | ||||
| -rw-r--r-- | kapi/kapi/filesystem/block_special_file.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/memory/frame.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/memory/page.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/system.hpp | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/kapi/kapi/capabilities/facet_id.hpp b/kapi/kapi/capabilities/facet_id.hpp index 820814be..bb6de9c1 100644 --- a/kapi/kapi/capabilities/facet_id.hpp +++ b/kapi/kapi/capabilities/facet_id.hpp @@ -22,7 +22,7 @@ namespace kapi::capabilities {} //! Get the name of this facet. - [[nodiscard]] constexpr auto name() const noexcept -> std::string_view const & + [[nodiscard]] constexpr auto name() const noexcept -> std::string_view { return m_name; } diff --git a/kapi/kapi/devices/bus.hpp b/kapi/kapi/devices/bus.hpp index 3a0ba6a6..365d5c6c 100644 --- a/kapi/kapi/devices/bus.hpp +++ b/kapi/kapi/devices/bus.hpp @@ -44,7 +44,7 @@ namespace kapi::devices //! Whenever a device is attached to a bus, the bus takes sole ownership of the device. //! //! @param child The child device to attach. - auto add_child(kstd::shared_ptr<device> child) -> void; + auto add_child(kstd::shared_ptr<device> const & child) -> void; //! Detach a child device from this bus and tear it down. //! diff --git a/kapi/kapi/devices/device_registry.hpp b/kapi/kapi/devices/device_registry.hpp index 816ad984..346b9a10 100644 --- a/kapi/kapi/devices/device_registry.hpp +++ b/kapi/kapi/devices/device_registry.hpp @@ -55,7 +55,7 @@ namespace kapi::devices //! //! @param device The device to register. //! @return true if the device was registered successfully, false otherwise. - auto add(kstd::shared_ptr<device> device) -> bool; + auto add(kstd::shared_ptr<device> const & device) -> bool; //! Remove a device from the kernel's device registry. //! diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp index cd687c45..99466dfd 100644 --- a/kapi/kapi/filesystem.hpp +++ b/kapi/kapi/filesystem.hpp @@ -54,21 +54,21 @@ namespace kapi::filesystem //! //! @param file_descriptor The file descriptor to close. //! @return Nothing on success, an error code otherwise . - auto close(size_t file_descriptor) -> kstd::result<void>; + auto close(std::size_t file_descriptor) -> kstd::result<void>; //! Read bytes from a file into a given buffer. //! //! @param file_descriptor The file descriptor to read from. //! @param buffer The buffer to store the read data. //! @return The number of bytes read on success, an error code otherwise. - auto read(size_t file_descriptor, std::span<std::byte> buffer) -> kstd::result<kstd::bytes>; + auto read(std::size_t file_descriptor, std::span<std::byte> buffer) -> kstd::result<kstd::bytes>; //! Write bytes from a given buffer to a file descriptor. //! //! @param file_descriptor The file descriptor to write to. //! @param buffer The buffer containing the data to write. //! @return The number of bytes written on success, an error code otherwise. - auto write(size_t file_descriptor, std::span<std::byte const> buffer) -> kstd::result<kstd::bytes>; + auto write(std::size_t file_descriptor, std::span<std::byte const> buffer) -> kstd::result<kstd::bytes>; //! Adjust the current position in the file. //! @@ -76,7 +76,7 @@ namespace kapi::filesystem //! @param offset The offset to seek to, relative to the origin. //! @param origin The origing to seek relatively to. //! @return The new position in the file on success, an error code otherwise. - auto seek(size_t file_descriptor, kstd::offset offset, seek_origin origin) -> kstd::result<kstd::bytes>; + auto seek(std::size_t file_descriptor, kstd::offset offset, seek_origin origin) -> kstd::result<kstd::bytes>; //! Create a new directory at the specified path. //! diff --git a/kapi/kapi/filesystem/block_special_file.hpp b/kapi/kapi/filesystem/block_special_file.hpp index daf4a97b..79a52817 100644 --- a/kapi/kapi/filesystem/block_special_file.hpp +++ b/kapi/kapi/filesystem/block_special_file.hpp @@ -33,7 +33,7 @@ namespace kapi::filesystem //! @param block_index The number of the block to read from. //! @param buffer The buffer to read into. //! @return The number of bytes read on success, an error otherwise. - [[nodiscard]] auto virtual read_block(size_t block_index, std::span<std::byte> buffer) + [[nodiscard]] auto virtual read_block(std::size_t block_index, std::span<std::byte> buffer) -> kstd::result<kstd::bytes> = 0; //! Write data from a buffer into a block. diff --git a/kapi/kapi/memory/frame.hpp b/kapi/kapi/memory/frame.hpp index aafca5c7..bfb0d91a 100644 --- a/kapi/kapi/memory/frame.hpp +++ b/kapi/kapi/memory/frame.hpp @@ -21,7 +21,7 @@ namespace kapi::memory { frame() = default; - frame(std::size_t number) + explicit frame(std::size_t number) : chunk{number} {} diff --git a/kapi/kapi/memory/page.hpp b/kapi/kapi/memory/page.hpp index 2a609833..e1c7d528 100644 --- a/kapi/kapi/memory/page.hpp +++ b/kapi/kapi/memory/page.hpp @@ -22,7 +22,7 @@ namespace kapi::memory { page() = default; - page(std::size_t number) + explicit page(std::size_t number) : chunk{number} {} diff --git a/kapi/kapi/system.hpp b/kapi/kapi/system.hpp index f7dd4d7c..80233507 100644 --- a/kapi/kapi/system.hpp +++ b/kapi/kapi/system.hpp @@ -30,7 +30,7 @@ namespace kapi::system , location{location} {} - consteval panic_format_string(std::string_view const & format, + consteval panic_format_string(std::string_view format, std::source_location location = std::source_location::current()) : format{format} , location{location} |
