summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-04-10 14:52:39 +0200
committerdzwdz2022-04-10 14:52:39 +0200
commit3c9ee975733680d816bb0e5d550f22aaa2f0a73f (patch)
tree0cf0272a2c809f31b09ecfa9b775124467516124 /src/kernel/proc.h
parent4f64ef0f835d44c9a3220c414a6f35d05cb47690 (diff)
kernel: process_find_multiple
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 5e328aa..2066b40 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -57,6 +57,8 @@ _Noreturn void process_switch(struct process *proc);
_Noreturn void process_switch_any(void); // switches to any running 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
void process_kill(struct process *proc, int ret);