Add a mmap destroy function to cleanup all mmap hash table entries upon thread exit
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <hash.h>
|
||||
#include "threads/thread.h"
|
||||
#include "filesys/file.h"
|
||||
|
||||
/* A mapping identifier type. */
|
||||
typedef unsigned mapid_t;
|
||||
@@ -17,5 +18,6 @@ struct mmap_entry {
|
||||
};
|
||||
|
||||
bool mmap_init (void);
|
||||
void mmap_destroy (void);
|
||||
|
||||
#endif /* vm/mmap.h */
|
||||
|
||||
Reference in New Issue
Block a user