[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
uninit.h
Go to the documentation of this file.
1#ifndef VM_UNINIT_H
2#define VM_UNINIT_H
3#include "vm/vm.h"
4
5struct page;
6enum vm_type;
7
8typedef bool vm_initializer (struct page *, void *aux);
9
10/* Uninitlialized page. The type for implementing the
11 * "Lazy loading". */
13 /* Initiate the contets of the page */
16 void *aux;
17 /* Initiate the struct page and maps the pa to the va */
18 bool (*page_initializer) (struct page *, enum vm_type, void *kva);
19};
20
21void uninit_new (struct page *page, void *va, vm_initializer *init,
22 enum vm_type type, void *aux,
23 bool (*initializer)(struct page *, enum vm_type, void *kva));
24#endif
#define bool
Definition: stdbool.h:4
Definition: vm.h:51
void * va
Definition: vm.h:53
Definition: uninit.h:12
void * aux
Definition: uninit.h:16
enum vm_type type
Definition: uninit.h:15
vm_initializer * init
Definition: uninit.h:14
bool(* page_initializer)(struct page *, enum vm_type, void *kva)
Definition: uninit.h:18
bool vm_initializer(struct page *, void *aux)
Definition: uninit.h:8
void uninit_new(struct page *page, void *va, vm_initializer *init, enum vm_type type, void *aux, bool(*initializer)(struct page *, enum vm_type, void *kva))
static void init(void)
Definition: vga.c:36
vm_type
Definition: vm.h:8