diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-11 15:41:46 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-11 15:42:10 +0100 |
| commit | aa4cdda82b25557ecaf2085929f50edf208c9e31 (patch) | |
| tree | 7976b93615da356e393bc1cf899a238631a67026 /src/kernel | |
| parent | 2b69661a0b8cecb1f80c6376e866862553105f4a (diff) | |
feat: KPC: Add new IPC error code.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel')
| -rw-r--r-- | src/kernel/KernelKit/KPC.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/KernelKit/KPC.h b/src/kernel/KernelKit/KPC.h index 17104067..4aa6f565 100644 --- a/src/kernel/KernelKit/KPC.h +++ b/src/kernel/KernelKit/KPC.h @@ -12,8 +12,10 @@ #define err_local_ok() \ (Kernel::UserProcessScheduler::The().TheCurrentProcess().GetLocalCode() == Kernel::kErrorSuccess) + #define err_local_fail() \ (Kernel::UserProcessScheduler::The().TheCurrentProcess().GetLocalCode() != Kernel::kErrorSuccess) + #define err_local_get() (Kernel::UserProcessScheduler::The().TheCurrentProcess().GetLocalCode()) #define err_global_ok() (Kernel::kErrorLocalNumber == Kernel::kErrorSuccess) @@ -65,6 +67,7 @@ inline constexpr KPCError kErrorOutOfBitMapMemory = 67; inline constexpr KPCError kErrorTimeout = 68; inline constexpr KPCError kErrorAccessDenied = 69; inline constexpr KPCError kErrorUnavailable = 70; +inline constexpr KPCError kErrorIPCTimeOut = 71; /// Generic errors. inline constexpr KPCError kErrorUnimplemented = -1; |
