lkmi_swapex
#include <lkmi.h >
int lkmi_swapex (lkmi_swapex_t *swapex, int index, int num);
lkmi_swapex obtains informations about particular swap space(s) and its usage from
/proc/swaps file and and puts it in swapex_info structure.
If NULL is entered as swapex_info then number of swap spaces is returned.
If function ends successfully, then returns 0. If call fail, functions returns -1, for explanation of errno value see fopen(3) function.
If parameter swapex_info is NULL then number of swap spaces is returned.
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