blob: 9b4b1d79cf35f5415ab4da861506ca31a4c1306e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _PCILIB_CPU_H
#define _PCILIB_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* Return the mask of system memory page
* @return - page mask, the bits which will correspond to offset within the page are set to 1
*/
int pcilib_get_page_mask();
/**
* Number of CPU cores in the system (including HyperThreading cores)
* @return - number of available CPU cores
*/
int pcilib_get_cpu_count();
/**
* Returns the generation of Intel Core architecture
* Processors up to Intel Core gen4 are recognized.
* @return - Generation of Intel Core architecture (1 to 4) or 0 for non-Intel and Intel pre-Core architectures
*/
int pcilib_get_cpu_gen();
#ifdef __cplusplus
}
#endif
#endif /* _PCILIB_CPU_H */
|