diff options
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/group/group_create.c | 2 | ||||
-rw-r--r-- | nuttx/sched/mqueue/mq_open.c | 2 | ||||
-rw-r--r-- | nuttx/sched/pthread/pthread_create.c | 4 | ||||
-rw-r--r-- | nuttx/sched/task/task_create.c | 2 | ||||
-rw-r--r-- | nuttx/sched/task/task_vfork.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/sched/group/group_create.c b/nuttx/sched/group/group_create.c index 5635cdc0b..2f41cab05 100644 --- a/nuttx/sched/group/group_create.c +++ b/nuttx/sched/group/group_create.c @@ -184,7 +184,7 @@ int group_allocate(FAR struct task_tcb_s *tcb) /* Allocate the group structure and assign it to the TCB */ - group = (FAR struct task_group_s *)kzalloc(sizeof(struct task_group_s)); + group = (FAR struct task_group_s *)kmm_zalloc(sizeof(struct task_group_s)); if (!group) { return -ENOMEM; diff --git a/nuttx/sched/mqueue/mq_open.c b/nuttx/sched/mqueue/mq_open.c index c7de6c745..db1012788 100644 --- a/nuttx/sched/mqueue/mq_open.c +++ b/nuttx/sched/mqueue/mq_open.c @@ -156,7 +156,7 @@ mqd_t mq_open(const char *mq_name, int oflags, ...) * of the message queue name+1. */ - msgq = (FAR msgq_t*)kzalloc(SIZEOF_MQ_HEADER + namelen + 1); + msgq = (FAR msgq_t*)kmm_zalloc(SIZEOF_MQ_HEADER + namelen + 1); if (msgq) { /* Create a message queue descriptor for the TCB */ diff --git a/nuttx/sched/pthread/pthread_create.c b/nuttx/sched/pthread/pthread_create.c index 036818a53..d777d0cc8 100644 --- a/nuttx/sched/pthread/pthread_create.c +++ b/nuttx/sched/pthread/pthread_create.c @@ -247,7 +247,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, /* Allocate a TCB for the new task. */ - ptcb = (FAR struct pthread_tcb_s *)kzalloc(sizeof(struct pthread_tcb_s)); + ptcb = (FAR struct pthread_tcb_s *)kmm_zalloc(sizeof(struct pthread_tcb_s)); if (!ptcb) { sdbg("ERROR: Failed to allocate TCB\n"); @@ -281,7 +281,7 @@ int pthread_create(FAR pthread_t *thread, FAR pthread_attr_t *attr, /* Allocate a detachable structure to support pthread_join logic */ - pjoin = (FAR struct join_s*)kzalloc(sizeof(struct join_s)); + pjoin = (FAR struct join_s*)kmm_zalloc(sizeof(struct join_s)); if (!pjoin) { sdbg("ERROR: Failed to allocate join\n"); diff --git a/nuttx/sched/task/task_create.c b/nuttx/sched/task/task_create.c index 6289085fa..ca0ed892f 100644 --- a/nuttx/sched/task/task_create.c +++ b/nuttx/sched/task/task_create.c @@ -115,7 +115,7 @@ static int thread_create(FAR const char *name, uint8_t ttype, int priority, /* Allocate a TCB for the new task. */ - tcb = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s)); + tcb = (FAR struct task_tcb_s *)kmm_zalloc(sizeof(struct task_tcb_s)); if (!tcb) { sdbg("ERROR: Failed to allocate TCB\n"); diff --git a/nuttx/sched/task/task_vfork.c b/nuttx/sched/task/task_vfork.c index 35f464a21..6b073b421 100644 --- a/nuttx/sched/task/task_vfork.c +++ b/nuttx/sched/task/task_vfork.c @@ -136,7 +136,7 @@ FAR struct task_tcb_s *task_vforksetup(start_t retaddr) /* Allocate a TCB for the child task. */ - child = (FAR struct task_tcb_s *)kzalloc(sizeof(struct task_tcb_s)); + child = (FAR struct task_tcb_s *)kmm_zalloc(sizeof(struct task_tcb_s)); if (!child) { sdbg("ERROR: Failed to allocate TCB\n"); |