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

Include dependency graph for rtai_atomic.h:

Go to the source code of this file.

Data Structures

struct  __rtai_xchg_dummy

Defines

#define likely(x)   __builtin_expect(!!(x), 1)
#define unlikely(x)   __builtin_expect(!!(x), 0)
#define atomic_t   int
#define __rtai_xg(x)   ((struct __rtai_xchg_dummy *)(x))

Functions

static unsigned long atomic_xchg (volatile void *ptr, unsigned long x)
static unsigned long atomic_cmpxchg (volatile void *ptr, unsigned long o, unsigned long n)
static __inline__ int atomic_dec_and_test (atomic_t *v)
static __inline__ void atomic_inc (atomic_t *v)


Define Documentation

#define __rtai_xg (  )     ((struct __rtai_xchg_dummy *)(x))

Definition at line 50 of file rtai_atomic.h.

#define atomic_t   int

Definition at line 47 of file rtai_atomic.h.

#define likely (  )     __builtin_expect(!!(x), 1)

Definition at line 43 of file rtai_atomic.h.

#define unlikely (  )     __builtin_expect(!!(x), 0)

Definition at line 44 of file rtai_atomic.h.


Function Documentation

static unsigned long atomic_cmpxchg ( volatile void *  ptr,
unsigned long  o,
unsigned long  n 
) [inline, static]

Definition at line 61 of file rtai_atomic.h.

References __asm__().

Here is the call graph for this function:

static __inline__ int atomic_dec_and_test ( atomic_t v  )  [static]

Definition at line 71 of file rtai_atomic.h.

References __asm__().

Here is the call graph for this function:

static __inline__ void atomic_inc ( atomic_t v  )  [static]

Definition at line 78 of file rtai_atomic.h.

References __asm__().

Here is the call graph for this function:

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

Definition at line 52 of file rtai_atomic.h.

References __asm__().

Here is the call graph for this function:


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