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

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

Include dependency graph for rtai_atomic.h:

Include dependency graph

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 __rtai_xg(x)   ((struct __rtai_xchg_dummy *)(x))

Functions

unsigned long atomic_xchg (volatile void *ptr, unsigned long x)
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.

#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

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.

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 Thu Nov 20 11:52:03 2008 for RTAI API by doxygen 1.3.8