From 5f6767972f1550c54dd6f28267dc3d882f67d7ed Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 1 May 2022 20:21:55 +0200 Subject: kernel/proc: `process_handle_get` for safely accepting handle ids --- src/kernel/proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 7e3cdd3..80cb4a3 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -76,6 +76,7 @@ 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, handle_t start_at); // finds the first free handle +struct handle *process_handle_get(struct process *, handle_t, enum handle_type); void process_transition(struct process *, enum process_state); -- cgit v1.2.3