libamxp
1.4.0
Patterns C Implementation
|
Data Structures | |
struct | _proc_info |
Structure containing the process information. More... | |
Typedefs | |
typedef struct _proc_info | amxp_proc_info_t |
Structure containing the process information. More... | |
Functions | |
void | amxp_proci_free_it (amxc_llist_it_t *it) |
Delete a amxp_proc_info_t by it is linked list iterator. More... | |
int | amxp_proci_findf (amxc_llist_t *result, const char *filter,...) |
Build a linked list of running processes. More... | |
Process information
typedef struct _proc_info amxp_proc_info_t |
Structure containing the process information.
int amxp_proci_findf | ( | amxc_llist_t * | result, |
const char * | filter, | ||
... | |||
) |
Build a linked list of running processes.
This function scans /proc/<pid>/ and allocates a amxp_proc_info_t structure for each found process.
Optionally a expression filter can be provided. The fields allowed in the filter are:
result | pointer to a linked list, found processes will be added to this list |
filter | an expression that is used to filter the found processes. |
Definition at line 219 of file amxp_proc_info.c.
void amxp_proci_free_it | ( | amxc_llist_it_t * | it | ) |
Delete a amxp_proc_info_t by it is linked list iterator.
Frees the structure and its content.
This function is typically used as a callback function when cleaning a linked list of amxp_proc_info_t structures.
it | the linked list iterator of a amxp_proc_info_t instance |
Definition at line 213 of file amxp_proc_info.c.