Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmpxchg.h File Reference
#include <linux/irqflags.h>
#include <asm-generic/cmpxchg.h>
#include <asm-generic/cmpxchg-local.h>

Go to the source code of this file.

Macros

#define xchg(ptr, x)   ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
 

Functions

void __bad_xchg (volatile void *ptr, int size)
 

Macro Definition Documentation

#define xchg (   ptr,
  x 
)    ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))

Definition at line 36 of file cmpxchg.h.

Function Documentation

void __bad_xchg ( volatile void ptr,
int  size 
)

Definition at line 732 of file traps.c.