>  --- rt_shm.c - kernel module ---
>  RT_TASK rt_shm_task;
>  RT_HEAP heap_desc;
>  void *shared_mem;
>  [..]
>   if (!rt_heap_create (&heap_desc, "MainSHM", 1024, H_SHARED)) {
>     printk ("Error rt_heap_create");
>   }

This is wrong. rt_heap_create returns 0 when it works and non zero
when it fails. So, if you do not see the "Error rt_heap_create"
message in the console, rt_heap_create actually fails.  rt_heap_create
error codes are documented here:

http://www.xenomai.org/documentation/trunk/html/api/group__native__heap.html#g1d19ad24dc9f94b969aa0f574170bdc4

-- 
 Gilles

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to