#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] |
Definition in file schedule.c.
|
Definition at line 36 of file schedule.c. Referenced by _KERN_initcontext. |
|
Referenced by KERN_create_prio, and KERN_schedinit. |
|
kernel delta queue.
Definition at line 43 of file schedule.c. Referenced by KERN_delta_handler, and KERN_schedinit. |
|
Definition at line 44 of file schedule.c. |
|
The process table.
Definition at line 40 of file schedule.c. |