[SOLVED] CS #ifndef THREADS_PALLOC_H

$25

File Name: CS_#ifndef_THREADS_PALLOC_H.zip
File Size: 254.34 KB

5/5 - (1 vote)

#ifndef THREADS_PALLOC_H
#define THREADS_PALLOC_H

#include

/* How to allocate pages. */
enum palloc_flags {
PAL_ASSERT = 001, /* Panic on failure. */
PAL_ZERO = 002, /* Zero page contents. */
PAL_USER = 004 /* User page. */
};

void palloc_init(size_t user_page_limit);
void *palloc_get_page(enum palloc_flags);
void *palloc_get_multiple(enum palloc_flags, size_t page_cnt);
void palloc_free_page(void *);
void palloc_free_multiple(void *, size_t page_cnt);

#endif /* threads/palloc.h */

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS #ifndef THREADS_PALLOC_H
$25