《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
229 B

  1. #ifndef __KERN_MM_KMALLOC_H__
  2. #define __KERN_MM_KMALLOC_H__
  3. #include <defs.h>
  4. #define KMALLOC_MAX_ORDER 10
  5. void kmalloc_init(void);
  6. void *kmalloc(size_t n);
  7. void kfree(void *objp);
  8. #endif /* !__KERN_MM_KMALLOC_H__ */