diff --git a/arch/arm/src/common/up_createstack.c b/arch/arm/src/common/up_createstack.c index 38170e2289..a346127534 100644 --- a/arch/arm/src/common/up_createstack.c +++ b/arch/arm/src/common/up_createstack.c @@ -174,9 +174,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/arm/src/lpc31xx/lpc31_ehci.c b/arch/arm/src/lpc31xx/lpc31_ehci.c index 2af7e0c13e..8f0091f8a0 100755 --- a/arch/arm/src/lpc31xx/lpc31_ehci.c +++ b/arch/arm/src/lpc31xx/lpc31_ehci.c @@ -3773,7 +3773,7 @@ static int lpc31_free(FAR struct usbhost_driver_s *drvr, FAR uint8_t *buffer) * Some hardware supports special memory in which larger IO buffers can * be accessed more efficiently. This method provides a mechanism to allocate * the request/descriptor memory. If the underlying hardware does not support - * such "special" memory, this functions may simply map to kumalloc. + * such "special" memory, this functions may simply map to kumm_malloc. * * This interface differs from DRVR_ALLOC in that the buffers are variable-sized. * @@ -3802,7 +3802,7 @@ static int lpc31_ioalloc(FAR struct usbhost_driver_s *drvr, FAR uint8_t **buffer * accessible (depending on how the class driver implements its buffering). */ - *buffer = (FAR uint8_t *)kumalloc(buflen); + *buffer = (FAR uint8_t *)kumm_malloc(buflen); return *buffer ? OK : -ENOMEM; } diff --git a/arch/arm/src/sam34/sam_udp.c b/arch/arm/src/sam34/sam_udp.c index 4b30c4afd1..a502fb35b1 100644 --- a/arch/arm/src/sam34/sam_udp.c +++ b/arch/arm/src/sam34/sam_udp.c @@ -3035,7 +3035,7 @@ static void *sam_ep_allocbuffer(struct usbdev_ep_s *ep, uint16_t nbytes) { /* There is not special buffer allocation requirement */ - return kumalloc(nbytes); + return kumm_malloc(nbytes); } #endif diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c index f3e8e6887f..72dfd347a7 100755 --- a/arch/arm/src/sama5/sam_ehci.c +++ b/arch/arm/src/sama5/sam_ehci.c @@ -3613,7 +3613,7 @@ static int sam_free(FAR struct usbhost_driver_s *drvr, FAR uint8_t *buffer) * Some hardware supports special memory in which larger IO buffers can * be accessed more efficiently. This method provides a mechanism to allocate * the request/descriptor memory. If the underlying hardware does not support - * such "special" memory, this functions may simply map to kumalloc. + * such "special" memory, this functions may simply map to kumm_malloc. * * This interface differs from DRVR_ALLOC in that the buffers are variable-sized. * @@ -3642,7 +3642,7 @@ static int sam_ioalloc(FAR struct usbhost_driver_s *drvr, FAR uint8_t **buffer, * accessible (depending on how the class driver implements its buffering). */ - *buffer = (FAR uint8_t *)kumalloc(buflen); + *buffer = (FAR uint8_t *)kumm_malloc(buflen); return *buffer ? OK : -ENOMEM; } diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index f946fb138a..735d2c7b1e 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -2677,7 +2677,7 @@ static int sam_free(FAR struct usbhost_driver_s *drvr, FAR uint8_t *buffer) * Some hardware supports special memory in which larger IO buffers can * be accessed more efficiently. This method provides a mechanism to allocate * the request/descriptor memory. If the underlying hardware does not support - * such "special" memory, this functions may simply map to kumalloc. + * such "special" memory, this functions may simply map to kumm_malloc. * * This interface differs from DRVR_ALLOC in that the buffers are variable-sized. * @@ -2702,9 +2702,9 @@ static int sam_ioalloc(FAR struct usbhost_driver_s *drvr, FAR uint8_t **buffer, { DEBUGASSERT(drvr && buffer); - /* kumalloc() should return user accessible, DMA-able memory */ + /* kumm_malloc() should return user accessible, DMA-able memory */ - *buffer = kumalloc(buflen); + *buffer = kumm_malloc(buflen); return *buffer ? OK : -ENOMEM; } diff --git a/arch/arm/src/sama5/sam_udphs.c b/arch/arm/src/sama5/sam_udphs.c index cc6c86b1c2..afc38280c0 100644 --- a/arch/arm/src/sama5/sam_udphs.c +++ b/arch/arm/src/sama5/sam_udphs.c @@ -3524,7 +3524,7 @@ static void *sam_ep_allocbuffer(struct usbdev_ep_s *ep, uint16_t nbytes) { /* There is not special buffer allocation requirement */ - return kumalloc(nbytes); + return kumm_malloc(nbytes); } #endif diff --git a/arch/avr/src/avr/up_createstack.c b/arch/avr/src/avr/up_createstack.c index d14ec63fd2..4b7df816b5 100644 --- a/arch/avr/src/avr/up_createstack.c +++ b/arch/avr/src/avr/up_createstack.c @@ -121,9 +121,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif #ifdef CONFIG_DEBUG diff --git a/arch/avr/src/avr32/up_createstack.c b/arch/avr/src/avr32/up_createstack.c index 9082d796f5..10895e98f9 100644 --- a/arch/avr/src/avr32/up_createstack.c +++ b/arch/avr/src/avr32/up_createstack.c @@ -141,9 +141,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/hc/src/common/up_createstack.c b/arch/hc/src/common/up_createstack.c index ea542d9852..339ea3c77c 100644 --- a/arch/hc/src/common/up_createstack.c +++ b/arch/hc/src/common/up_createstack.c @@ -138,9 +138,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/mips/src/common/up_createstack.c b/arch/mips/src/common/up_createstack.c index 92b99842af..940071d18a 100644 --- a/arch/mips/src/common/up_createstack.c +++ b/arch/mips/src/common/up_createstack.c @@ -159,9 +159,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/rgmp/src/nuttx.c b/arch/rgmp/src/nuttx.c index 579acab15e..b2c1bd3e2a 100644 --- a/arch/rgmp/src/nuttx.c +++ b/arch/rgmp/src/nuttx.c @@ -134,7 +134,7 @@ int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype) } else #endif { - stack_alloc_ptr = (uint32_t*)kumalloc(adj_stack_size); + stack_alloc_ptr = (uint32_t*)kumm_malloc(adj_stack_size); } if (stack_alloc_ptr) { /* This is the address of the last word in the allocation */ diff --git a/arch/sh/src/common/up_createstack.c b/arch/sh/src/common/up_createstack.c index 03808f7655..04a0a44ec4 100644 --- a/arch/sh/src/common/up_createstack.c +++ b/arch/sh/src/common/up_createstack.c @@ -138,9 +138,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/sim/src/up_createstack.c b/arch/sim/src/up_createstack.c index 07a8efc15f..0587ae05e1 100644 --- a/arch/sim/src/up_createstack.c +++ b/arch/sim/src/up_createstack.c @@ -107,7 +107,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Allocate the memory for the stack */ - stack_alloc_ptr = (uint32_t*)kumalloc(adj_stack_size); + stack_alloc_ptr = (uint32_t*)kumm_malloc(adj_stack_size); /* Was the allocation successful? */ diff --git a/arch/x86/src/i486/up_createstack.c b/arch/x86/src/i486/up_createstack.c index 6b02e44642..4c915e6182 100644 --- a/arch/x86/src/i486/up_createstack.c +++ b/arch/x86/src/i486/up_createstack.c @@ -140,9 +140,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/arch/z16/src/common/up_createstack.c b/arch/z16/src/common/up_createstack.c index 5daf8cc761..42df4d0c2f 100644 --- a/arch/z16/src/common/up_createstack.c +++ b/arch/z16/src/common/up_createstack.c @@ -118,9 +118,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif #ifdef CONFIG_DEBUG diff --git a/arch/z80/src/common/up_createstack.c b/arch/z80/src/common/up_createstack.c index 1b75066733..05d42b3259 100644 --- a/arch/z80/src/common/up_createstack.c +++ b/arch/z80/src/common/up_createstack.c @@ -138,9 +138,9 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) /* Use the user-space allocator if this is a task or pthread */ #if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kuzalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); #else - tcb->stack_alloc_ptr = (uint32_t *)kumalloc(stack_size); + tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); #endif } diff --git a/audio/audio.c b/audio/audio.c index 252531677f..3f0c9ebfb1 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -530,7 +530,7 @@ static int audio_ioctl(FAR struct file *filep, int cmd, unsigned long arg) } else { - /* Perform a simple kumalloc operation assuming 1 session */ + /* Perform a simple kumm_malloc operation assuming 1 session */ ret = apb_alloc(bufdesc); } diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index b2109923cc..f15f63a887 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -949,7 +949,7 @@ static int pcm_resume(FAR struct audio_lowerhalf_s *dev) * lower-half driver with the opportunity to perform special buffer * allocation if needed, such as allocating from a specific memory * region (DMA-able, etc.). If not supplied, then the top-half - * driver will perform a standard kumalloc using normal user-space + * driver will perform a standard kumm_malloc using normal user-space * memory region. * ****************************************************************************/ diff --git a/binfmt/binfmt_execmodule.c b/binfmt/binfmt_execmodule.c index c9e16818e7..34e8f30ac8 100644 --- a/binfmt/binfmt_execmodule.c +++ b/binfmt/binfmt_execmodule.c @@ -166,7 +166,7 @@ int exec_module(FAR const struct binary_s *binp) #ifndef CONFIG_CUSTOM_STACK /* Allocate the stack for the new task (always from the user heap) */ - stack = (FAR uint32_t*)kumalloc(binp->stacksize); + stack = (FAR uint32_t*)kumm_malloc(binp->stacksize); if (!tcb) { err = ENOMEM; diff --git a/binfmt/libelf/libelf_addrenv.c b/binfmt/libelf/libelf_addrenv.c index 66479bf428..cdcc5b77f7 100644 --- a/binfmt/libelf/libelf_addrenv.c +++ b/binfmt/libelf/libelf_addrenv.c @@ -129,7 +129,7 @@ int elf_addrenv_alloc(FAR struct elf_loadinfo_s *loadinfo, size_t textsize, #else /* Allocate memory to hold the ELF image */ - loadinfo->textalloc = (uintptr_t)kuzalloc(textsize + datasize); + loadinfo->textalloc = (uintptr_t)kumm_zalloc(textsize + datasize); if (!loadinfo->textalloc) { return -ENOMEM; diff --git a/binfmt/libelf/libelf_ctors.c b/binfmt/libelf/libelf_ctors.c index 6cf35a62a4..89bd087c8c 100644 --- a/binfmt/libelf/libelf_ctors.c +++ b/binfmt/libelf/libelf_ctors.c @@ -163,7 +163,7 @@ int elf_loadctors(FAR struct elf_loadinfo_s *loadinfo) { /* Allocate memory to hold a copy of the .ctor section */ - loadinfo->ctoralloc = (binfmt_ctor_t*)kumalloc(ctorsize); + loadinfo->ctoralloc = (binfmt_ctor_t*)kumm_malloc(ctorsize); if (!loadinfo->ctoralloc) { bdbg("Failed to allocate memory for .ctors\n"); diff --git a/binfmt/libelf/libelf_dtors.c b/binfmt/libelf/libelf_dtors.c index e42ba6abff..e99c7cc9db 100644 --- a/binfmt/libelf/libelf_dtors.c +++ b/binfmt/libelf/libelf_dtors.c @@ -163,7 +163,7 @@ int elf_loaddtors(FAR struct elf_loadinfo_s *loadinfo) { /* Allocate memory to hold a copy of the .dtor section */ - loadinfo->ctoralloc = (binfmt_dtor_t*)kumalloc(dtorsize); + loadinfo->ctoralloc = (binfmt_dtor_t*)kumm_malloc(dtorsize); if (!loadinfo->ctoralloc) { bdbg("Failed to allocate memory for .dtors\n"); diff --git a/binfmt/libnxflat/libnxflat_addrenv.c b/binfmt/libnxflat/libnxflat_addrenv.c index 1690d0ae00..d5abc452d0 100644 --- a/binfmt/libnxflat/libnxflat_addrenv.c +++ b/binfmt/libnxflat/libnxflat_addrenv.c @@ -162,7 +162,7 @@ errout_with_dspace: #else /* Allocate (and zero) memory to hold the ELF image */ - dspace->region = (FAR uint8_t *)kuzalloc(envsize); + dspace->region = (FAR uint8_t *)kumm_zalloc(envsize); if (!dspace->region) { kfree(dspace); diff --git a/fs/fs_fdopen.c b/fs/fs_fdopen.c index 5356ae03d9..3a474717f4 100644 --- a/fs/fs_fdopen.c +++ b/fs/fs_fdopen.c @@ -228,7 +228,7 @@ FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR struct tcb_s *tcb) /* Allocate the IO buffer */ - stream->fs_bufstart = kumalloc(CONFIG_STDIO_BUFFER_SIZE); + stream->fs_bufstart = kumm_malloc(CONFIG_STDIO_BUFFER_SIZE); if (!stream->fs_bufstart) { err = ENOMEM; diff --git a/fs/fs_opendir.c b/fs/fs_opendir.c index a74c776d18..637b4253f9 100644 --- a/fs/fs_opendir.c +++ b/fs/fs_opendir.c @@ -180,7 +180,7 @@ static inline void open_emptydir(FAR struct fs_dirent_s *dir) * at the end of the list. */ -#if 0 /* Already nullified by kuzalloc */ +#if 0 /* Already nullified by kumm_zalloc */ dir->fd_root = NULL; /* Save the inode where we start */ dir->u.pseudo.fd_next = NULL; /* We are at the end of the list */ #endif @@ -270,7 +270,7 @@ FAR DIR *opendir(FAR const char *path) * container. */ - dir = (FAR struct fs_dirent_s *)kuzalloc(sizeof(struct fs_dirent_s)); + dir = (FAR struct fs_dirent_s *)kumm_zalloc(sizeof(struct fs_dirent_s)); if (!dir) { /* Insufficient memory to complete the operation.*/ diff --git a/fs/mmap/fs_rammap.c b/fs/mmap/fs_rammap.c index f0335f4a8d..04e08fb66b 100644 --- a/fs/mmap/fs_rammap.c +++ b/fs/mmap/fs_rammap.c @@ -139,7 +139,7 @@ FAR void *rammap(int fd, size_t length, off_t offset) /* Allocate a region of memory of the specified size */ - alloc = (FAR uint8_t *)kumalloc(sizeof(struct fs_rammap_s) + length); + alloc = (FAR uint8_t *)kumm_malloc(sizeof(struct fs_rammap_s) + length); if (!alloc) { fdbg("Region allocation failed, length: %d\n", (int)length); diff --git a/graphics/nxsu/nx_open.c b/graphics/nxsu/nx_open.c index 0de1159ae0..5da6b7ad85 100644 --- a/graphics/nxsu/nx_open.c +++ b/graphics/nxsu/nx_open.c @@ -199,7 +199,7 @@ NXHANDLE nx_open(FAR NX_DRIVERTYPE *dev) * (if available) for compatibility with the multi-user implementation. */ - fe = (FAR struct nxfe_state_s *)kuzalloc(sizeof(struct nxfe_state_s)); + fe = (FAR struct nxfe_state_s *)kumm_zalloc(sizeof(struct nxfe_state_s)); if (!fe) { errno = ENOMEM; diff --git a/graphics/nxsu/nx_openwindow.c b/graphics/nxsu/nx_openwindow.c index 4c4afa35b8..cc1f5d38f3 100644 --- a/graphics/nxsu/nx_openwindow.c +++ b/graphics/nxsu/nx_openwindow.c @@ -107,7 +107,7 @@ NXWINDOW nx_openwindow(NXHANDLE handle, FAR const struct nx_callback_s *cb, * available) for compatibility with the multi-user implementation. */ - wnd = (FAR struct nxbe_window_s *)kuzalloc(sizeof(struct nxbe_window_s)); + wnd = (FAR struct nxbe_window_s *)kumm_zalloc(sizeof(struct nxbe_window_s)); if (!wnd) { errno = ENOMEM; diff --git a/include/nuttx/audio/audio.h b/include/nuttx/audio/audio.h index 78fc1944e8..b1cfc9d0ae 100644 --- a/include/nuttx/audio/audio.h +++ b/include/nuttx/audio/audio.h @@ -532,7 +532,7 @@ struct audio_ops_s * lower-half driver with the opportunity to perform special buffer * allocation if needed, such as allocating from a specific memory * region (DMA-able, etc.). If not supplied, then the top-half - * driver will perform a standard kumalloc using normal user-space + * driver will perform a standard kumm_malloc using normal user-space * memory region. */ diff --git a/include/nuttx/kmalloc.h b/include/nuttx/kmalloc.h index 71b0db5f68..050200c8e1 100644 --- a/include/nuttx/kmalloc.h +++ b/include/nuttx/kmalloc.h @@ -94,8 +94,8 @@ extern "C" * directly callable. */ -# define kumalloc(s) malloc(s) -# define kuzalloc(s) zalloc(s) +# define kumm_malloc(s) malloc(s) +# define kumm_zalloc(s) zalloc(s) # define kumm_realloc(p,s) realloc(p,s) # define kumm_memalign(a,s) memalign(a,s) # define kumm_free(p) free(p) @@ -106,8 +106,8 @@ extern "C" * at the beginning of the user-space blob. */ -# define kumalloc(s) umm_malloc(s) -# define kuzalloc(s) umm_zalloc(s) +# define kumm_malloc(s) umm_malloc(s) +# define kumm_zalloc(s) umm_zalloc(s) # define kumm_realloc(p,s) umm_realloc(p,s) # define kumm_memalign(a,s) umm_memalign(a,s) # define kumm_free(p) umm_free(p) diff --git a/libc/lib_internal.h b/libc/lib_internal.h index 8a10a524ce..4a7a71e77d 100644 --- a/libc/lib_internal.h +++ b/libc/lib_internal.h @@ -94,8 +94,8 @@ /* User-accessible allocations */ -# define lib_umalloc(s) kumalloc(s) -# define lib_uzalloc(s) kuzalloc(s) +# define lib_umalloc(s) kumm_malloc(s) +# define lib_uzalloc(s) kumm_zalloc(s) # define lib_urealloc(p,s) kumm_realloc(p,s) # define lib_ufree(p) kumm_free(p) diff --git a/libnx/nxcontext.h b/libnx/nxcontext.h index f128a91734..43dee25936 100644 --- a/libnx/nxcontext.h +++ b/libnx/nxcontext.h @@ -76,8 +76,8 @@ /* User-accessible allocations */ -# define lib_umalloc(s) kumalloc(s) -# define lib_uzalloc(s) kuzalloc(s) +# define lib_umalloc(s) kumm_malloc(s) +# define lib_uzalloc(s) kumm_zalloc(s) # define lib_urealloc(p,s) kumm_realloc(p,s) # define lib_ufree(p) kumm_free(p) diff --git a/sched/environ/env_dup.c b/sched/environ/env_dup.c index 91dcaa1dca..90abc1c98f 100644 --- a/sched/environ/env_dup.c +++ b/sched/environ/env_dup.c @@ -101,7 +101,7 @@ int env_dup(FAR struct task_group_s *group) /* Yes..The parent task has an environment, duplicate it */ envlen = ptcb->group->tg_envsize; - envp = (FAR char *)kumalloc(envlen); + envp = (FAR char *)kumm_malloc(envlen); if (!envp) { ret = -ENOMEM; diff --git a/sched/environ/env_setenv.c b/sched/environ/env_setenv.c index 7a7259c519..92b118cfc8 100644 --- a/sched/environ/env_setenv.c +++ b/sched/environ/env_setenv.c @@ -173,7 +173,7 @@ int setenv(FAR const char *name, FAR const char *value, int overwrite) else { newsize = varlen; - newenvp = (FAR char *)kumalloc(varlen); + newenvp = (FAR char *)kumm_malloc(varlen); if (!newenvp) { ret = ENOMEM; diff --git a/sched/group/group_create.c b/sched/group/group_create.c index 1aaf6acba5..4e1867dfce 100644 --- a/sched/group/group_create.c +++ b/sched/group/group_create.c @@ -199,7 +199,7 @@ int group_allocate(FAR struct task_tcb_s *tcb) */ group->tg_streamlist = (FAR struct streamlist *) - kuzalloc(sizeof(struct streamlist)); + kumm_zalloc(sizeof(struct streamlist)); if (!group->tg_streamlist) {