Data Structures | Defines | Enumerations | Functions

CPU APIs

Data Structures

struct  CPU_SPECIFICATION
struct  CPUMSRINFO
struct  CPU_SPECIFICATION_STEPPING
struct  CPU_GROUP_INFO
struct  CPU_GROUPS_INFO
struct  CPUINFO

Defines

#define MAX_NUM_CPUS   256
 The maxium number of logical CPUs (including physical cores) that are supported with the CPU test.
#define MAX_NUM_CPU_PACKAGES   32
 The maxium number CPU packages supported.
#define MAX_CPU_GROUPS   4
 The maxium number of CPU groups (curenly Windows 7 and 2008 support 4 groups of 64 logical CPUs).
#define MAX_CPU_IN_GROUP   64
 The maxium number of CPU in a groups (in 64-bit Windows).
#define MAX_AFFINITY_SUPPORT   MAXIMUM_PROC_PER_GROUP
 The maxium number of CPUs that you can set the CPU affinity for.
#define CPU_SPEED_STRING_LENGTH   15
#define CPU_STRING_LEN   34
#define CPUCODE_STRING_LENGTH   16
#define STEPPING_STRING_LENGTH   6
#define SOCKET_STRING_LENGTH   16
#define FAB_STRING_LENGTH   5

Enumerations

enum  CPU_OCLK {
  CPU_OVERCLOCKED_UNKNOWN = 0, CPU_OVERCLOCKED = 1, CPU_UNDERCLOCKED = 2, CPU_OVERCLOCKED_NO = 3,
  CPU_MAXVAL = 4
}
enum  CPUINFO_STATUS {
  CPUINFO_SUCCESS = 0, CPUINFO_ACCESS_DENIED = 1, CPUINFO_INIT_DIRECTIO = 2, CPUINFO_DIRECTIO_VERSION = 3,
  CPUINFO_NOT_ALL_CPUS_AVAILABLE = 4
}
 

Return code for SysInfoDll_GetCPUInfo.

More...

Functions

SYSINFO_API int SysInfoDll_GetCPUInfo (CPUINFO *pCPUinfo)
 Call this function to return the CPU information structure.

Define Documentation

#define MAX_NUM_CPUS   256

The maxium number of logical CPUs (including physical cores) that are supported with the CPU test.

#define MAX_NUM_CPU_PACKAGES   32

The maxium number CPU packages supported.

#define MAX_CPU_GROUPS   4

The maxium number of CPU groups (curenly Windows 7 and 2008 support 4 groups of 64 logical CPUs).

#define MAX_CPU_IN_GROUP   64

The maxium number of CPU in a groups (in 64-bit Windows).

#define MAX_AFFINITY_SUPPORT   MAXIMUM_PROC_PER_GROUP

The maxium number of CPUs that you can set the CPU affinity for.

#define CPU_SPEED_STRING_LENGTH   15
#define CPU_STRING_LEN   34
#define CPUCODE_STRING_LENGTH   16
#define STEPPING_STRING_LENGTH   6
#define SOCKET_STRING_LENGTH   16
#define FAB_STRING_LENGTH   5

Enumeration Type Documentation

enum CPU_OCLK
Enumerator:
CPU_OVERCLOCKED_UNKNOWN 
CPU_OVERCLOCKED 
CPU_UNDERCLOCKED 
CPU_OVERCLOCKED_NO 
CPU_MAXVAL 

Return code for SysInfoDll_GetCPUInfo.

Enumerator:
CPUINFO_SUCCESS 
CPUINFO_ACCESS_DENIED 
CPUINFO_INIT_DIRECTIO 
CPUINFO_DIRECTIO_VERSION 
CPUINFO_NOT_ALL_CPUS_AVAILABLE 

Function Documentation

SYSINFO_API int SysInfoDll_GetCPUInfo ( CPUINFO pCPUinfo  ) 

Call this function to return the CPU information structure.

Parameters:
[out] pCPUinfo Pointer to a structure to store the CPU information.
Returns:
0 if successful, otherwise an error code (see CPUINFO_STATUS)
 All Data Structures Files Functions Variables Enumerations Enumerator Defines