summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-11 13:40:09 -0400
committerIan Moffett <ian@osmora.org>2025-10-11 13:40:09 -0400
commit73cd54a1f5fbdefbafff9227f5d00feb86b4199e (patch)
tree476024f30be7c401b06a3c825dfb7217f908ea5a /src/sys/include
parent15b856bec1cbe233bcdcdf2712c646c73d87f9f5 (diff)
kern: proc: Add process lookups by PID
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/sys/proc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h
index 48c784a..0cf105e 100644
--- a/src/sys/include/sys/proc.h
+++ b/src/sys/include/sys/proc.h
@@ -203,6 +203,15 @@ int md_set_ip(struct proc *procp, uintptr_t ip);
int proc_check_addr(struct proc *proc, uintptr_t addr, size_t len);
/*
+ * Lookup a process using its PID
+ *
+ * @pid: PID of process to lookup
+ *
+ * Returns NULL on failure
+ */
+struct proc *proc_lookup(pid_t pid);
+
+/*
* Put the current process into a halt loop
* until the next one runs.
*/