task.c File Reference

#include "routix/system.h"
#include "routix/task.h"
#include "routix/paging.h"
#include "routix/kalloc.h"
#include "error.h"
#include "routix/file.h"
#include "string.h"
#include "sys/list.h"

Go to the source code of this file.

Functions

Variables


Function Documentation

void despertar_task task_struct_t tarea  )  [inline]
 

Definition at line 147 of file task.c.

Referenced by actualizar_eventos(), cache_read(), despertar(), endrequest(), start_scheduler(), sys_exec(), sys_execve(), and sys_fork().

void dormir_task task_struct_t tarea  )  [inline]
 

Definition at line 128 of file task.c.

Referenced by cache_read(), sys_renice(), and sys_usleep().

task_struct_t* encontrar_proceso_por_pid pid_t  pid  ) 
 

Definition at line 298 of file task.c.

Referenced by sys_kill(), sys_proc_dump_v(), sys_renice(), and tarea_init().

pid_t get_new_pid void   )  [inline]
 

Definition at line 111 of file task.c.

Referenced by sys_exec(), sys_execve(), and sys_fork().

void inc_tareas_activas  ) 
 

Definition at line 123 of file task.c.

dword* inicializar_task dword stack,
word  cs,
word  ds,
dword  eip,
dword  esp,
dword  eflags
 

Definition at line 38 of file task.c.

Referenced by init_new_task().

void inicializarTss tss_t tss,
word  cs,
word  ds,
dword  eip,
dword  esp,
dword  eflags
 

Definition at line 19 of file task.c.

Referenced by start_scheduler().

task_struct_t* init_new_task word  cs,
word  ds,
dword  eip,
dword  esp,
dword  eflags,
char *  descripcion,
word  prioridad
 

Definition at line 186 of file task.c.

Referenced by start_scheduler(), sys_exec(), sys_execve(), and sys_fork().

int insertar_tarea task_struct_t nueva  ) 
 

Definition at line 267 of file task.c.

Referenced by init_new_task().

int remover_task task_struct_t tarea  ) 
 

Saca a un proceso de la lista de procesos del scheduler

Definition at line 325 of file task.c.

Referenced by sys_exec(), sys_execve(), and sys_waitpid().

void sleep_init  )  [inline]
 

Definition at line 164 of file task.c.

void tomar_nombre_tarea const char *  viejo,
char *  nuevo
 

Definition at line 313 of file task.c.

Referenced by sys_exec(), and sys_execve().

void wakeup_init  )  [inline]
 

Definition at line 175 of file task.c.

Referenced by sys_exit_notify().


Variable Documentation

volatile int tareas_activas = 0
 

Definition at line 121 of file task.c.

Referenced by despertar_task(), dormir_task(), inc_tareas_activas(), scheduler(), sleep_init(), and wakeup_init().

tss_t tss
 

Definition at line 17 of file task.c.

Referenced by inicializarTss(), init_MM_base(), and start_scheduler().


Generated on Sun May 30 18:38:37 2004 for Routix OS by doxygen 1.3.6