Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

process Struct Reference
[KERNEL component]

process/thread table entry. More...

#include <schedule.h>

Collaboration diagram for process:

[legend]
List of all members.

Public Attributes

reglist regs
 This is the current state of the registers that is not kept on the stack. More...

void * stack
 This is the initial stack pointer, it is used to free() the stack after the process exits. More...

char state
 This keeps the STATE_xxx-value. More...

char irq
 irq level for the thread. currently not used. More...

int signal
 incomming signal flags. More...

int mask
 masked signals. Only signals with ther mask bit set can be received. More...

int ppid
 parent thread id, just for reference, SIGCHILD is not implemented. More...

_reent reent
 reentrance structure of newlibc for this thread. More...

int message
 incomming message field. 0 means no message pending. More...

sem_tsem
 pointer to the semaphore the thread is currently waiting for. More...

unsigned int time_delta
int prio
 thread priority field. More...

entry me
 This field is used for all list-like things like the delta list and semaphores. More...

int pid
 to find the process id from a pointer to the process table entry. More...

int next

Detailed Description

process/thread table entry.

The process table entry contains all information the scheduler needs to schedule and all information, the context switch needs to switch. And some more...

Definition at line 43 of file schedule.h.


Member Data Documentation

char process::irq
 

irq level for the thread. currently not used.

Definition at line 47 of file schedule.h.

Referenced by KERN_create_prio.

int process::mask
 

masked signals. Only signals with ther mask bit set can be received.

Definition at line 49 of file schedule.h.

entry process::me
 

This field is used for all list-like things like the delta list and semaphores.

Definition at line 57 of file schedule.h.

Referenced by KERN_psleep, KERN_schedinit, and KERN_suspend.

int process::message
 

incomming message field. 0 means no message pending.

Definition at line 52 of file schedule.h.

int process::next
 

Definition at line 59 of file schedule.h.

Referenced by KERN_create_prio, and KERN_psleep.

int process::pid
 

to find the process id from a pointer to the process table entry.

Definition at line 58 of file schedule.h.

Referenced by KERN_schedinit.

int process::ppid
 

parent thread id, just for reference, SIGCHILD is not implemented.

Definition at line 50 of file schedule.h.

Referenced by KERN_create_prio, and KERN_schedinit.

int process::prio
 

thread priority field.

Definition at line 56 of file schedule.h.

Referenced by KERN_create_prio, and KERN_schedinit.

struct _reent process::reent
 

reentrance structure of newlibc for this thread.

Definition at line 51 of file schedule.h.

Referenced by KERN_schedinit, and KERN_schedule.

reglist process::regs
 

This is the current state of the registers that is not kept on the stack.

Definition at line 44 of file schedule.h.

Referenced by KERN_create_prio, and KERN_schedinit.

struct sem_t* process::sem
 

pointer to the semaphore the thread is currently waiting for.

Definition at line 53 of file schedule.h.

int process::signal
 

incomming signal flags.

Definition at line 48 of file schedule.h.

Referenced by _KERN_taskend, KERN_create_prio, KERN_schedinit, and KERN_schedule.

void* process::stack
 

This is the initial stack pointer, it is used to free() the stack after the process exits.

Definition at line 45 of file schedule.h.

Referenced by KERN_create_prio, and KERN_schedinit.

char process::state
 

This keeps the STATE_xxx-value.

Definition at line 46 of file schedule.h.

Referenced by KERN_create_prio, KERN_schedinit, KERN_schedule, KERN_suspend, and KERN_wakeup.

unsigned int process::time_delta
 

delta time before this thread has to be woken up. This is a delta and only makes sense in context of the delta queue

Definition at line 54 of file schedule.h.

Referenced by KERN_create_prio, and KERN_psleep.


The documentation for this struct was generated from the following file:
Generated on Thu Feb 20 15:39:01 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002