Definition of scheduler structs and functions. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | cpu_context |
struct | task_struct |
Macros | |
#define | TASK_RUNNING 0 |
#define | NR_TASKS 64 |
#define | FIRST_TASK task[0] |
#define | LAST_TASK task[NR_TASKS-1] |
#define | THREAD_SIZE 4096 |
#define | INIT_TASK { /* cpu_context */ {0,0,0,0,0,0,0,0,0,0,0,0,0}, /* state etc */ 0,0,1,0 } |
Functions | |
void | ret_from_fork () |
void | cpu_switch_to (task_struct *prev, task_struct *next) |
void | preempt_disable () |
void | preempt_enable () |
void | schedule_tail () |
void | switch_to (task_struct *next) |
void | schedule () |
void | timer_tick () |
Variables | |
task_struct * | task [NR_TASKS] |
task_struct * | current |
int | nr_tasks |
Definition of scheduler structs and functions.