diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-08-17 18:13:22 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-08-17 18:13:22 +0200 |
| commit | ca0c35ad7bb6e178af18f1600a7bc0da944fafb0 (patch) | |
| tree | d5a0d312f8bc24b10fd6860a2c416a49b04d48d4 /kapi | |
| parent | 853eb183d46c1410507c53d19b00c52162592cfc (diff) | |
| download | kernel-ca0c35ad7bb6e178af18f1600a7bc0da944fafb0.tar.xz kernel-ca0c35ad7bb6e178af18f1600a7bc0da944fafb0.zip | |
kapi: de-const read on block and char devices
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/filesystem/block_special_file.hpp | 2 | ||||
| -rw-r--r-- | kapi/kapi/filesystem/character_special_file.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kapi/kapi/filesystem/block_special_file.hpp b/kapi/kapi/filesystem/block_special_file.hpp index ada1edf2..7b06f058 100644 --- a/kapi/kapi/filesystem/block_special_file.hpp +++ b/kapi/kapi/filesystem/block_special_file.hpp @@ -30,7 +30,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) const + [[nodiscard]] auto virtual read_block(size_t block_index, std::span<std::byte> buffer) -> kstd::result<kstd::units::bytes> = 0; //! Write data from a buffer into a block. diff --git a/kapi/kapi/filesystem/character_special_file.hpp b/kapi/kapi/filesystem/character_special_file.hpp index 28bba0b9..a2608489 100644 --- a/kapi/kapi/filesystem/character_special_file.hpp +++ b/kapi/kapi/filesystem/character_special_file.hpp @@ -25,7 +25,7 @@ namespace kapi::filesystem //! //! @param buffer The buffer to read into. //! @return The number of bytes read on success, an error otherwise. - [[nodiscard]] auto virtual read(std::span<std::byte> buffer) const -> kstd::result<kstd::units::bytes> = 0; + [[nodiscard]] auto virtual read(std::span<std::byte> buffer) -> kstd::result<kstd::units::bytes> = 0; //! Write data from a buffer into the stream. //! |
