summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
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.
*/