add lab answers
This commit is contained in:
12
labcodes_answer/lab3_result/kern/fs/swapfs.h
Normal file
12
labcodes_answer/lab3_result/kern/fs/swapfs.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef __KERN_FS_SWAPFS_H__
|
||||
#define __KERN_FS_SWAPFS_H__
|
||||
|
||||
#include <memlayout.h>
|
||||
#include <swap.h>
|
||||
|
||||
void swapfs_init(void);
|
||||
int swapfs_read(swap_entry_t entry, struct Page *page);
|
||||
int swapfs_write(swap_entry_t entry, struct Page *page);
|
||||
|
||||
#endif /* !__KERN_FS_SWAPFS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user