diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-05 19:17:40 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-05 19:17:40 -0400 |
commit | 25bac8d254d55b8f752f8e605cb707475281b6a1 (patch) | |
tree | 3bc595cce591d20649f436a9d8eaea558ba0d9c7 /src/sys/include | |
parent | f3563f62e0523c5dc9dcdf83e4ef3b6e4454f56f (diff) |
kern: proc: Add initial spawn function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/sys/proc.h | 11 |
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 |