[Krafton Jungle] PintOS
2.0.0
크래프톤 정글 PintOS
Loading...
Searching...
No Matches
Classes
|
Functions
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 */
39
page
->
operations
= &
anon_ops
;
40
41
struct
anon_page
*
anon_page
= &
page
->
anon
;
42
43
return
true
;
44
}
anon_ops
static const struct page_operations anon_ops
Definition:
anon.c:16
anon_page
Definition:
anon.h:7
page
Definition:
vm.h:51
page::operations
const struct page_operations * operations
Definition:
vm.h:52
page::anon
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
}
swap_table
struct bitmap * swap_table
Definition:
anon.c:23
swap_disk
static struct disk * swap_disk
Definition:
anon.c:10
SECTORS_PER_PAGE
const size_t SECTORS_PER_PAGE
Definition:
anon.c:24
bitmap_create
struct bitmap * bitmap_create(size_t bit_cnt)
Definition:
bitmap.c:73
disk_size
disk_sector_t disk_size(struct disk *d)
Definition:
disk.c:200
disk_get
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:
include
vm
anon.h
Generated by
1.9.5