* [Xenomai] System hangs
@ 2014-06-05 8:42 yogesh garg
2014-06-05 11:14 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: yogesh garg @ 2014-06-05 8:42 UTC (permalink / raw)
To: xenomai
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.
--
Regards,
Yogesh Garg
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai] System hangs
2014-06-05 8:42 [Xenomai] System hangs yogesh garg
@ 2014-06-05 11:14 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2014-06-05 11:14 UTC (permalink / raw)
To: yogesh garg, xenomai
On 06/05/2014 10:42 AM, yogesh garg wrote:
> 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.
What version of Xenomai, what architecture ?
>
> something like
We do not need "something like", we need a self contained example that
we can run to reproduce the issue you have.
Also note that using skins in kernel-space has been deprecated for a
long time now.
--
Gilles.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-05 11:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05 8:42 [Xenomai] System hangs yogesh garg
2014-06-05 11:14 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.