summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
commitf8d20db23e41f2cb8f1e99f8f4f7965c215c9677 (patch)
tree45c7a57c201427409d0f4b78c803d6e240f79f43 /nuttx/sched
parent306de6c62392400107ea8a9d6e3aa13dd202b742 (diff)
downloadpx4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.gz
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.bz2
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.zip
Reanem kzalloc to kmm_zalloc for consistency
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/group/group_create.c2
-rw-r--r--nuttx/sched/mqueue/mq_open.c2
-rw-r--r--nuttx/sched/pthread/pthread_create.c4
-rw-r--r--nuttx/sched/task/task_create.c2
-rw-r--r--nuttx/sched/task/task_vfork.c2
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");