#include <config/config_param.h>
#include <config/config_cparam.h>
#include <sys/queue.h>
#include <sys/ktypes.h>
#include <sys/stats.h>
#include <sys/kpthread.h>
Defines | |
#define | PROC_NEW 0 |
Process States. | |
Functions | |
void | xmk_enter_kernel (void) |
void | xmk_leave_kernel (void) |
void | process_block (queuep queue, unsigned int state) |
void | process_unblock (queuep queue) |
pid_t | proc_create (unsigned int priority) |
int | process_invalidate (process_struct *proc) |
int | sys_process_status (pid_t pid, p_stat *ps) |
pid_t | sys_get_currentPID (void) |
|
Process creation primitive.
|
|
Block the process.
|
|
Remove the Process with pid. This is an internal proc that is called by sys_kill() and also by the schedulers to remove "DEAD" processes
|
|
Unblock the first process in queue and place it onto the ready queue. Call the process_scheduler only if this is PRIO scheduling. This is because we do not want the current process to prematurely lose its time slice. Change the state of the process to PROC_READY
|
|
Return the PID of the currently running process context
|
|
Return the status of the process.
|
|
Lock kernel by turning off ALL system interrupts
|
|
Unlock kernel by turning on system timer interrupts
|