[Xenomai] System hangs

yogesh garg yogesh.garg1983 at gmail.com
Thu Jun 5 10:42:04 CEST 2014

Hi Everyone,
I am using rt_heap_create() in my init_module(). rt_heap_create is
returning 0(success).
But after this API my system gets hang.

something like
#include <native/heap.h>
RT_HEAP heap_desc;
int init_module (void)
   int ret;

    ret = rt_heap_create (&heap_desc, "MyHeap", 4*1024, H_SINGLE | H_FIFO);
    if (ret) {
        printk ("MY_MODULE: Error rt_heap_create: %d\n", ret);
    printk ("MY_MODULE: heap memory created, name: MyHeap\n");
    return ret;

when I am running insmod command to insert it dmesg prints
"MY_MODULE: heap memory created, name: MyHeap"
but system hangs after that.

Please someone suggest me what could be the problem.
Yogesh Garg

More information about the Xenomai mailing list