chore: make things more general
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / kalloc.h
index d34b3be14a68b622c001e56e87b15eb4384044d7..6b97b3fdbbe8519c69e99410f63c579cd460e645 100644 (file)
@@ -7,7 +7,7 @@ int
 kalloc_init();
 
 /**
- * @brief Allocate an accessible memory region in kernel heap. 
+ * @brief Allocate a contiguous and un-initialized memory region in kernel heap. 
  * 
  * @remarks 
  *  This is NOT the same as kmalloc in Linux! 
@@ -17,15 +17,15 @@ kalloc_init();
  * @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*
  */
 void*
-kcalloc(size_t size);
+lxcalloc(size_t n, size_t elem);
 
 /**
  * @brief Free the memory region allocated by kmalloc
@@ -34,6 +34,6 @@ kcalloc(size_t size);
  * @return void* 
  */
 void
-kfree(void* ptr);
+lxfree(void* ptr);
 
 #endif /* __LUNAIX_KALLOC_H */