refactor: make shared files table private
This commit is contained in:
@@ -14,6 +14,9 @@
|
|||||||
#define SWAP_FLAG_BIT 9
|
#define SWAP_FLAG_BIT 9
|
||||||
#define ADDR_START_BIT 12
|
#define ADDR_START_BIT 12
|
||||||
|
|
||||||
|
struct hash shared_files;
|
||||||
|
struct lock shared_files_lock;
|
||||||
|
|
||||||
static unsigned page_hash (const struct hash_elem *e, void *aux UNUSED);
|
static unsigned page_hash (const struct hash_elem *e, void *aux UNUSED);
|
||||||
static bool page_less (const struct hash_elem *a_, const struct hash_elem *b_,
|
static bool page_less (const struct hash_elem *a_, const struct hash_elem *b_,
|
||||||
void *aux UNUSED);
|
void *aux UNUSED);
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
#include "threads/synch.h"
|
#include "threads/synch.h"
|
||||||
#include "filesys/off_t.h"
|
#include "filesys/off_t.h"
|
||||||
|
|
||||||
struct hash shared_files;
|
|
||||||
struct lock shared_files_lock;
|
|
||||||
|
|
||||||
enum page_type {
|
enum page_type {
|
||||||
PAGE_EXECUTABLE,
|
PAGE_EXECUTABLE,
|
||||||
PAGE_EMPTY
|
PAGE_EMPTY
|
||||||
|
|||||||
Reference in New Issue
Block a user