From d996f88bfda890df5d2b76e7c06cae329e04ab00 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 1 May 2022 20:09:52 +0200 Subject: kernel/proc: make handles separate refcounted objects --- src/kernel/proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 4fabe0e..7e3cdd3 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -55,7 +55,7 @@ struct process { struct vfs_mount *mount; - struct handle handles[HANDLE_MAX]; + struct handle *handles[HANDLE_MAX]; }; extern struct process *process_first; @@ -75,7 +75,7 @@ struct process *process_next(struct process *); struct process *process_find(enum process_state); size_t process_find_multiple(enum process_state, struct process **buf, size_t max); -handle_t process_find_handle(struct process *proc); // finds the first free handle +handle_t process_find_handle(struct process *proc, handle_t start_at); // finds the first free handle void process_transition(struct process *, enum process_state); -- cgit v1.2.3