kmi_swap
#include <lkmi.h >
int lkmi_swap (lkmi_swap_t *swap_info);
lkmi_swap obtains informations about swap space and its usage from /proc/meminfo file and and puts it in swap_info structure.
Description of lkmi_swap_t structure.
space(s)
which may be used.
If function ends successfully, then returns 0. If call fail, functions returns -1 and sets errno value to:
The lkmi_swap function may also fail and set errno for any of the errors specified for the routine fopen(3).
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