Skip to content
Snippets Groups Projects
Commit 2348319a authored by a2-stratford's avatar a2-stratford
Browse files

Improved comments

parent 9ad37f5d
No related branches found
No related tags found
2 merge requests!22Merge Feature/system calls,!6Implemented filesize system call
......@@ -90,7 +90,7 @@ syscall_handler (struct intr_frame *f UNUSED)
static struct list *file_list;
/* Goes through all the files in the file_list and looks for the given file
* Descriptor.
* Descriptor. Linear search
*/
void file_search(struct file_map *f) {
// Creates a struct to hold the currently checked file
......@@ -104,7 +104,7 @@ void file_search(struct file_map *f) {
(is_tail(list_element) == false)
) {
// Swaps the list_element for the next one in place
list_next(list_element);
list_element = list_next(list_element);
}
// Copies list_element to current file
curr_file->list_element = *list_element;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment