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

/projects/cubeos/src_current/kernel/schedule.c File Reference

#include <stddef.h>
#include <stdio.h>
#include <signal.h>
#include <cubeos.h>
#include <sys_var.h>
#include <context.h>
#include <schedule.h>
#include <kerror.h>
#include <malloc.h>
#include <cubereent.h>
#include <list.h>

Include dependency graph for schedule.c:

Go to the source code of this file.

Defines

#define MAGIC   0xbabababa;

Functions

int _LIBC_init_reent ()
void _KERN_taskend ()
 this ends a thread. More...

regptr _KERN_initcontext (regptr context, short sr, void *sp, void *function)
 initalizes a context. More...

int KERN_create_prio (void *function, int prio)
 create a new threas. More...

int KERN_create (void *function)
 starts a new thread. More...

void KERN_schedule (void)
 this is the scheduler. It is either called by the periodic timer interrupt or from a user thread. More...

int KERN_schedinit ()
 initalizes the scheduler. More...

int KERN_suspend (int i)
 suspend a thread. More...

int KERN_wakeup (int i)
 wakes up a thread. More...

int KERN_delta_handler ()
 this is the kernel delta list handler. It is called by the periodic timer interrupe. More...


Variables

process _KERN_ptable [MAX_PROCESSNUM]
 The process table. More...

list _KERN_delta
 kernel delta queue. More...

list _KERN_prio [MAX_PRIONUM+1]


Detailed Description

Definition in file schedule.c.


Define Documentation

#define MAGIC   0xbabababa;
 

Definition at line 36 of file schedule.c.

Referenced by _KERN_initcontext.


Function Documentation

int _LIBC_init_reent  
 

Referenced by KERN_create_prio, and KERN_schedinit.


Variable Documentation

list _KERN_delta
 

kernel delta queue.

Definition at line 43 of file schedule.c.

Referenced by KERN_delta_handler, and KERN_schedinit.

list _KERN_prio[MAX_PRIONUM+1]
 

Definition at line 44 of file schedule.c.

struct process _KERN_ptable[MAX_PROCESSNUM]
 

The process table.

Definition at line 40 of file schedule.c.


Generated on Thu Feb 20 15:38:54 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002