Embedded Xinu Network Playground COSC3300Fall2012
|
Functions | |
syscall | create (void *, ulong, ulong, char *, ulong,...) |
syscall | ready (long, bool) |
syscall | resched (void) |
syscall | sleep (int n) |
syscall create | ( | void * | procaddr, |
ulong | ssize, | ||
ulong | priority, | ||
char * | name, | ||
ulong | nargs, | ||
... | |||
) |
Create a process to start running a procedure.
procaddr | procedure address |
ssize | stack stack size in words |
priority | process priority |
name | name of the process, used for debugging |
nargs | number of arguments that follow |
syscall ready | ( | long | pid, |
bool | resch | ||
) |
Make a process eligible for CPU service.
pid | process id of the process to move to the ready state |
resch | if TRUE, reschedule will be called |
syscall resched | ( | void | ) |
Reschedule processor to next ready process.
Upon entry, currpid gives current process id. Proctab[currpid].pstate gives correct NEXT state for current process if other than PRREADY.
syscall sleep | ( | int | ms | ) |
Delay the calling process n milliseconds.
ms | number of milliseconds to sleep |