summaryrefslogtreecommitdiff
path: root/Kernel/Devices/AsyncDeviceRequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices/AsyncDeviceRequest.h')
-rw-r--r--Kernel/Devices/AsyncDeviceRequest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/AsyncDeviceRequest.h b/Kernel/Devices/AsyncDeviceRequest.h
index ab8ed3c626..b5c0035627 100644
--- a/Kernel/Devices/AsyncDeviceRequest.h
+++ b/Kernel/Devices/AsyncDeviceRequest.h
@@ -90,7 +90,7 @@ public:
}
template<size_t BUFFER_BYTES, typename... Args>
- [[nodiscard]] bool write_to_buffer_buffered(UserOrKernelBuffer& buffer, Args... args)
+ [[nodiscard]] KResultOr<size_t> write_to_buffer_buffered(UserOrKernelBuffer& buffer, Args... args)
{
if (in_target_context(buffer))
return buffer.write_buffered<BUFFER_BYTES>(forward<Args>(args)...);
@@ -108,7 +108,7 @@ public:
}
template<size_t BUFFER_BYTES, typename... Args>
- [[nodiscard]] bool read_from_buffer_buffered(const UserOrKernelBuffer& buffer, Args... args)
+ [[nodiscard]] KResultOr<size_t> read_from_buffer_buffered(const UserOrKernelBuffer& buffer, Args... args)
{
if (in_target_context(buffer))
return buffer.read_buffered<BUFFER_BYTES>(forward<Args>(args)...);