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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h
index d93f490..fe45506 100644
--- a/src/sys/include/sys/proc.h
+++ b/src/sys/include/sys/proc.h
@@ -136,6 +136,17 @@ int proc_add_range(struct proc *procp, vaddr_t va, paddr_t pa, size_t len);
int proc_kill(struct proc *procp, int status);
/*
+ * Spawn a process from a binary
+ *
+ * @path: Path to binary
+ * @envp: Environment block pointer
+ *
+ * Returns the PID of the new process on success,
+ * otherwise a less than zero value on error
+ */
+int proc_spawn(const char *path, struct penv_blk *envbp);
+
+/*
* Initialize machine dependent state of a process
*
* @procp: New process data is written here