parameters for tsleep(9)

2004-12-24 Thread Norbert Koch
Hello. I am just writing a device driver for the i82527 (can-bus) chip. For testing I need the driver to poll the chip instead of running in interrupt mode. My dev_t read function basically looks like this: for (;;) { while (chip_has_data(...)) { read_chip_data(...); error = do_uiomo

Re: parameters for tsleep(9)

2004-12-26 Thread Roman Kurakin
Hi, 1) man tsleep 2) tsleep is just msleep with NULL mutex. if you check sys/kern/kern_synch.c you will see KASSERT (ident != NULL && ... ident is exactly the first parameter. rik Norbert Koch: Hello. I am just writing a device driver for the i82527 (can-bus) chip. For testing I need the driver to

Re: parameters for tsleep(9)

2004-12-27 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Roman Kurakin <[EMAIL PROTECTED]> writes: : >I am just writing a device driver for the i82527 (can-bus) chip. : >For testing I need the driver to poll the chip instead of running : >in interrupt mode. There's a canbus implementation in the pc98 specific

Re: parameters for tsleep(9)

2004-12-28 Thread Takahashi Yoshihiro
In article <[EMAIL PROTECTED]> "M. Warner Losh" <[EMAIL PROTECTED]> writes: > In message: <[EMAIL PROTECTED]> > Roman Kurakin <[EMAIL PROTECTED]> writes: > : >I am just writing a device driver for the i82527 (can-bus) chip. > : >For testing I need the driver to poll the chip instead of