X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d07db7c15d6cf9d6c0fd07ea29cca77a89b02a79..4c6d990440cdba6c7dd294adb7e435770ffcbcc4:/lunaix-os/includes/lunaix/mm/kalloc.h diff --git a/lunaix-os/includes/lunaix/mm/kalloc.h b/lunaix-os/includes/lunaix/mm/kalloc.h index eb309c5..d34b3be 100644 --- a/lunaix-os/includes/lunaix/mm/kalloc.h +++ b/lunaix-os/includes/lunaix/mm/kalloc.h @@ -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*