Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
smpboot.h
Go to the documentation of this file.
1
#ifndef _LINUX_SMPBOOT_H
2
#define _LINUX_SMPBOOT_H
3
4
#include <linux/types.h>
5
6
struct
task_struct
;
7
/* Cookie handed to the thread_fn*/
8
struct
smpboot_thread_data
;
9
27
struct
smp_hotplug_thread
{
28
struct
task_struct
__percpu
**
store
;
29
struct
list_head
list
;
30
int
(*
thread_should_run
)(
unsigned
int
cpu
);
31
void
(*
thread_fn
)(
unsigned
int
cpu
);
32
void
(*
setup
)(
unsigned
int
cpu
);
33
void
(*
cleanup
)(
unsigned
int
cpu
,
bool
online
);
34
void
(*
park
)(
unsigned
int
cpu
);
35
void
(*
unpark
)(
unsigned
int
cpu
);
36
const
char
*
thread_comm
;
37
};
38
39
int
smpboot_register_percpu_thread
(
struct
smp_hotplug_thread
*plug_thread);
40
void
smpboot_unregister_percpu_thread
(
struct
smp_hotplug_thread
*plug_thread);
41
int
smpboot_thread_schedule
(
void
);
42
43
#endif
Generated on Thu Jan 10 2013 14:52:36 for Linux Kernel by
1.8.2