diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-19 23:26:20 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-19 23:26:20 -0400 |
commit | 69933fc75a701502f06fc30680fa6fa1f13b5ebb (patch) | |
tree | 767ec2d108df9ecba69aeacc1b37e644ed3d5485 /src/sys/include | |
parent | dafae63886c6f97e03d436084a4b757f3137767e (diff) |
kern/amd64: proc: Add proc_self()
Introduce a new proc_self() function to get the current running process
on the current CPU core.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/sys/proc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h index 109af4e..200d5ce 100644 --- a/src/sys/include/sys/proc.h +++ b/src/sys/include/sys/proc.h @@ -77,6 +77,12 @@ struct proc { int proc_init(struct proc *procp, int flags); /* + * Get the current running process on the system + * Returns NULL if none + */ +struct proc *proc_self(void); + +/* * Kill a process with a specific status code * * @procp: Process to kill |