atomic.c File Reference

#include "routix/system.h"
#include "routix/atomic.h"
#include "routix/debug.h"

Go to the source code of this file.

Functions

Variables


Function Documentation

int atomic_add (  int *  p,
int  x
)  [inline]
 

Definition at line 33 of file atomic.c.

int atomic_asign (  int *  p,
int  x
)  [inline]
 

Definition at line 25 of file atomic.c.

int atomic_dec (  int *  p  )  [inline]
 

Definition at line 17 of file atomic.c.

int atomic_inc (  int *  p  )  [inline]
 

Definition at line 9 of file atomic.c.

int atomic_sub (  int *  p,
int  x
)  [inline]
 

Definition at line 41 of file atomic.c.

void spin_lock (  spinlock_t *  valor  ) 
 

Definition at line 77 of file atomic.c.

void spin_unlock (  spinlock_t *  valor  ) 
 

Definition at line 94 of file atomic.c.

int TestAndSet (  spinlock_t *  candado  )  [inline]
 

Definition at line 50 of file atomic.c.

Referenced by spin_lock(), and spin_unlock().


Variable Documentation

spinlock_t kernel_lock = 0
 

Definition at line 73 of file atomic.c.

Referenced by spin_lock(), and spin_unlock().


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