#include <cpu.h>
Inheritance diagram for CPU:

Public Member Functions | |
| CPU (int id) | |
| constructor   | |
| int | enable () | 
| set a CPU online   | |
| int | disable () | 
| set a CPU offline   | |
| bool | online () | 
| if the CPU is online   | |
| bool | hotpluggable () | 
| if the CPU can be offlined and onlined   | |
Static Public Member Functions | |
| static int | enableAll () | 
| enables all CPUs in system   | |
Protected Attributes | |
| int | _cpu_base | 
| Stores which CPU this object corresponds to.   | |
Private Attributes | |
| std::string | ONLINE_FILE | 
| filename for CPU hotplugging   | |
      
  | 
  
| 
 constructor 
 
  | 
  
      
  | 
  
| 
 set a CPU offline CPU 0 can't be offlined 
 
  | 
  
      
  | 
  
| 
 set a CPU online CPU 0 can't be offlined 
 
  | 
  
      
  | 
  
| 
 enables all CPUs in system 
 
  | 
  
      
  | 
  
| 
 if the CPU can be offlined and onlined 
 
  | 
  
      
  | 
  
| 
 if the CPU is online 
 
  | 
  
      
  | 
  
| 
 Stores which CPU this object corresponds to. 
  | 
  
      
  | 
  
| 
 filename for CPU hotplugging 
  | 
  
 1.4.6