xref: /kvm-unit-tests/lib/alloc_page.h (revision bf62a925684ac147fc952b5712fc6caf198871b5)
1 /*
2  * This work is licensed under the terms of the GNU LGPL, version 2.
3  *
4  * This is a simple allocator that provides contiguous physical addresses
5  * with byte granularity.
6  */
7 
8 #ifndef ALLOC_PAGE_H
9 #define ALLOC_PAGE_H 1
10 
11 bool page_alloc_initialized(void);
12 void *alloc_page();
13 void *alloc_pages(unsigned long order);
14 void free_page(void *page);
15 void free_pages(void *mem, unsigned long size);
16 
17 #endif
18