base/include/asm-arm/rtai_atomic.h File Reference

Include dependency graph for rtai_atomic.h:

Go to the source code of this file.

Defines

#define atomic_inc(v)   (void) atomic_add_return(1, v)
#define atomic_dec_and_test(v)   (atomic_sub_return(1, v) == 0)

Functions

static unsigned long atomic_xchg (volatile void *ptr, unsigned long x)
static unsigned long atomic_cmpxchg (volatile void *ptr, unsigned long old, unsigned long new)
static int atomic_add_return (int i, atomic_t *v)
static int atomic_sub_return (int i, atomic_t *v)


Define Documentation

#define atomic_dec_and_test (  )     (atomic_sub_return(1, v) == 0)

Definition at line 166 of file rtai_atomic.h.

Referenced by rtai_critical_enter(), and rtf_destroy().

#define atomic_inc (  )     (void) atomic_add_return(1, v)

Definition at line 165 of file rtai_atomic.h.

Referenced by rt_Trigger(), rt_trigger(), rtai_critical_exit(), rtf_create(), and set_rtext().


Function Documentation

static int atomic_add_return ( int  i,
atomic_t v 
) [inline, static]

Definition at line 129 of file rtai_atomic.h.

References __asm__(), and atomic_t::counter.

Here is the call graph for this function:

static unsigned long atomic_cmpxchg ( volatile void *  ptr,
unsigned long  old,
unsigned long  new 
) [inline, static]

Definition at line 97 of file rtai_atomic.h.

References __asm__().

Here is the call graph for this function:

static int atomic_sub_return ( int  i,
atomic_t v 
) [inline, static]

Definition at line 147 of file rtai_atomic.h.

References __asm__(), and atomic_t::counter.

Here is the call graph for this function:

static unsigned long atomic_xchg ( volatile void *  ptr,
unsigned long  x 
) [inline, static]

Definition at line 86 of file rtai_atomic.h.


Generated on Tue Feb 2 17:46:39 2010 for RTAI API by  doxygen 1.4.7