ncloader  0.1
 모두 데이타 구조 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 매크로 그룹들 페이지들
page_allocator.c 파일 참조
#include <sys/types.h>
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <page_allocator.h>
+ page_allocator.c에 대한 include 의존 그래프

데이타 구조

struct  page_allocator
 

매크로

#define BYTE_IDX(j)   ((j) >> 3)
 
#define BIT_IDX(j)   ((j) & 0x07)
 
#define BIT_MASK(j)   (0x01 << BIT_IDX(j))
 

함수

struct page_allocatorpage_allocator_init (void *info, void *addr, unsigned int size)
 page frame 관리자를 초기화 한다. 더 자세히 ...
 
int page_allocator_fini (struct page_allocator *handle)
 page frame 관리자를 종료한다. 더 자세히 ...
 
void * page_allocator_alloc (struct page_allocator *handle, unsigned int nr_of_pages)
 page frame 을 할당한다. 더 자세히 ...
 
int page_allocator_free (struct page_allocator *handle, void *addr)
 할당 된 page frame 을 해제한다. 더 자세히 ...
 
unsigned int page_allocator_info_size (unsigned int size)
 page allocator 가 관리 정보를 담기 위해 필요한 information block 의 크기 더 자세히 ...
 
int page_allocator_get_region (struct page_allocator *handle, unsigned int *start, unsigned int *end)
 handle 이 관리하고 있는 Page frame 관리 영역에 대한 정보를 제공한다. 더 자세히 ...
 

매크로 문서화

#define BIT_IDX (   j)    ((j) & 0x07)
#define BIT_MASK (   j)    (0x01 << BIT_IDX(j))
#define BYTE_IDX (   j)    ((j) >> 3)