blob: ce7552444552d3e03c14616b508d395b2c49866d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef _PLIST_H_
#define _PLIST_H_
/* Place functions to handle a running process here (process list).
plist.h : Your function declarations and documentation.
plist.c : Your implementation.
The following is strongly recommended:
- A function that given process inforamtion (up to you to create)
inserts this in a list of running processes and return an integer
that can be used to find the information later on.
- A function that given an integer (obtained from above function)
FIND the process information in the list. Should return some
failure code if no process matching the integer is in the list.
Or, optionally, several functions to access any information of a
particular process that you currently need.
- A function that given an integer REMOVE the process information
from the list. Should only remove the information when no process
or thread need it anymore, but must guarantee it is always
removed EVENTUALLY.
- A function that print the entire content of the list in a nice,
clean, readable format.
*/
#endif
|