summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2024-02-21 21:08:12 +0100
committerdzwdz2024-02-21 21:08:12 +0100
commit8adaf0da869a17ba37ab7d5cf4fddbf5d878978f (patch)
treef18336efbb97c7016a170722b84c6838f7cab8ba /src/kernel/proc.h
parent4b8f771d6ec926f95ec017c427348013d4c1872c (diff)
kernel: integrate the proc_ns_next fixes into proc_next
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 1 insertions, 2 deletions
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);