proc_p.h File Reference
Internal scheduler structures and definitions for processes. More...
#include <cfg/compiler.h>
#include <cpu/types.h>
#include <mware/list.h>
#include <config_kern.h>
#include <appconfig.h>
Go to the source code of this file.
Defines | |
| #define | SCHED_ENQUEUE(proc) ADDTAIL(&ProcReadyList, &(proc)->link) |
| Enqueue a task in the ready list. | |
Flags for Process.flags. | |
| #define | PF_FREESTACK BV(0) |
| Free the stack when process dies. | |
Functions | |
| void | proc_schedule (void) |
| Schedule to another process *without* adding the current to the ready list. | |
Variables | |
| REGISTER Process * | CurrentProcess |
| Track running processes. | |
| REGISTER List | ProcReadyList |
| Track ready processes. | |
Detailed Description
Internal scheduler structures and definitions for processes.
- Version:
- Id
- proc_p.h 930 2007-10-23 14:48:48Z batt
Definition in file proc_p.h.
Define Documentation
| #define SCHED_ENQUEUE | ( | proc | ) | ADDTAIL(&ProcReadyList, &(proc)->link) |
Function Documentation
| void proc_schedule | ( | void | ) |
Schedule to another process *without* adding the current to the ready list.
Schedule to another process *without* adding the current to the ready list.
Saving and restoring the context on the stack is done by a CPU-dependent support routine which must usually be written in assembly.
Variable Documentation
| REGISTER Process* CurrentProcess |
| REGISTER List ProcReadyList |
