[Nut-upsdev] drivers- dynamically adding filedescriptors to poll

Charles Lepple clepple at gmail.com
Tue Nov 17 02:39:22 UTC 2009


On Nov 14, 2009, at 6:48 AM, Arjen de Korte wrote:

> Recent work on the netxml-ups driver made me realize that it would  
> be very useful to be able to dynamically add/remove file descriptors  
> we want to monitor for activity (instead of just a single extrafd).  
> We'll probably also need this, in order to support asynchronous I/O  
> in libusb-1.0. The latter would be a huge improvement over the  
> existing libusb-0.1 (compatibility) interface we're using right now.

No objections here.

Since the libusb-1.0 implementation was fairly Linux-centric to start  
with, I presume we will have a long time before all platforms support  
it as well as libusb-0.1 -- but if you need the extra file descriptors  
for other drivers, I don't see a reason not to add that support.



More information about the Nut-upsdev mailing list