Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
setup_percpu.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/percpu.h>
#include <linux/kexec.h>
#include <linux/crash_dump.h>
#include <linux/smp.h>
#include <linux/topology.h>
#include <linux/pfn.h>
#include <asm/sections.h>
#include <asm/processor.h>
#include <asm/setup.h>
#include <asm/mpspec.h>
#include <asm/apicdef.h>
#include <asm/highmem.h>
#include <asm/proto.h>
#include <asm/cpumask.h>
#include <asm/cpu.h>
#include <asm/stackprotector.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define BOOT_PERCPU_OFFSET   0
 
#define PERCPU_FIRST_CHUNK_RESERVE   0
 

Functions

 DEFINE_PER_CPU_READ_MOSTLY (int, cpu_number)
 
 EXPORT_PER_CPU_SYMBOL (cpu_number)
 
 DEFINE_PER_CPU (unsigned long, this_cpu_off)
 
 EXPORT_PER_CPU_SYMBOL (this_cpu_off)
 
 EXPORT_SYMBOL (__per_cpu_offset)
 
void __init setup_per_cpu_areas (void)
 

Variables

unsigned long __per_cpu_offset[NR_CPUS__read_mostly
 

Macro Definition Documentation

#define BOOT_PERCPU_OFFSET   0

Definition at line 30 of file setup_percpu.c.

#define PERCPU_FIRST_CHUNK_RESERVE   0

Definition at line 51 of file setup_percpu.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 1 of file setup_percpu.c.

Function Documentation

DEFINE_PER_CPU ( unsigned  long,
this_cpu_off   
)
DEFINE_PER_CPU_READ_MOSTLY ( int  ,
cpu_number   
)
EXPORT_PER_CPU_SYMBOL ( cpu_number  )
EXPORT_PER_CPU_SYMBOL ( this_cpu_off  )
EXPORT_SYMBOL ( __per_cpu_offset  )
void __init setup_per_cpu_areas ( void  )

Definition at line 167 of file setup_percpu.c.

Variable Documentation

unsigned long __per_cpu_offset [NR_CPUS] __read_mostly
Initial value:
= {
}

Definition at line 36 of file setup_percpu.c.