diff options
author | Anton Kling <anton@kling.gg> | 2024-02-25 01:45:19 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-25 01:45:19 +0100 |
commit | 4536dc81b4be9a62328826455664cd6d696df8fb (patch) | |
tree | e67f0b1e76c7d4c8a1366f645550d12069bd0cb0 /kernel/ipc.h | |
parent | a18da25e7355979d0f26cfd39dc0032172e8b135 (diff) |
IPC: Inform the scheduler the process is waiting for a IPC message
Diffstat (limited to 'kernel/ipc.h')
-rw-r--r-- | kernel/ipc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/ipc.h b/kernel/ipc.h index ae67f71..d8db074 100644 --- a/kernel/ipc.h +++ b/kernel/ipc.h @@ -1,3 +1,4 @@ +#include <sched/scheduler.h> #ifndef IPC_H #define IPC_H #include <stdbool.h> @@ -23,4 +24,5 @@ bool ipc_register_endpoint(u32 endpoint); int ipc_write_to_process(int pid, u8 *buffer, u32 length); int ipc_write(int ipc_id, u8 *buffer, u32 length); int ipc_read(u8 *buffer, u32 length, u32 *sender_pid); +int ipc_has_data(process_t *p); #endif |