Subject: usb device polling
To: None <tech-kern@NetBSD.org>
From: Jukka Marin <firstname.lastname@example.org>
Date: 04/12/2005 18:38:23
I wanted to write a small program to lauch pilot-xfer whenever I press
the hotsync button of my Treo. The program kept trying to open()
/dev/ttyU0 to see when Treo is ready. It worked - but then pilot-xfer
can no longer talk to the Treo (it seems the open() causes this).
How can I poll for the USB device to appear without doing an open()?
I could parse the syslog output but that sounds even more kludgy...