os_kernel_lab/labcodes_answer/lab4_result/kern/mm/kmalloc.h
2014-08-20 15:42:20 +08:00

15 lines
220 B
C

#ifndef __KERN_MM_SLAB_H__
#define __KERN_MM_SLAB_H__
#include <defs.h>
#define KMALLOC_MAX_ORDER 10
void kmalloc_init(void);
void *kmalloc(size_t n);
void kfree(void *objp);
#endif /* !__KERN_MM_SLAB_H__ */