Sleeping

Colten Edwards (edwards@panasync.canuck.ca)
Fri, 6 Sep 1996 13:20:33 -0600 (CST)


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