Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
atomic32.c File Reference
#include <linux/atomic.h>
#include <linux/spinlock.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define ATOMIC_HASH_SIZE   1
 
#define ATOMIC_HASH(a)   (&dummy)
 

Functions

int __atomic_add_return (int i, atomic_t *v)
 
 EXPORT_SYMBOL (__atomic_add_return)
 
int atomic_cmpxchg (atomic_t *v, int old, int new)
 
 EXPORT_SYMBOL (atomic_cmpxchg)
 
int __atomic_add_unless (atomic_t *v, int a, int u)
 
 EXPORT_SYMBOL (__atomic_add_unless)
 
void atomic_set (atomic_t *v, int i)
 
 EXPORT_SYMBOL (atomic_set)
 
unsigned long ___set_bit (unsigned long *addr, unsigned long mask)
 
 EXPORT_SYMBOL (___set_bit)
 
unsigned long ___clear_bit (unsigned long *addr, unsigned long mask)
 
 EXPORT_SYMBOL (___clear_bit)
 
unsigned long ___change_bit (unsigned long *addr, unsigned long mask)
 
 EXPORT_SYMBOL (___change_bit)
 
unsigned long __cmpxchg_u32 (volatile u32 *ptr, u32 old, u32 new)
 
 EXPORT_SYMBOL (__cmpxchg_u32)
 

Macro Definition Documentation

#define ATOMIC_HASH (   a)    (&dummy)

Definition at line 26 of file atomic32.c.

#define ATOMIC_HASH_SIZE   1

Definition at line 25 of file atomic32.c.

Function Documentation

unsigned long ___change_bit ( unsigned long addr,
unsigned long  mask 
)

Definition at line 109 of file atomic32.c.

unsigned long ___clear_bit ( unsigned long addr,
unsigned long  mask 
)

Definition at line 96 of file atomic32.c.

unsigned long ___set_bit ( unsigned long addr,
unsigned long  mask 
)

Definition at line 83 of file atomic32.c.

int __atomic_add_return ( int  i,
atomic_t v 
)

Definition at line 30 of file atomic32.c.

int __atomic_add_unless ( atomic_t v,
int  a,
int  u 
)

Definition at line 58 of file atomic32.c.

unsigned long __cmpxchg_u32 ( volatile u32 ptr,
u32  old,
u32  new 
)

Definition at line 122 of file atomic32.c.

int atomic_cmpxchg ( atomic_t v,
int  old,
int  new 
)

Definition at line 43 of file atomic32.c.

void atomic_set ( atomic_t v,
int  i 
)

Definition at line 73 of file atomic32.c.

EXPORT_SYMBOL ( __atomic_add_return  )
EXPORT_SYMBOL ( atomic_cmpxchg  )
EXPORT_SYMBOL ( __atomic_add_unless  )
EXPORT_SYMBOL ( atomic_set  )
EXPORT_SYMBOL ( ___set_bit  )
EXPORT_SYMBOL ( ___clear_bit  )
EXPORT_SYMBOL ( ___change_bit  )
EXPORT_SYMBOL ( __cmpxchg_u32  )