|
nckernel
0.1
|

Go to the source code of this file.
Data Structures | |
| struct | zone |
| 메모리 존을 관리하는 자료 구조 More... | |
Enumerations | |
| enum | zone_type { ZONE_BASE, ZONE_NORMAL, ZONE_HIMEM, ZONE_SYSTEM, ZONE_MAX } |
Functions | |
| int | create_zone (struct node *node, enum zone_type zone, off_t base, size_t size) |
| int | destroy_zone (struct zone *zone) |
| struct zone * | find_zone (enum zone_type zone) |
| struct zone * | find_zone_by_addr (void *pma) |
| enum zone_type |
Definition at line 19 of file zone.c.
References dbg_printf(), ENOMEM, free(), zone::head, malloc(), zone::managed_page_list, zone::node, page_frame_init(), zone::page_list, and zone::type.
Referenced by vm_frame_init().


| int destroy_zone | ( | struct zone * | zone) |
Definition at line 93 of file zone.c.
References free(), zone::head, and page_frame_fini().
Referenced by cpu_node_destroy().


Definition at line 45 of file zone.c.
References list_entry, list_for_each, NULL, and zone::type.
Referenced by page_frame_alloc(), and page_frame_manage().

| struct zone* find_zone_by_addr | ( | void * | pma) |
Definition at line 60 of file zone.c.
References end, zone::handle, list_entry, list_for_each, zone::managed_page_list, NULL, page_allocator_get_region(), page_frame::page_head, and page_frame::pma.

1.8.4