Add helper functions to initialise the memory-mapped files table and counter

This commit is contained in:
sBubshait
2024-12-04 15:08:43 +00:00
parent b3042b5aa6
commit 1ce09a49a1
3 changed files with 41 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#define VM_MMAP_H
#include <hash.h>
#include "threads/thread.h"
/* A mapping identifier type. */
typedef unsigned mapid_t;
@@ -15,4 +16,6 @@ struct mmap_entry {
struct hash_elem elem; /* An elem for the hash table. */
};
bool mmap_init (void);
#endif /* vm/mmap.h */