nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
zone.h File Reference
This graph shows which files directly or indirectly include this file:

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 zonefind_zone (enum zone_type zone)
 
struct zonefind_zone_by_addr (void *pma)
 

Enumeration Type Documentation

enum zone_type
Enumerator
ZONE_BASE 
ZONE_NORMAL 

Includes DMA

ZONE_HIMEM 
ZONE_SYSTEM 
ZONE_MAX 

Definition at line 1 of file zone.h.

Function Documentation

int create_zone ( struct node node,
enum zone_type  zone,
off_t  base,
size_t  size 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

struct zone* find_zone ( enum zone_type  zone)

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().

Here is the caller graph for this function:

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.

Here is the call graph for this function: