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 /* Maximum number of pages to put in user pool. */
15 extern size_t user_page_limit
;
17 void palloc_init (void);
18 void *palloc_get_page (enum palloc_flags
);
19 void *palloc_get_multiple (enum palloc_flags
, size_t page_cnt
);
20 void palloc_free_page (void *);
21 void palloc_free_multiple (void *, size_t page_cnt
);
23 #endif /* threads/palloc.h */