Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
percpu.h File Reference
#include <linux/compiler.h>
#include <linux/threads.h>
#include <linux/percpu-defs.h>

Go to the source code of this file.

Macros

#define VERIFY_PERCPU_PTR(__p)
 
#define per_cpu(var, cpu)   (*((void)(cpu), VERIFY_PERCPU_PTR(&(var))))
 
#define __get_cpu_var(var)   (*VERIFY_PERCPU_PTR(&(var)))
 
#define __raw_get_cpu_var(var)   (*VERIFY_PERCPU_PTR(&(var)))
 
#define this_cpu_ptr(ptr)   per_cpu_ptr(ptr, 0)
 
#define __this_cpu_ptr(ptr)   this_cpu_ptr(ptr)
 
#define PER_CPU_BASE_SECTION   ".data"
 
#define PER_CPU_SHARED_ALIGNED_SECTION   ""
 
#define PER_CPU_ALIGNED_SECTION   "..shared_aligned"
 
#define PER_CPU_FIRST_SECTION   ""
 
#define PER_CPU_ATTRIBUTES
 
#define PER_CPU_DEF_ATTRIBUTES
 

Macro Definition Documentation

#define __get_cpu_var (   var)    (*VERIFY_PERCPU_PTR(&(var)))

Definition at line 83 of file percpu.h.

#define __raw_get_cpu_var (   var)    (*VERIFY_PERCPU_PTR(&(var)))

Definition at line 84 of file percpu.h.

#define __this_cpu_ptr (   ptr)    this_cpu_ptr(ptr)

Definition at line 86 of file percpu.h.

#define per_cpu (   var,
  cpu 
)    (*((void)(cpu), VERIFY_PERCPU_PTR(&(var))))

Definition at line 82 of file percpu.h.

#define PER_CPU_ALIGNED_SECTION   "..shared_aligned"

Definition at line 112 of file percpu.h.

#define PER_CPU_ATTRIBUTES

Definition at line 118 of file percpu.h.

#define PER_CPU_BASE_SECTION   ".data"

Definition at line 94 of file percpu.h.

#define PER_CPU_DEF_ATTRIBUTES

Definition at line 122 of file percpu.h.

#define PER_CPU_FIRST_SECTION   ""

Definition at line 113 of file percpu.h.

#define PER_CPU_SHARED_ALIGNED_SECTION   ""

Definition at line 111 of file percpu.h.

#define this_cpu_ptr (   ptr)    per_cpu_ptr(ptr, 0)

Definition at line 85 of file percpu.h.

#define VERIFY_PERCPU_PTR (   __p)
Value:
({ \
__verify_pcpu_ptr((__p)); \
(typeof(*(__p)) __kernel __force *)(__p); \
})

Definition at line 77 of file percpu.h.