Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
percpu_counter.c File Reference
#include <linux/percpu_counter.h>
#include <linux/notifier.h>
#include <linux/mutex.h>
#include <linux/init.h>
#include <linux/cpu.h>
#include <linux/module.h>
#include <linux/debugobjects.h>

Go to the source code of this file.


void percpu_counter_set (struct percpu_counter *fbc, s64 amount)
 EXPORT_SYMBOL (percpu_counter_set)
void __percpu_counter_add (struct percpu_counter *fbc, s64 amount, s32 batch)
 EXPORT_SYMBOL (__percpu_counter_add)
s64 __percpu_counter_sum (struct percpu_counter *fbc)
 EXPORT_SYMBOL (__percpu_counter_sum)
int __percpu_counter_init (struct percpu_counter *fbc, s64 amount, struct lock_class_key *key)
 EXPORT_SYMBOL (__percpu_counter_init)
void percpu_counter_destroy (struct percpu_counter *fbc)
 EXPORT_SYMBOL (percpu_counter_destroy)
 EXPORT_SYMBOL (percpu_counter_batch)
int percpu_counter_compare (struct percpu_counter *fbc, s64 rhs)
 EXPORT_SYMBOL (percpu_counter_compare)
 module_init (percpu_counter_startup)


int percpu_counter_batch __read_mostly = 32

Function Documentation

void __percpu_counter_add ( struct percpu_counter fbc,
s64  amount,
s32  batch 

Definition at line 74 of file percpu_counter.c.

int __percpu_counter_init ( struct percpu_counter fbc,
s64  amount,
struct lock_class_key key 

Definition at line 112 of file percpu_counter.c.

s64 __percpu_counter_sum ( struct percpu_counter fbc)

Definition at line 96 of file percpu_counter.c.

EXPORT_SYMBOL ( percpu_counter_set  )
EXPORT_SYMBOL ( __percpu_counter_add  )
EXPORT_SYMBOL ( __percpu_counter_sum  )
EXPORT_SYMBOL ( __percpu_counter_init  )
EXPORT_SYMBOL ( percpu_counter_destroy  )
EXPORT_SYMBOL ( percpu_counter_batch  )
EXPORT_SYMBOL ( percpu_counter_compare  )
module_init ( percpu_counter_startup  )
int percpu_counter_compare ( struct percpu_counter fbc,
s64  rhs 

Definition at line 193 of file percpu_counter.c.

void percpu_counter_destroy ( struct percpu_counter fbc)

Definition at line 134 of file percpu_counter.c.

void percpu_counter_set ( struct percpu_counter fbc,
s64  amount 

Definition at line 60 of file percpu_counter.c.

Variable Documentation

int percpu_counter_batch __read_mostly = 32

Definition at line 151 of file percpu_counter.c.