On Tue, Nov 08, 2005 at 05:23:34PM -0500, Simon Perreault wrote: > Hi, > > I'm about to write a function that will react to the press of the webcam > button. I will do it by polling the sysfs file. However, polling is evil and > I was wondering if there was a way to not use polling, ie. being woken up > when the button is pressed. I think it's possible, i need to check if the sysfs interface support all interface available by open(2). If you don't specify the O_NONBLOCK, the driver until a event, if you specify O_NONBLOCK, i just return the current state. What do you think ?
Luc _______________________________________________ pwc mailing list [email protected] http://lists.saillard.org/mailman/listinfo/pwc
