All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Problems with Threads and RTnet
@ 2008-06-25 15:49 Karl Reichert
  2008-06-25 15:56 ` Gilles Chanteperdrix
  2008-06-26  4:01 ` [Xenomai-help] how to make my own application in Xenomai indra sakti
  0 siblings, 2 replies; 4+ messages in thread
From: Karl Reichert @ 2008-06-25 15:49 UTC (permalink / raw)
  To: xenomai; +Cc: RTnet-users

Hello list,

I have some problems with RTnet and threads. I create two thread via rt_task_spawn(), one is sending and one is receiving (non-blocking) frames over rtnet.

Each task is existed with return (I also tried rt_task_delete()) and the main-function is waiting for task-termination via rt_task_join().

When I run this program the first time, everything is fine. When I run it a second time without rebooting, I can't receive any more frames (returnvalue -1).

So it seems that the termination of the tasks and the main-function from the first run failed to free the "RTnet resources", too.

Any idea, what I'am doing wrong?

Thanks in advance
(... and good luck to the german team, for all the soccer fans out there)
Karl
-- 
von Karl Reichert



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] Problems with Threads and RTnet
  2008-06-25 15:49 [Xenomai-help] Problems with Threads and RTnet Karl Reichert
@ 2008-06-25 15:56 ` Gilles Chanteperdrix
  2008-06-26  4:01 ` [Xenomai-help] how to make my own application in Xenomai indra sakti
  1 sibling, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-25 15:56 UTC (permalink / raw)
  To: Karl Reichert; +Cc: xenomai

Karl Reichert wrote:
> Hello list,
> 
> I have some problems with RTnet and threads. I create two thread via rt_task_spawn(), one is sending and one is receiving (non-blocking) frames over rtnet.
> 
> Each task is existed with return (I also tried rt_task_delete()) and the main-function is waiting for task-termination via rt_task_join().
> 
> When I run this program the first time, everything is fine. When I run it a second time without rebooting, I can't receive any more frames (returnvalue -1).
> 
> So it seems that the termination of the tasks and the main-function from the first run failed to free the "RTnet resources", too.
> 
> Any idea, what I'am doing wrong?

What version of Xenomai are you running ? Do not you get error messages 
in the console ?

-- 
                                                  Gilles.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Xenomai-help] how to make my own application in Xenomai
  2008-06-25 15:49 [Xenomai-help] Problems with Threads and RTnet Karl Reichert
  2008-06-25 15:56 ` Gilles Chanteperdrix
@ 2008-06-26  4:01 ` indra sakti
  2008-06-26  6:41   ` Gilles Chanteperdrix
  1 sibling, 1 reply; 4+ messages in thread
From: indra sakti @ 2008-06-26  4:01 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

Hello..

I'm a newbie using xenomai domain, and i still don't understand how to write an application in user-space so that xenomai domain recognize it. Do we should use xenomai library and makefile like in the example folder? Can someone explain me?

Sorry, i'm not really experienced in linux kernel and anything about it.. 

Thanx..



--Indra--






      

[-- Attachment #2: Type: text/html, Size: 518 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] how to make my own application in Xenomai
  2008-06-26  4:01 ` [Xenomai-help] how to make my own application in Xenomai indra sakti
@ 2008-06-26  6:41   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-26  6:41 UTC (permalink / raw)
  To: sakti7387; +Cc: xenomai

indra sakti wrote:
> Hello..
> 
> I'm a newbie using xenomai domain, and i still don't understand how
> to write an application in user-space so that xenomai domain
> recognize it. Do we should use xenomai library and makefile like in
> the example folder? Can someone explain me?

For examples using the native API, please read:
http://www.xenomai.org/documentation/branches/v2.3.x/pdf/Native-API-Tour-rev-C.pdf

For the posix skin, see doc/txt/pse51-skin.txt.

> Sorry, i'm not really experienced in linux kernel and anything about
> it..

You should spend your time reading documentations before your start
asking questions on mailing lists, then.

-- 


					    Gilles.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-26  6:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 15:49 [Xenomai-help] Problems with Threads and RTnet Karl Reichert
2008-06-25 15:56 ` Gilles Chanteperdrix
2008-06-26  4:01 ` [Xenomai-help] how to make my own application in Xenomai indra sakti
2008-06-26  6:41   ` 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.