Skip to content

Commit

Permalink
add shortcuts for allocating and freeing a single page
Browse files Browse the repository at this point in the history
bmk_pg{alloc,free}_one()
  • Loading branch information
anttikantee committed Jun 19, 2015
1 parent 3a969ee commit 43ac194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/bmk-core/pgalloc.h
Expand Up @@ -31,4 +31,7 @@ void bmk_pgalloc_loadmem(unsigned long, unsigned long);
unsigned long bmk_pgalloc(int);
void bmk_pgfree(void *, int);

#define bmk_pgalloc_one() bmk_pgalloc(0)
#define bmk_pgfree_one(p) bmk_pgfree(p, 0)

#endif /* _BMK_CORE_PGALLOC_H_ */

0 comments on commit 43ac194

Please sign in to comment.