Module: xenomai-3 Branch: next Commit: c5a02a6d95f47aa62792eee81bdb45ac6576a8b7 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c5a02a6d95f47aa62792eee81bdb45ac6576a8b7
Author: Philippe Gerum <r...@xenomai.org> Date: Sun Feb 28 08:16:18 2016 +0100 cobalt/posix/mqueue: get buffer memory from vmalloc() --- kernel/cobalt/posix/mqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cobalt/posix/mqueue.c b/kernel/cobalt/posix/mqueue.c index 5ffa5f9..0f5e19e 100644 --- a/kernel/cobalt/posix/mqueue.c +++ b/kernel/cobalt/posix/mqueue.c @@ -126,7 +126,7 @@ static inline int mq_init(struct cobalt_mq *mq, const struct mq_attr *attr) if (get_order(memsize) > MAX_ORDER) return -ENOSPC; - mem = alloc_pages_exact(memsize, GFP_KERNEL); + mem = xnheap_vmalloc(memsize); if (mem == NULL) return -ENOSPC; @@ -167,7 +167,7 @@ static inline void mq_destroy(struct cobalt_mq *mq) xnselect_destroy(&mq->read_select); xnselect_destroy(&mq->write_select); xnregistry_remove(mq->handle); - free_pages_exact(mq->mem, mq->memsize); + xnheap_vfree(mq->mem); kfree(mq); if (resched) _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://xenomai.org/mailman/listinfo/xenomai-git