Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

tm.h File Reference

Interface: task management. More...

#include <config.h>
#include <mem.h>

Go to the source code of this file.

Data Structures

struct  _pchain_t
struct  _tdata_t

Defines

#define PRIO_LOWEST   1
 The lowest possible task priority.
#define PRIO_NORMAL   10
 The priority of most tasks.
#define PRIO_HIGHEST   20
 The highest possible task priority.
#define T_DEAD   0
 dead and gone, stack freed
#define T_ZOMBIE   1
 terminated, cleanup pending
#define T_WAITING   2
 waiting for an event
#define T_SLEEPING   3
 sleeping. wants to run.
#define T_RUNNING   4
 running
#define T_KERNEL   (1 << 0)
 kernel task
#define T_USER   (1 << 1)
 user task
#define T_IDLE   (1 << 2)
 idle task
#define T_SHUTDOWN   (1 << 7)
 shutdown requested
#define DEFAULT_STACK_SIZE   512
 that's enough.
#define shutdown_requested()   (0)

Typedefs

typedef volatile unsigned char tstate_t
 task state type
typedef volatile unsigned char tflags_t
 task flags type
typedef unsigned char priority_t
 task priority type
typedef unsigned long wakeup_t
 wakeup data area type
typedef _pchain_t pchain_t
typedef _tdata_t tdata_t
 task data type
typedef signed int tid_t
 task id type


Detailed Description

Interface: task management.

Author:
Markus L. Noga <markus@noga.de>
Defines types and flags used in task management.

Definition in file tm.h.


Define Documentation

#define DEFAULT_STACK_SIZE   512
 

that's enough.

Definition at line 81 of file tm.h.

Referenced by kmain().

#define PRIO_HIGHEST   20
 

The highest possible task priority.

Definition at line 55 of file tm.h.

#define PRIO_LOWEST   1
 

The lowest possible task priority.

Definition at line 51 of file tm.h.

#define PRIO_NORMAL   10
 

The priority of most tasks.

Definition at line 53 of file tm.h.

Referenced by kmain().

 
#define shutdown_requested  )     (0)
 

Definition at line 137 of file tm.h.

#define T_DEAD   0
 

dead and gone, stack freed

Definition at line 65 of file tm.h.

#define T_IDLE   (1 << 2)
 

idle task

Definition at line 77 of file tm.h.

#define T_KERNEL   (1 << 0)
 

kernel task

Definition at line 75 of file tm.h.

#define T_RUNNING   4
 

running

Definition at line 69 of file tm.h.

#define T_SHUTDOWN   (1 << 7)
 

shutdown requested

Definition at line 78 of file tm.h.

#define T_SLEEPING   3
 

sleeping. wants to run.

Definition at line 68 of file tm.h.

#define T_USER   (1 << 1)
 

user task

Definition at line 76 of file tm.h.

#define T_WAITING   2
 

waiting for an event

Definition at line 67 of file tm.h.

#define T_ZOMBIE   1
 

terminated, cleanup pending

Definition at line 66 of file tm.h.


Typedef Documentation

typedef struct _pchain_t pchain_t
 

priority chain data type a shorthand

Definition at line 100 of file tm.h.

typedef unsigned char priority_t
 

task priority type

Definition at line 48 of file tm.h.

typedef struct _tdata_t tdata_t
 

task data type

a shorthand

Definition at line 125 of file tm.h.

typedef volatile unsigned char tflags_t
 

task flags type

Definition at line 46 of file tm.h.

typedef signed int tid_t
 

task id type

In effect, the kernel simply typecasts *tdata_t to tid_t.

Definition at line 143 of file tm.h.

typedef volatile unsigned char tstate_t
 

task state type

Definition at line 45 of file tm.h.

typedef unsigned long wakeup_t
 

wakeup data area type

Definition at line 57 of file tm.h.

Referenced by wait_event().


Generated on Fri Feb 25 08:02:43 2005 for brickos by  doxygen 1.3.9.1