fix bugs found in brk & add simple security checks on lx_free
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / kalloc.h
index eb309c593b2aa6aa28b2e2731c64f177d46d669b..d34b3be14a68b622c001e56e87b15eb4384044d7 100644 (file)
@@ -7,8 +7,11 @@ int
 kalloc_init();
 
 /**
- * @brief Allocate a space in kernel heap.This is NOT the same as kmalloc in Linux! 
- * LunaixOS does NOT guarantee the continuity in physical pages.
+ * @brief Allocate an accessible memory region in kernel heap. 
+ * 
+ * @remarks 
+ *  This is NOT the same as kmalloc in Linux! 
+ *  LunaixOS does NOT guarantee the continuity in physical pages.
  * 
  * @param size 
  * @return void* 
@@ -18,15 +21,14 @@ kmalloc(size_t size);
 
 /**
  * @brief calloc for kernel heap. A wrapper for kmalloc
- * 
  * @param size 
- * @return void* 
+ * @return void*
  */
 void*
 kcalloc(size_t size);
 
 /**
- * @brief free for kernel heap
+ * @brief Free the memory region allocated by kmalloc
  * 
  * @param size 
  * @return void*