On Tue, Jan 04, 2005 at 06:34:44 -0000, bunty wrote: > > hello all, > I require a schedule_timeout function statement to have > kernel module sleep for 5 minutes. I require to call > a function from kernel module from interval of 5 minutes. Module is not a schedulable entity. It does not make sense to talk about kernel module sleeping. > For that i have written simple kernel module that should > print string in function and that function be called in > a interval of 1 minute but its printing continually without > sleeping. Who told you that 60000 jiffies is 1 minute?? 60000 jiffis is hell-knows-how-long. > [code snapped] > printk(KERN_DEBUG "buffer in file_reader is =%s\n",buffer1); Just as a side note, do you know, that reading files in kernel is forbidden? No, it's not impossible, but it's a REALLY bad idea in almost all cases. > [code snapped] ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature