summaryrefslogtreecommitdiffstats
path: root/pcilib/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/cpu.h')
-rw-r--r--pcilib/cpu.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pcilib/cpu.h b/pcilib/cpu.h
index 2b3ed80..9b4b1d7 100644
--- a/pcilib/cpu.h
+++ b/pcilib/cpu.h
@@ -5,8 +5,23 @@
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