Re: Select with device and stdin not working

From: M. Tavasti (tawz@nic.fi)
Date: Thu Jul 26 2001 - 08:20:31 EST


"M. Tavasti" <tawz@nic.fi> writes:

> randomly makes select return. When looking from random.c, in 2.2.19
> poll_wait is called once, like this:
>
> poll_wait(file, &random_poll_wait, wait);
>
> And in 2.4.5:
>
> poll_wait(file, &random_read_wait, wait);
> poll_wait(file, &random_write_wait, wait);
>
>
> I think I got idea how to do it right, make one wait queue for poll,
> which is woken up when read OR write queue is woken up.

After testing with my own driver, using just one poll_wait doesn't
make difference in 2.4.5.

-- 
M. Tavasti /  tavastixx@iki.fi  /   +358-40-5078254
 Poista sähköpostiosoitteesta molemmat x-kirjaimet 
     Remove x-letters from my e-mail address
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:27 EST