feat: implement clock (second-chance) page eviction algorithm

This commit is contained in:
Themis Demetriades
2024-11-29 19:30:47 +00:00
parent ea2725f606
commit 149bb42889
6 changed files with 203 additions and 51 deletions

View File

@@ -1,10 +1,11 @@
#ifndef VM_FRAME_H
#define VM_FRAME_H
#include "threads/thread.h"
#include "threads/palloc.h"
void frame_init (void);
void *frame_alloc (enum palloc_flags);
void *frame_alloc (enum palloc_flags, void *, struct thread *);
void frame_free (void *frame);
#endif /* vm/frame.h */