* [Xenomai-help] pthread_cond_init() returns ENOMEM
@ 2009-02-02 22:56 Mike McTernan
2009-02-03 13:23 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Mike McTernan @ 2009-02-02 22:56 UTC (permalink / raw)
To: xenomai
Hi,
I'm trying to port a large complex app to Xenomai using the POSIX skin,
and so far so good!
But I've found pthread_cond_init() it reporting ENOMEM to a userspace
app. Looking back up the sources I think this maybe because
xnheap_alloc() is exhausted in the kernel.
I'm using the Xenomai VMware image from
http://www.cs.ru.nl/lab/xenomai/, it's version 2.4.3. Do I need to
update, or is there a way I can increase the heap?
I can't see how to do it from the docs, please point me in the right
direction.
Kind Regards,
Mike
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] pthread_cond_init() returns ENOMEM
2009-02-02 22:56 [Xenomai-help] pthread_cond_init() returns ENOMEM Mike McTernan
@ 2009-02-03 13:23 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2009-02-03 13:23 UTC (permalink / raw)
To: Mike McTernan; +Cc: xenomai
Mike McTernan wrote:
> Hi,
>
> I'm trying to port a large complex app to Xenomai using the POSIX skin,
> and so far so good!
>
> But I've found pthread_cond_init() it reporting ENOMEM to a userspace
> app. Looking back up the sources I think this maybe because
> xnheap_alloc() is exhausted in the kernel.
>
> I'm using the Xenomai VMware image from
> http://www.cs.ru.nl/lab/xenomai/, it's version 2.4.3. Do I need to
> update, or is there a way I can increase the heap?
>
You should update it at some point, since we fixed significant bugs since then.
But you don't need this to increase the heap.
> I can't see how to do it from the docs, please point me in the right
> direction.
>
Check XENO_OPT_SYS_HEAPSZ in the Xenomai nucleus menu (Kconfig).
> Kind Regards,
>
> Mike
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-03 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 22:56 [Xenomai-help] pthread_cond_init() returns ENOMEM Mike McTernan
2009-02-03 13:23 ` Philippe Gerum
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.