/home/fernape/Projects/lkmonitor/src/processes.h File Reference

#include <glib.h>
#include <dirent.h>

Go to the source code of this file.

Data Structures

struct  lnode
 Dumb process representation This structure is used to keep track of processes in the process list. More...

Functions

int get_proc_list (struct dirent ***proclist)
 Get the list of processes.


Function Documentation

int get_proc_list ( struct dirent ***  proclist  ) 

Get the list of processes.

Get the list of processes

Parameters:
proclist Triple pointer to dirent struct. Here we write the list of processes.
Returns:
Number of processes attached or errno if error.

Definition at line 62 of file processes.c.

References numsort().

00062                                             {
00063         int numfich;
00064         
00065         if ((numfich = scandir ("/proc", proclist, &filter, numsort)) == -1)
00066     {
00067       perror ("scandir error");
00068       return (errno);
00069     }
00070         
00071         return(numfich);
00072 }


Generated on Tue Apr 1 22:52:56 2008 for lkmonitor by  doxygen 1.5.1