Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
smpboot.c File Reference
#include <linux/cpu.h>
#include <linux/err.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/export.h>
#include <linux/percpu.h>
#include <linux/kthread.h>
#include <linux/smpboot.h>
#include "smpboot.h"

Go to the source code of this file.

Data Structures

struct  smpboot_thread_data
 

Enumerations

enum  { HP_THREAD_NONE = 0, HP_THREAD_ACTIVE, HP_THREAD_PARKED }
 

Functions

int smpboot_create_threads (unsigned int cpu)
 
void smpboot_unpark_threads (unsigned int cpu)
 
void smpboot_park_threads (unsigned int cpu)
 
int smpboot_register_percpu_thread (struct smp_hotplug_thread *plug_thread)
 
 EXPORT_SYMBOL_GPL (smpboot_register_percpu_thread)
 
void smpboot_unregister_percpu_thread (struct smp_hotplug_thread *plug_thread)
 
 EXPORT_SYMBOL_GPL (smpboot_unregister_percpu_thread)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
HP_THREAD_NONE 
HP_THREAD_ACTIVE 
HP_THREAD_PARKED 

Definition at line 88 of file smpboot.c.

Function Documentation

EXPORT_SYMBOL_GPL ( smpboot_register_percpu_thread  )
EXPORT_SYMBOL_GPL ( smpboot_unregister_percpu_thread  )
int smpboot_create_threads ( unsigned int  cpu)

Definition at line 192 of file smpboot.c.

void smpboot_park_threads ( unsigned int  cpu)

Definition at line 232 of file smpboot.c.

int smpboot_register_percpu_thread ( struct smp_hotplug_thread plug_thread)

smpboot_register_percpu_thread - Register a per_cpu thread related to hotplug : Hotplug thread descriptor

Creates and starts the threads on all online cpus.

Definition at line 264 of file smpboot.c.

void smpboot_unpark_threads ( unsigned int  cpu)

Definition at line 214 of file smpboot.c.

void smpboot_unregister_percpu_thread ( struct smp_hotplug_thread plug_thread)

smpboot_unregister_percpu_thread - Unregister a per_cpu thread related to hotplug : Hotplug thread descriptor

Stops all threads on all possible cpus.

Definition at line 291 of file smpboot.c.