Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cpu.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/cpu.h>
#include <linux/topology.h>
#include <linux/device.h>
#include <linux/node.h>
#include <linux/gfp.h>
#include <linux/slab.h>
#include <linux/percpu.h>
#include "base.h"

Go to the source code of this file.

Data Structures

struct  cpu_attr


#define _CPU_ATTR(name, map)   { __ATTR(name, 0444, show_cpus_attr, NULL), map }


 EXPORT_SYMBOL_GPL (cpu_subsys)
int __cpuinit register_cpu (struct cpu *cpu, int num)
struct deviceget_cpu_device (unsigned cpu)
 EXPORT_SYMBOL_GPL (get_cpu_device)
bool cpu_is_hotpluggable (unsigned cpu)
 EXPORT_SYMBOL_GPL (cpu_is_hotpluggable)
void __init cpu_dev_init (void)


struct bus_type cpu_subsys
unsigned int total_cpus

Macro Definition Documentation

#define _CPU_ATTR (   name,
)    { __ATTR(name, 0444, show_cpus_attr, NULL), map }

Definition at line 158 of file cpu.c.

Function Documentation

void __init cpu_dev_init ( void  )

Definition at line 327 of file cpu.c.

bool cpu_is_hotpluggable ( unsigned  cpu)

Definition at line 304 of file cpu.c.

EXPORT_SYMBOL_GPL ( cpu_subsys  )
EXPORT_SYMBOL_GPL ( get_cpu_device  )
EXPORT_SYMBOL_GPL ( cpu_is_hotpluggable  )
struct device* get_cpu_device ( unsigned  cpu)

Definition at line 266 of file cpu.c.

int __cpuinit register_cpu ( struct cpu cpu,
int  num 

Definition at line 239 of file cpu.c.

Variable Documentation

struct bus_type cpu_subsys
Initial value:
= {
.name = "cpu",
.dev_name = "cpu",

Definition at line 19 of file cpu.c.

unsigned int total_cpus

Definition at line 180 of file cpu.c.