All of lore.kernel.org
 help / color / mirror / Atom feed
* Two questions regarding evdev
@ 2010-03-24 20:53 David Härdeman
  2010-03-24 21:41 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: David Härdeman @ 2010-03-24 20:53 UTC (permalink / raw)
  To: linux-input; +Cc: dmitry.torokhov

I've been going over the evdev (drivers/input/evdev.c) code since I'm 
using it as inspiration for a small project I'm hacking on. So far I 
have two questions with regard to the code:

First, evdev_event passes a new event to all connected clients (writing 
it to each client's event fifo) and then calls wake_up_interruptible.  
However, given that all clients will have at least one new event to read 
after evdev_event is done, shouldn't wake_up_interruptible_all be called 
instead?

Second, evdev_poll never sets the POLLOUT flag, but evdev can accept 
writes (which will be passed to input_inject_event), so shouldn't the 
POLLOUT flag always be set?

Regards,
David


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-24 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 20:53 Two questions regarding evdev David Härdeman
2010-03-24 21:41 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.