All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Execution error with rtdm heartbeat example
@ 2007-04-13 20:17 Jean-Luc Pamart
  2007-04-13 21:42 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Luc Pamart @ 2007-04-13 20:17 UTC (permalink / raw)
  To: xenomai

Hello

I  try to execute the heartbeat example (xenomai 2.3 with kernel 2.6.19)
With the unmodified sources when the heartbeat module
is being unloaded (rmmod)  I obtain :

atkbd.c: Spurious ACK on isa0060/serio0. Some program might be trying 
access hardware directly.  

and the unloading can't be finished.

I try to slightly change the sources. It works with no bad kernel 
message and
complete unloaded with this modification :

void heartbeat(void *cookie)
{
       
        while (!end) {
              ...
        }
    set_leds(0);
    
}
void cleanup_module(void)
{
    //  set_leds(0);
}  

My interpretation :
In the non modified example, We try to access directly to the keyboard
after the end of the rt-driver(after  
rtdm_task_join_nrt(&heartbeat_task, 100);)
So it is a problem for the kernel.

Is it a good interpretation ?
 
what is the difference between rtdm_task_join_nrt(&heartbeat_task, 100) and
 rtdm_task_destroy(&heartbeat_task) ?
What is the role of the polling argument (value 100) ?


best regards


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

end of thread, other threads:[~2007-04-17  9:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13 20:17 [Xenomai-help] Execution error with rtdm heartbeat example Jean-Luc Pamart
2007-04-13 21:42 ` Jan Kiszka
2007-04-14 13:51   ` Jean-Luc Pamart
2007-04-15 12:54     ` Jan Kiszka
2007-04-17  6:44       ` Jean-Luc Pamart
2007-04-17  9:19         ` Jan Kiszka

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.