Update thread structure to add mmap files table and a counter for mappings of the thread

This commit is contained in:
sBubshait
2024-12-04 14:56:52 +00:00
parent 85aabd86cd
commit b3042b5aa6

View File

@@ -137,6 +137,10 @@ struct thread
struct hash pages; /* Table of open user pages. */ 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 #ifdef USERPROG
/* Owned by userprog/process.c. */ /* Owned by userprog/process.c. */
uint32_t *pagedir; /* Page directory. */ uint32_t *pagedir; /* Page directory. */