public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A problem with ktimer
@ 2005-11-17 15:39 Claudio Scordino
  2005-11-17 17:28 ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Scordino @ 2005-11-17 15:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernelnewbies

Hi,

   I know that ktimer is not yet part of the main tree of the Linux kernel.

However, maybe someone can help me to understand why the following code in a 
module makes crash my x86_64.

Many thanks,

             Claudio



struct ktimer mytimer;

void myfunction()
{
        int i;
}


static int module_insert(void)
{
   ktime_t mytime = ktime_set(1,0);
   mytimer.function = myfunction;
   mytimer.data = NULL;
   ktimer_init(&mytimer);
   ktimer_start(&mytimer, &mytime, KTIMER_REL);
   //...
}

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

end of thread, other threads:[~2006-01-17  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 15:39 A problem with ktimer Claudio Scordino
2005-11-17 17:28 ` Steven Rostedt
2006-01-16 14:45   ` ktimer not firing ? Claudio Scordino
2006-01-17  8:04     ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox