#include <lkmi.h >
int lkmi_cpu (lkmi_cpu_t *cpu_info, int index, int num);
Function retrieves information about CPUs and fills array cpu_info which contains these fields.
cpu_info is NULL then number of CPUs, is returned.
cpu_info is not NULL pointer then 0 is returned if function succeeded. If not then
-1 is returned and
errno is set to appropriate value.
fopen(3)function, which causes other errors.
Please use the SourceForge Reporting page which is located here:
This function is written as part of lkmi library for Linux system and may be freely distributed under GPL terms.
Copyright (c) 1995, 2002 David Doubrava (linux_monitor(at)volny(dot)cz).
Origin of values description is in Linux kernel source.lkmi, lkmi_cpu, lkmi_files, lkmi_filesys, lkmi_hdd, lkmi_hw_intr, lkmi_inodes, lkmi_memory, lkmi_memoryswap, lkmi_net, lkmi_proc, lkmi_readprocesses, lkmi_swap, lkmi_swapex, lkmi_system