[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
anon.h File Reference
#include "vm/vm.h"
Include dependency graph for anon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  anon_page
 

Functions

void vm_anon_init (void)
 
bool anon_initializer (struct page *page, enum vm_type type, void *kva)
 

Function Documentation

◆ anon_initializer()

bool anon_initializer ( struct page page,
enum vm_type  type,
void *  kva 
)
37 {
38 /* Set up the handler */
40
41 struct anon_page *anon_page = &page->anon;
42
43 return true;
44}
static const struct page_operations anon_ops
Definition: anon.c:16
Definition: anon.h:7
Definition: vm.h:51
const struct page_operations * operations
Definition: vm.h:52
struct anon_page anon
Definition: vm.h:68
Here is the caller graph for this function:

◆ vm_anon_init()

void vm_anon_init ( void  )
28 {
29 /* TODO: Set up the swap_disk. */
30 swap_disk = disk_get(1, 1);
31 size_t swap_size = disk_size(swap_disk) / SECTORS_PER_PAGE; // 8개의 disk sector
32 swap_table = bitmap_create(swap_size);
33}
struct bitmap * swap_table
Definition: anon.c:23
static struct disk * swap_disk
Definition: anon.c:10
const size_t SECTORS_PER_PAGE
Definition: anon.c:24
struct bitmap * bitmap_create(size_t bit_cnt)
Definition: bitmap.c:73
disk_sector_t disk_size(struct disk *d)
Definition: disk.c:200
struct disk * disk_get(int chan_no, int dev_no)
Definition: disk.c:186
Here is the call graph for this function:
Here is the caller graph for this function: