Kernel: Update block_or_eintr API to return ErrorOr<>

This commit is contained in:
2024-01-05 12:13:11 +02:00
parent 40f55be587
commit 41ae05dd6e
3 changed files with 9 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ namespace Kernel
bool add_signal(int signal);
// blocks semaphore and returns either on unblock, eintr or spuriously
[[nodiscard]] bool block_or_eintr(Semaphore&);
BAN::ErrorOr<void> block_or_eintr(Semaphore&);
void set_return_rsp(uintptr_t& rsp) { m_return_rsp = &rsp; }
void set_return_rip(uintptr_t& rip) { m_return_rip = &rip; }