pwc
[Top] [All Lists]

Re: [pwc] Handling webcam button event

To: Philips Webcam Linux Driver <>
Subject: Re: [pwc] Handling webcam button event
From: Luc Saillard <>
Date: Wed, 9 Nov 2005 09:46:01 +0100
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

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU