xref: /kvm-unit-tests/lib/alloc_page.h (revision 4363f1d9a646a5c7ea673bee8fc33ca6f2cddbd8)
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 void *alloc_page();
12 void *alloc_pages(unsigned long order);
13 void free_page(void *page);
14 void free_pages(void *mem, unsigned long size);
15 
16 #endif
17