diff options
| author | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
|---|---|---|
| committer | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
| commit | e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad (patch) | |
| tree | 4de97af7207676b69cb6a9aba8cb443cc134855d /src/userprog/plist.h | |
| parent | b0418a24e709f0632d2ede5b0f327c422931939b (diff) | |
| download | pintos-rs-e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad.tar.gz | |
Initial Pintos
Diffstat (limited to 'src/userprog/plist.h')
| -rw-r--r-- | src/userprog/plist.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/userprog/plist.h b/src/userprog/plist.h new file mode 100644 index 0000000..ce75524 --- /dev/null +++ b/src/userprog/plist.h @@ -0,0 +1,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 |
