Implement the unmap system call, writing back to the file if a page is dirty before removing from SPT

This commit is contained in:
sBubshait
2024-12-04 19:07:28 +00:00
parent 02b79d1934
commit ecbb4e74a5
3 changed files with 75 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ struct mmap_entry {
bool mmap_init (struct thread *t);
struct mmap_entry *mmap_get (mapid_t mapping);
struct mmap_entry *mmap_insert (struct file *file, void *upage);
void mmap_unmap (struct mmap_entry *mmap);
void mmap_destroy (void);
#endif /* vm/mmap.h */