Implement implicitly unmapping all mmapped files when a process exits. Refactor to reduce duplication

This commit is contained in:
sBubshait
2024-12-04 22:00:59 +00:00
parent 806d6bc19e
commit 26a2d40325
4 changed files with 11 additions and 37 deletions

View File

@@ -21,6 +21,7 @@ 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_umap_all (void);
void mmap_destroy (void);
#endif /* vm/mmap.h */