forked from dtrace4linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessor.h
More file actions
21 lines (18 loc) · 972 Bytes
/
processor.h
File metadata and controls
21 lines (18 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# if !defined(PROCESSOR_H)
# define PROCESSOR_H
typedef unsigned int processorid_t;
/*
* Flags and return values for p_online(2), and pi_state for processor_info(2).
* These flags are *not* for in-kernel examination of CPU states.
* See <sys/cpuvar.h> for appropriate informational functions.
*/
#define P_OFFLINE 0x0001 /* processor is offline, as quiet as possible */
#define P_ONLINE 0x0002 /* processor is online */
#define P_STATUS 0x0003 /* value passed to p_online to request status */
#define P_FAULTED 0x0004 /* processor is offline, in faulted state */
#define P_POWEROFF 0x0005 /* processor is powered off */
#define P_NOINTR 0x0006 /* processor is online, but no I/O interrupts */
#define P_SPARE 0x0007 /* processor is offline, can be reactivated */
#define P_BAD P_FAULTED /* unused but defined by USL */
#define P_FORCED 0x10000000 /* force processor offline */
#endif