summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-04-12 21:04:18 +0200
committerdzwdz2022-04-12 21:04:18 +0200
commitea59ff29ab98d363b48bfb22be02a4823b765c32 (patch)
tree909f5f1a131892defcf9dd82cb4da3f2b7afe21c /src/kernel/proc.h
parent49d095e34b9d9a364437bb3b1b6b1e7b07328d38 (diff)
kernel/proc: implement `process_next` for simple process iteration
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index d754522..1d84b7f 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -64,6 +64,9 @@ _Noreturn void process_switch_any(void); // switches to any running process
/** If there are any processes waiting for IRQs, wait with them. Otherwise, shut down */
_Noreturn void process_idle(void);
+/** Used for iterating over all processes */
+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);