Rename kmalloc to kmm_malloc for consistency

This commit is contained in:
Gregory Nutt
2014-08-31 17:26:36 -06:00
parent 9023221f2b
commit 1780810d3d
111 changed files with 197 additions and 187 deletions
+1 -1
View File
@@ -637,7 +637,7 @@ static int romfs_dup(FAR const struct file *oldp, FAR struct file *newp)
* dup'ed file.
*/
newrf = (FAR struct romfs_file_s *)kmalloc(sizeof(struct romfs_file_s));
newrf = (FAR struct romfs_file_s *)kmm_malloc(sizeof(struct romfs_file_s));
if (!newrf)
{
fdbg("Failed to allocate private data\n", ret);
+2 -2
View File
@@ -560,7 +560,7 @@ int romfs_hwconfigure(struct romfs_mountpt_s *rm)
/* Allocate the device cache buffer for normal sector accesses */
rm->rm_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize);
rm->rm_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize);
if (!rm->rm_buffer)
{
return -ENOMEM;
@@ -648,7 +648,7 @@ int romfs_fileconfigure(struct romfs_mountpt_s *rm, struct romfs_file_s *rf)
/* Create a file buffer to support partial sector accesses */
rf->rf_buffer = (uint8_t*)kmalloc(rm->rm_hwsectorsize);
rf->rf_buffer = (uint8_t*)kmm_malloc(rm->rm_hwsectorsize);
if (!rf->rf_buffer)
{
return -ENOMEM;