summaryrefslogtreecommitdiff
path: root/src/sys/include/sys/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/sys/proc.h')
-rw-r--r--src/sys/include/sys/proc.h6
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