On Tue, 30 May 2000, Johannes Erdfelt wrote:

>On Tue, May 30, 2000, Daniel Streetman <[EMAIL PROTECTED]> wrote:
>> On Tue, 30 May 2000, Johannes Erdfelt wrote:
>> 
>> > On Tue, May 30, 2000, Thomas Sailer <[EMAIL PROTECTED]> wrote:
>> > > Daniel Streetman wrote:
>> > > 
>> > > > I'm assuming the 'devices' file is intended for users, not programs.
>> > > 
>> > > Wrong assumption 8-) The file is also intended to be machine
>> > > parseable.
>> > > 
>> > > That's how lsusb -t gets the topology, I suggest looking at it
>> > > (usb.in.tum.de, CVS module usbutils).
>> > 
>> > Ugh, before anyone starts, please don't bring the binary vs machine
>> > parsable ASCII war onto linux-usb. Leave it on linux-kernel please.
>> 
>> Yes, ugh.  My concern was not a binary vs ASCII issue, I just didn't want
>> to read the entire 'devices' file on every connect/disconnect.
>
>Just as an aside (which you may or may not know), you can poll or select
>on the 'devices' file to be notified when something changes. It doesn't
>tell you what changed tho.
>

Yes, I am doing this (polling).  I notice while polling I get intermittent
wakeups with a mask of 0x0 (which I ignore...) while real 
connect/disconnects are POLLIN.



-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to