atomic.h File Reference

#include <routix/system.h>

Go to the source code of this file.

Defines

Typedefs

Functions


Define Documentation

#define FINISH_ATOMIC_OPERATION   sti()
 

Definition at line 22 of file atomic.h.

Referenced by cache_read(), insert_timer(), remove_timer(), and timer_dump().

#define START_ATOMIC_OPERATION   cli()
 

Definition at line 21 of file atomic.h.

Referenced by cache_read(), insert_timer(), remove_timer(), and timer_dump().


Typedef Documentation

typedef volatile int spinlock_t
 

Definition at line 5 of file atomic.h.

Referenced by spin_lock(), spin_unlock(), sys_print(), and TestAndSet().


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  ) 
 

Definition at line 77 of file atomic.c.

void spin_unlock spinlock_t  ) 
 

Definition at line 94 of file atomic.c.

int TestAndSet spinlock_t  )  [inline]
 

Definition at line 50 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