diff options
author | Anton Kling <anton@kling.gg> | 2024-04-15 20:34:58 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-15 20:34:58 +0200 |
commit | 62ba2a9ab01e5f2a9b1cd325af8d3112702b7713 (patch) | |
tree | 0926fbbc9d8c0058ee0f37e4f8691a554ca647e3 /kernel/ipc.h | |
parent | 3acd8cf6c8e41c1e1228c60ac5c4ea0f69e7aff5 (diff) |
Bug fix and cleanup.
Diffstat (limited to 'kernel/ipc.h')
-rw-r--r-- | kernel/ipc.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/kernel/ipc.h b/kernel/ipc.h deleted file mode 100644 index d8db074..0000000 --- a/kernel/ipc.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <sched/scheduler.h> -#ifndef IPC_H -#define IPC_H -#include <stdbool.h> -#include <typedefs.h> - -#define IPC_BUFFER_SIZE 0x2000 -#define IPC_NUM_DATA 400 - -struct IpcMessage { - u8 is_used; - u32 sender_pid; - u32 size; - u8 buffer[IPC_BUFFER_SIZE]; -}; - -struct IpcMailbox { - u32 read_ptr; - u32 write_ptr; - struct IpcMessage data[IPC_NUM_DATA]; -}; - -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 |