#include <kernel.h>
#include <proc.h>
#include <vararg.h>
#include <mips.h>
#include <memory.h>
#include <string.h>
Go to the source code of this file.
Functions | |
local | newpid (void) |
void | userret (void) |
syscall | create (void *procaddr, ulong ssize, ushort priority, char *name, ulong nargs,...) |
Definition in file create.c.
Create a process to start running a procedure.
procaddr | procedure address | |
ssize | stack stack size in words | |
priority | process priority, must be > 0 | |
name | name of the process, used for debugging | |
nargs,number | of arguments that follow |
Definition at line 28 of file create.c.
References CONTEXT_WORDS, getmem(), getpid(), INITRET, MINSTK, pentry::name, newpid(), numproc, pentry::parent, PNMLEN, pentry::prio, proctab, PRSUSP, roundew, STACKMAGIC, pentry::state, pentry::stkbase, pentry::stklen, pentry::stkptr, strncpy(), SYSERR, va_arg, va_end, and va_start.
Referenced by main(), nulluser(), shell(), test_bigargs(), test_deltaQueue(), test_procQueue(), test_recursion(), test_schedule(), test_semaphore(), test_semaphore2(), test_semaphore3(), test_semaphore4(), and testItem().
local newpid | ( | void | ) |
void userret | ( | void | ) |