lkml.org 
[lkml]   [1996]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSleeping

I haven't been able to find this anywhere, but I need to know what a good
way to sleep within a kernel module is. I found something called
lcdpanel-0.50.tar.gz on sunsite and have made the LCD device and compiled
the module, but I noticed that the module uses for (t=0; t <3000; t++) ;
for sleeping which is not a good way to wait in the kernel, so I'd like
to replace it. I tried usleep but that's a lib function so is unsuitable.
The function is called thusly,

static int lcd_write (struct inode *inode, struct file *file, const char
*buf, int count)


Colten Edwards


\
 
 \ /
  Last update: 2005-03-22 13:38    [from the cache]
©2003-2011 Jasper Spaans