blob: 61812996464a13d7ac05baa851b2f2bd396f1b0f [file] [log] [blame]
/*
* This work is licensed under the terms of the GNU LGPL, version 2.
*
* This is a simple allocator that provides contiguous physical addresses
* with byte granularity.
*/
#ifndef ALLOC_PAGE_H
#define ALLOC_PAGE_H 1
bool page_alloc_initialized(void);
void page_alloc_ops_enable(void);
void *alloc_page(void);
void *alloc_pages(unsigned long order);
void free_page(void *page);
void free_pages(void *mem, unsigned long size);
void free_pages_by_order(void *mem, unsigned long order);
unsigned int get_order(size_t size);
#endif