2012-10-09 21:31:20 +08:00
|
|
|
#ifndef __KERN_MM_KMALLOC_H__
|
|
|
|
#define __KERN_MM_KMALLOC_H__
|
2012-08-22 12:32:13 +08:00
|
|
|
|
|
|
|
#include <defs.h>
|
|
|
|
|
|
|
|
#define KMALLOC_MAX_ORDER 10
|
|
|
|
|
|
|
|
void kmalloc_init(void);
|
|
|
|
|
|
|
|
void *kmalloc(size_t n);
|
|
|
|
void kfree(void *objp);
|
|
|
|
|
|
|
|
size_t kallocated(void);
|
|
|
|
|
2012-10-09 21:31:20 +08:00
|
|
|
#endif /* !__KERN_MM_KMALLOC_H__ */
|
2012-08-22 12:32:13 +08:00
|
|
|
|