Interface: task management.
More...
#include <config.h>
#include <mem.h>
Go to the source code of this file.
Interface: task management.
- Author
- Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Defines types and flags used in task management.
Definition in file tm.h.
§ DEFAULT_STACK_SIZE
#define DEFAULT_STACK_SIZE 512 |
that's enough.
Definition at line 81 of file tm.h.
Referenced by kmain().
§ PRIO_HIGHEST
The highest possible task priority.
Definition at line 55 of file tm.h.
§ PRIO_LOWEST
The lowest possible task priority.
Definition at line 51 of file tm.h.
§ PRIO_NORMAL
The priority of most tasks.
Definition at line 53 of file tm.h.
Referenced by kmain().
§ shutdown_requested
test to see if task has been asked to shutdown
Check task shutdown flag. If set, the task should shutdown as soon as possible. If clear, continue running.
Definition at line 134 of file tm.h.
§ T_DEAD
task states
- Todo:
- the following comments on the defined may cause problems in when used in macros/expressions, etc. FixEm?
dead and gone, stack freed
Definition at line 65 of file tm.h.
§ T_IDLE
idle task
Definition at line 77 of file tm.h.
§ T_KERNEL
#define T_KERNEL (1 << 0) |
task flags
kernel task
Definition at line 75 of file tm.h.
§ T_RUNNING
running
Definition at line 69 of file tm.h.
§ T_SHUTDOWN
#define T_SHUTDOWN (1 << 7) |
shutdown requested
Definition at line 78 of file tm.h.
§ T_SLEEPING
sleeping. wants to run.
Definition at line 68 of file tm.h.
§ T_USER
user task
Definition at line 76 of file tm.h.
§ T_WAITING
waiting for an event
Definition at line 67 of file tm.h.
§ T_ZOMBIE
terminated, cleanup pending
Definition at line 66 of file tm.h.
§ pchain_t
priority chain data type a shorthand
Definition at line 100 of file tm.h.
§ priority_t
task priority type
Definition at line 48 of file tm.h.
§ tdata_t
task data type
a shorthand
Definition at line 125 of file tm.h.
§ tflags_t
task flags type
Definition at line 46 of file tm.h.
§ tid_t
task id type
In effect, the kernel simply typecasts *tdata_t to tid_t.
Definition at line 143 of file tm.h.
§ tstate_t
task state type
Definition at line 45 of file tm.h.
§ wakeup_t
wakeup data area type
Definition at line 57 of file tm.h.
§ ctid