Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
percpu-defs.h File Reference

Go to the source code of this file.

Macros

#define __PCPU_ATTRS(sec)
 
#define __PCPU_DUMMY_ATTRS   __attribute__((section(".discard"), unused))
 
#define __verify_pcpu_ptr(ptr)
 
#define DECLARE_PER_CPU_SECTION(type, name, sec)   extern __PCPU_ATTRS(sec) __typeof__(type) name
 
#define DEFINE_PER_CPU_SECTION(type, name, sec)
 
#define DECLARE_PER_CPU(type, name)   DECLARE_PER_CPU_SECTION(type, name, "")
 
#define DEFINE_PER_CPU(type, name)   DEFINE_PER_CPU_SECTION(type, name, "")
 
#define DECLARE_PER_CPU_FIRST(type, name)   DECLARE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION)
 
#define DEFINE_PER_CPU_FIRST(type, name)   DEFINE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION)
 
#define DECLARE_PER_CPU_SHARED_ALIGNED(type, name)
 
#define DEFINE_PER_CPU_SHARED_ALIGNED(type, name)
 
#define DECLARE_PER_CPU_ALIGNED(type, name)
 
#define DEFINE_PER_CPU_ALIGNED(type, name)
 
#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name)
 
#define DEFINE_PER_CPU_PAGE_ALIGNED(type, name)
 
#define DECLARE_PER_CPU_READ_MOSTLY(type, name)   DECLARE_PER_CPU_SECTION(type, name, "..readmostly")
 
#define DEFINE_PER_CPU_READ_MOSTLY(type, name)   DEFINE_PER_CPU_SECTION(type, name, "..readmostly")
 
#define EXPORT_PER_CPU_SYMBOL(var)   EXPORT_SYMBOL(var)
 
#define EXPORT_PER_CPU_SYMBOL_GPL(var)   EXPORT_SYMBOL_GPL(var)
 

Macro Definition Documentation

#define __PCPU_ATTRS (   sec)
Value:

Definition at line 14 of file percpu-defs.h.

#define __PCPU_DUMMY_ATTRS   __attribute__((section(".discard"), unused))

Definition at line 18 of file percpu-defs.h.

#define __verify_pcpu_ptr (   ptr)
Value:
do { \
const void __percpu *__vpp_verify = (typeof(ptr))NULL; \
(void)__vpp_verify; \
} while (0)

Definition at line 26 of file percpu-defs.h.

#define DECLARE_PER_CPU (   type,
  name 
)    DECLARE_PER_CPU_SECTION(type, name, "")

Definition at line 87 of file percpu-defs.h.

#define DECLARE_PER_CPU_ALIGNED (   type,
  name 
)
#define DECLARE_PER_CPU_FIRST (   type,
  name 
)    DECLARE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION)

Definition at line 97 of file percpu-defs.h.

#define DECLARE_PER_CPU_PAGE_ALIGNED (   type,
  name 
)
Value:
DECLARE_PER_CPU_SECTION(type, name, "..page_aligned") \
__aligned(PAGE_SIZE)

Definition at line 133 of file percpu-defs.h.

#define DECLARE_PER_CPU_READ_MOSTLY (   type,
  name 
)    DECLARE_PER_CPU_SECTION(type, name, "..readmostly")

Definition at line 144 of file percpu-defs.h.

#define DECLARE_PER_CPU_SECTION (   type,
  name,
  sec 
)    extern __PCPU_ATTRS(sec) __typeof__(type) name

Definition at line 75 of file percpu-defs.h.

#define DECLARE_PER_CPU_SHARED_ALIGNED (   type,
  name 
)
Value:

Definition at line 114 of file percpu-defs.h.

#define DEFINE_PER_CPU (   type,
  name 
)    DEFINE_PER_CPU_SECTION(type, name, "")

Definition at line 90 of file percpu-defs.h.

#define DEFINE_PER_CPU_ALIGNED (   type,
  name 
)
#define DEFINE_PER_CPU_FIRST (   type,
  name 
)    DEFINE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION)

Definition at line 100 of file percpu-defs.h.

#define DEFINE_PER_CPU_PAGE_ALIGNED (   type,
  name 
)
Value:
DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \
__aligned(PAGE_SIZE)

Definition at line 137 of file percpu-defs.h.

#define DEFINE_PER_CPU_READ_MOSTLY (   type,
  name 
)    DEFINE_PER_CPU_SECTION(type, name, "..readmostly")

Definition at line 147 of file percpu-defs.h.

#define DEFINE_PER_CPU_SECTION (   type,
  name,
  sec 
)
Value:

Definition at line 78 of file percpu-defs.h.

#define DEFINE_PER_CPU_SHARED_ALIGNED (   type,
  name 
)
Value:

Definition at line 118 of file percpu-defs.h.

#define EXPORT_PER_CPU_SYMBOL (   var)    EXPORT_SYMBOL(var)

Definition at line 156 of file percpu-defs.h.

#define EXPORT_PER_CPU_SYMBOL_GPL (   var)    EXPORT_SYMBOL_GPL(var)

Definition at line 157 of file percpu-defs.h.