From b3042b5aa66ebf342076b78ef140a8a6fc0e5601 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Wed, 4 Dec 2024 14:56:52 +0000 Subject: [PATCH] Update thread structure to add mmap files table and a counter for mappings of the thread --- src/threads/thread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/threads/thread.h b/src/threads/thread.h index bdfad35..2904022 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -137,6 +137,10 @@ struct thread struct hash pages; /* Table of open user pages. */ + /* Memory mapped files for user virtual memory. */ + struct hash mmap_files; /* List of memory mapped files. */ + unsigned int mmap_counter; /* Counter for memory mapped files. */ + #ifdef USERPROG /* Owned by userprog/process.c. */ uint32_t *pagedir; /* Page directory. */