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

Go to the source code of this file.

Macros

#define NR_LOCKS   16
 

Functions

long long atomic64_read (const atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_read)
 
void atomic64_set (atomic64_t *v, long long i)
 
 EXPORT_SYMBOL (atomic64_set)
 
void atomic64_add (long long a, atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_add)
 
long long atomic64_add_return (long long a, atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_add_return)
 
void atomic64_sub (long long a, atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_sub)
 
long long atomic64_sub_return (long long a, atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_sub_return)
 
long long atomic64_dec_if_positive (atomic64_t *v)
 
 EXPORT_SYMBOL (atomic64_dec_if_positive)
 
long long atomic64_cmpxchg (atomic64_t *v, long long o, long long n)
 
 EXPORT_SYMBOL (atomic64_cmpxchg)
 
long long atomic64_xchg (atomic64_t *v, long long new)
 
 EXPORT_SYMBOL (atomic64_xchg)
 
int atomic64_add_unless (atomic64_t *v, long long a, long long u)
 
 EXPORT_SYMBOL (atomic64_add_unless)
 
 pure_initcall (init_atomic64_lock)
 

Macro Definition Documentation

#define NR_LOCKS   16

Definition at line 26 of file atomic64.c.

Function Documentation

void atomic64_add ( long long  a,
atomic64_t v 
)

Definition at line 69 of file atomic64.c.

long long atomic64_add_return ( long long  a,
atomic64_t v 
)

Definition at line 80 of file atomic64.c.

int atomic64_add_unless ( atomic64_t v,
long long  a,
long long  u 
)

Definition at line 161 of file atomic64.c.

long long atomic64_cmpxchg ( atomic64_t v,
long long  o,
long long  n 
)

Definition at line 132 of file atomic64.c.

long long atomic64_dec_if_positive ( atomic64_t v)

Definition at line 117 of file atomic64.c.

long long atomic64_read ( const atomic64_t v)

Definition at line 45 of file atomic64.c.

void atomic64_set ( atomic64_t v,
long long  i 
)

Definition at line 58 of file atomic64.c.

void atomic64_sub ( long long  a,
atomic64_t v 
)

Definition at line 93 of file atomic64.c.

long long atomic64_sub_return ( long long  a,
atomic64_t v 
)

Definition at line 104 of file atomic64.c.

long long atomic64_xchg ( atomic64_t v,
long long  new 
)

Definition at line 147 of file atomic64.c.

EXPORT_SYMBOL ( atomic64_read  )
EXPORT_SYMBOL ( atomic64_set  )
EXPORT_SYMBOL ( atomic64_add  )
EXPORT_SYMBOL ( atomic64_add_return  )
EXPORT_SYMBOL ( atomic64_sub  )
EXPORT_SYMBOL ( atomic64_sub_return  )
EXPORT_SYMBOL ( atomic64_dec_if_positive  )
EXPORT_SYMBOL ( atomic64_cmpxchg  )
EXPORT_SYMBOL ( atomic64_xchg  )
EXPORT_SYMBOL ( atomic64_add_unless  )
pure_initcall ( init_atomic64_lock  )

Variable Documentation

Definition at line 32 of file atomic64.c.

Definition at line 33 of file atomic64.c.