cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

heap.h (355B)


      1 #ifndef __HEAP_H__
      2 #define __HEAP_H__
      3 
      4 #include <sys/types.h>
      5 
      6 enum { KERNEL_HEAP = 0xd0000000, KERNEL_HEAP_END = 0xd8000000 };
      7 enum heap_cntl { DEFAULT };
      8 
      9 extern void *kmalloc(size_t size);
     10 extern void *kmalloc_ext(size_t size, enum heap_cntl flag);
     11 extern void kfree(void *ptr);
     12 extern void walk_heap_lists(void);
     13 extern void init_heap(void);
     14 
     15 #endif
     16