From 8adaf0da869a17ba37ab7d5cf4fddbf5d878978f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 21 Feb 2024 21:08:12 +0100 Subject: kernel: integrate the proc_ns_next fixes into proc_next --- src/kernel/proc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 2261f85..24206fb 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -128,8 +128,7 @@ void proc_intr(Proc *p, const char *buf, size_t len); /** Switches execution to any running process. */ _Noreturn void proc_switch_any(void); -/** Used for iterating over all processes */ -Proc *proc_next(Proc *p, Proc *root); +Proc *proc_next(Proc *root, Proc *p); hid_t proc_find_free_handle(Proc *proc, hid_t start_at); Handle *proc_handle_get(Proc *, hid_t); -- cgit v1.2.3