ia64/xen-unstable

annotate xen/include/xen/mm.h @ 1936:613602e2d771

bitkeeper revision 1.1108.26.1 (4106af006Bpl_nN84MShtvHA51xG0Q)

Domain allocations use the buddy allocator.
author kaf24@scramble.cl.cam.ac.uk
date Tue Jul 27 19:37:36 2004 +0000 (2004-07-27)
parents 42f37b71f9b1
children 1e13ae874e9c
rev   line source
kaf24@1210 1
kaf24@1211 2 #ifndef __XEN_MM_H__
kaf24@1211 3 #define __XEN_MM_H__
kaf24@1210 4
kaf24@1936 5 #include <asm/mm.h>
kaf24@1936 6
kaf24@1936 7 /* Generic allocator */
kaf24@1936 8 unsigned long init_heap_allocator(
kaf24@1936 9 unsigned long bitmap_start, unsigned long max_pages);
kaf24@1936 10 void init_heap_pages(int zone, struct pfn_info *pg, unsigned long nr_pages);
kaf24@1936 11 struct pfn_info *alloc_heap_pages(int zone, int order);
kaf24@1936 12 void free_heap_pages(int zone, struct pfn_info *pg, int order);
kaf24@1936 13
kaf24@1936 14 /* Xen suballocator */
kaf24@1936 15 void init_xenheap_pages(unsigned long ps, unsigned long pe);
kaf24@1920 16 unsigned long alloc_xenheap_pages(int order);
kaf24@1920 17 void free_xenheap_pages(unsigned long p, int order);
kaf24@1920 18 #define alloc_xenheap_page() (alloc_xenheap_pages(0))
kaf24@1920 19 #define free_xenheap_page(_p) (free_xenheap_pages(_p,0))
kaf24@1749 20
kaf24@1936 21 /* Domain suballocator */
kaf24@1936 22 void init_domheap_pages(unsigned long ps, unsigned long pe);
kaf24@1936 23 struct pfn_info *alloc_domheap_pages(int order);
kaf24@1936 24 void free_domheap_pages(struct pfn_info *pg, int order);
kaf24@1936 25 unsigned long avail_domheap_pages(void);
kaf24@1936 26 #define alloc_domheap_page() (alloc_domheap_pages(0))
kaf24@1936 27 #define free_domheap_page(_p) (free_domheap_pages(_p,0))
kaf24@1210 28
kaf24@1211 29 #endif /* __XEN_MM_H__ */