diff options
author | Marvin Borner | 2021-01-09 23:31:28 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-09 23:33:34 +0100 |
commit | ff9c7766edded74f4d522484c828b1bdc7dfa96d (patch) | |
tree | fc076342222b6eb0c200a9bbb028c7765ed758b2 /kernel/inc | |
parent | 836294b9232c7d63d26db4f87c32cf1420cd856d (diff) |
Let's make a procfs for IPC instead
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/event.h | 19 | ||||
-rw-r--r-- | kernel/inc/proc.h | 10 |
2 files changed, 0 insertions, 29 deletions
diff --git a/kernel/inc/event.h b/kernel/inc/event.h deleted file mode 100644 index 59a0df1..0000000 --- a/kernel/inc/event.h +++ /dev/null @@ -1,19 +0,0 @@ -// MIT License, Copyright (c) 2020 Marvin Borner - -#ifndef EVENT_H -#define EVENT_H - -#include <def.h> -#include <proc.h> -#include <sys.h> - -struct event_descriptor { - u32 id; - struct proc *proc; -}; - -u32 event_register(u32 id, struct proc *proc); -void event_unregister(u32 id, struct proc *proc); -u32 event_trigger(u32 id, void *data); - -#endif diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h index 93d8d48..c8fb3e2 100644 --- a/kernel/inc/proc.h +++ b/kernel/inc/proc.h @@ -4,7 +4,6 @@ #define PROC_H #include <def.h> -#include <event.h> #include <interrupts.h> #include <list.h> #include <sys.h> @@ -25,13 +24,6 @@ struct proc { struct regs regs; struct regs regs_backup; enum proc_state state; - struct list *messages; -}; - -struct proc_message { - struct proc *src; - struct proc *dest; - struct message *msg; }; struct proc *kernel_proc; @@ -40,8 +32,6 @@ void scheduler(struct regs *regs); void proc_init(void); void proc_print(void); struct proc *proc_current(void); -void proc_send(struct proc *src, struct proc *dest, u32 type, void *data); -u32 proc_receive(struct proc *proc, struct message *buf); struct proc *proc_from_pid(u32 pid); void proc_exit(struct proc *proc, int status); void proc_yield(struct regs *r); |