diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-02 05:47:04 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-02 05:47:04 +0100 |
commit | 8933c45c177556353570f92513bb49f182ce3be8 (patch) | |
tree | 08ee02c6a6e97f72ad5cdb23717f9600813cff6d /pcilib/cpu.h | |
parent | 3c58980b3ca558096340e51c215897e8614ba00a (diff) | |
download | pcitool-8933c45c177556353570f92513bb49f182ce3be8.tar.gz pcitool-8933c45c177556353570f92513bb49f182ce3be8.tar.bz2 pcitool-8933c45c177556353570f92513bb49f182ce3be8.tar.xz pcitool-8933c45c177556353570f92513bb49f182ce3be8.zip |
Documentation update
Diffstat (limited to 'pcilib/cpu.h')
-rw-r--r-- | pcilib/cpu.h | 15 |
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 |