Rename kufree to kumm_free for consistency with other naming

This commit is contained in:
Gregory Nutt
2014-08-31 16:15:11 -06:00
parent 9cd1ddada4
commit 9ad7dae4c1
28 changed files with 49 additions and 45 deletions
+3 -3
View File
@@ -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 umm_realloc() to
* memory at the end. This is a consequence of using kumm_realloc() to
* simulate the unmapping.
*/
@@ -186,7 +186,7 @@ int munmap(FAR void *start, size_t length)
/* Then free the region */
kufree(curr);
kumm_free(curr);
}
/* No.. We have been asked to "unmap' only a portion of the memory
@@ -195,7 +195,7 @@ int munmap(FAR void *start, size_t length)
else
{
newaddr = umm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length);
newaddr = kumm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length);
DEBUGASSERT(newaddr == (FAR void*)(curr->addr));
curr->length = length;
}
+2 -2
View File
@@ -232,13 +232,13 @@ FAR void *rammap(int fd, size_t length, off_t offset)
return map->addr;
errout_with_region:
kufree(alloc);
kumm_free(alloc);
errout:
set_errno(err);
return MAP_FAILED;
errout_with_errno:
kufree(alloc);
kumm_free(alloc);
return MAP_FAILED;
}