1 #ifndef THREADS_PALLOC_H
2 #define THREADS_PALLOC_H
6 /* How to allocate pages. */
9 PAL_ASSERT = 001, /* Panic on failure. */
10 PAL_ZERO = 002, /* Zero page contents. */
11 PAL_USER = 004 /* User page. */
14 void palloc_init (size_t user_page_limit);
15 void *palloc_get_page (enum palloc_flags);
16 void *palloc_get_multiple (enum palloc_flags, size_t page_cnt);
17 void palloc_free_page (void *);
18 void palloc_free_multiple (void *, size_t page_cnt);
20 #endif /* threads/palloc.h */