gates.c File Reference

#include "gates.h"
#include "libgate.h"

Functions

t_classclass_new (int class)
void class_free (t_class *class)
t_gategate_new (pid_t pid, t_gate_infos *infos)
void gate_free (t_gate *gate)
int add_gate_to_class (t_class *cl, t_gate *gate)
int del_gate_from_class (t_class *cl, int gate)
int get_gate_from_class (t_class *cl, t_gate_infos *gate, int nb)
int add_process_to_gate_in_class (t_class *cl, int gate, pid_t pid)
int del_process_from_gate_in_class (t_class *cl, int gate, pid_t pid)

Function Documentation

int add_gate_to_class t_class cl,
t_gate gate
 

int add_process_to_gate_in_class t_class cl,
int  gate,
pid_t  pid
 

Adds the occurence of a process wanting to use a given gate.

Parameters:
cl The class we're in.
gate The concerned gate.
pid The pid of the process that wants to use the gate.
Returns:

void class_free t_class class  ) 
 

t_class* class_new int  class  ) 
 

int del_gate_from_class t_class cl,
int  gate
 

int del_process_from_gate_in_class t_class cl,
int  gate,
pid_t  pid
 

Deletes an occurence of a process in a gate.

Parameters:
cl The class we're in
gate The gate
pid The pid of the process that unuses the gate.
Returns:

void gate_free t_gate gate  ) 
 

t_gate* gate_new pid_t  pid,
t_gate_infos infos
 

int get_gate_from_class t_class cl,
t_gate_infos gate,
int  nb
 


Generated on Wed May 24 23:05:55 2006 for LSE/OS by  doxygen 1.4.6