armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
scheduler.h File Reference

Definition of scheduler structs and functions. More...

#include <stdint.h>
Include dependency graph for scheduler.h:
This graph shows which files directly or indirectly include this file:

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_structtask [NR_TASKS]
 
task_structcurrent
 
int nr_tasks
 

Detailed Description

Definition of scheduler structs and functions.