1#ifndef THREADS_PALLOC_H
2#define THREADS_PALLOC_H
static size_t user_page_limit
-ul: Maximum number of pages to put into palloc's user pool.
palloc_flags
How to allocate pages.
@ PAL_ZERO
Zero page contents.
@ PAL_ASSERT
Panic on failure.
void * palloc_get_page(enum palloc_flags)
Obtains a single free page and returns its kernel virtual address.
void palloc_free_multiple(void *, size_t page_cnt)
threads/palloc.h
void * palloc_get_multiple(enum palloc_flags, size_t page_cnt)
Obtains and returns a group of PAGE_CNT contiguous free pages.
void palloc_free_page(void *)
Frees the page at PAGE.
void palloc_init(size_t user_page_limit)
Initializes the page allocator.