mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming
This commit is contained in:
+2
-2
@@ -151,7 +151,7 @@ int munmap(FAR void *start, size_t length)
|
||||
/* Get the offset from the beginning of the region and the actual number
|
||||
* of bytes to "unmap". All mappings must extend to the end of the region.
|
||||
* There is no support for free a block of memory but leaving a block of
|
||||
* memory at the end. This is a consequence of using kurealloc() to
|
||||
* memory at the end. This is a consequence of using umm_realloc() to
|
||||
* simulate the unmapping.
|
||||
*/
|
||||
|
||||
@@ -195,7 +195,7 @@ int munmap(FAR void *start, size_t length)
|
||||
|
||||
else
|
||||
{
|
||||
newaddr = kurealloc(curr->addr, sizeof(struct fs_rammap_s) + length);
|
||||
newaddr = umm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length);
|
||||
DEBUGASSERT(newaddr == (FAR void*)(curr->addr));
|
||||
curr->length = length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user