git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: new syscall: sigpending, sigsuspend
[lunaix-os.git]
/
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 d34b3be14a68b622c001e56e87b15eb4384044d7..6b97b3fdbbe8519c69e99410f63c579cd460e645 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/kalloc.h
+++ b/
lunaix-os/includes/lunaix/mm/kalloc.h
@@
-7,7
+7,7
@@
int
kalloc_init();
/**
kalloc_init();
/**
- * @brief Allocate a
n 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!
*
* @remarks
* This is NOT the same as kmalloc in Linux!
@@
-17,15
+17,15
@@
kalloc_init();
* @return void*
*/
void*
* @return void*
*/
void*
-
k
malloc(size_t size);
+
lx
malloc(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*
* @param size
* @return void*
*/
void*
-
kcalloc(size_t size
);
+
lxcalloc(size_t n, size_t elem
);
/**
* @brief Free the memory region allocated by kmalloc
/**
* @brief Free the memory region allocated by kmalloc
@@
-34,6
+34,6
@@
kcalloc(size_t size);
* @return void*
*/
void
* @return void*
*/
void
-
k
free(void* ptr);
+
lx
free(void* ptr);
#endif /* __LUNAIX_KALLOC_H */
#endif /* __LUNAIX_KALLOC_H */