#include <lkmi.h >
int lkmi_netdev (lkmi_netdev_t *netdev, int index, int num);
Function retrieves information about Network Interface Cards (NICs) and their counters in structure lkmi_netdev_t which contains these fields.
For more information see kernel source code.
Note: counters contains counted data since last system boot.
If parameter netdev is NULL then number of NICs is returned.
If this parameter is valid pointer and function ends successfully then returns 0. If call fail, functions returns -1 and sets errno value to:
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