《操作系统》的实验代码。
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.

16 lines
246 B

преди 10 години
  1. #ifndef __KERN_MM_SLAB_H__
  2. #define __KERN_MM_SLAB_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. size_t kallocated(void);
  9. #endif /* !__KERN_MM_SLAB_H__ */