From 8933c45c177556353570f92513bb49f182ce3be8 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 2 Mar 2016 05:47:04 +0100 Subject: Documentation update --- pcilib/cpu.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pcilib/cpu.h') 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 -- cgit v1.2.3