Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

sbc/usr/realtime/include/asm-i386/rtai_atomic.h File Reference

#include <linux/bitops.h>
#include <asm/atomic.h>

Go to the source code of this file.

Classes

struct  __rtai_xchg_dummy

Defines

#define likely(x)   __builtin_expect(!!(x), 1)
#define unlikely(x)   __builtin_expect(!!(x), 0)
#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)


Define Documentation

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

Definition at line 55 of file rtai_atomic.h.

Referenced by atomic_cmpxchg(), and atomic_xchg().

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

Definition at line 47 of file rtai_atomic.h.

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

Definition at line 48 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 67 of file rtai_atomic.h.

References __rtai_xg.

Referenced by RTAI_PROTO().

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

Definition at line 57 of file rtai_atomic.h.

References __rtai_xg.


Generated on Fri Sep 1 14:25:56 2006 for Raptor by  doxygen 1.4.4