chore: make things more general
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / kalloc.h
index eb309c593b2aa6aa28b2e2731c64f177d46d669b..6b97b3fdbbe8519c69e99410f63c579cd460e645 100644 (file)
@@ -7,31 +7,33 @@ 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 a contiguous and un-initialized 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* 
  */
 void*
-kmalloc(size_t size);
+lxmalloc(size_t size);
 
 /**
- * @brief calloc for kernel heap. A wrapper for kmalloc
- * 
+ * @brief Allocate a contiguous and initialized memory region in kernel heap.
  * @param size 
- * @return void* 
+ * @return void*
  */
 void*
-kcalloc(size_t size);
+lxcalloc(size_t n, size_t elem);
 
 /**
- * @brief free for kernel heap
+ * @brief Free the memory region allocated by kmalloc
  * 
  * @param size 
  * @return void* 
  */
 void
-kfree(void* ptr);
+lxfree(void* ptr);
 
 #endif /* __LUNAIX_KALLOC_H */