Ludovic Rousseau wrote:
<SNIP>
The default value of USB_DEVFS_PATH is /dev/bus/usb but that does not
work with udev hotplug feature. It looks like the USB devices appear
in "/proc/bus/usb" before they are also available in "/dev/bus/usb".
Read the thread [1] for more info.
Using "/proc/bus/usb" may not be a so good idea :-(
Bye,
[1]
http://www.opensc-project.org/pipermail/opensc-devel/2006-October/009073.html
Ludovic,
have you looked at the inotify[1] infrastructure?
On an embedded system (storage space limited) I am working with, we are
looking at using inotify instead of hal+dbus. My current experience with it
seems like it might help you, because it notifies you AFTER something is
created in the directory, i.e., if I am watching /dev and someone inserts a
USB stick I get a notification that "something" happened on USB and then after
UDEV creates sda I get a notification that sda was created (watching for
create events in /dev).
granted that may mean one more dependency that pcscd has, but at least it
seems small now.
[1] http://en.wikipedia.org/wiki/Inotify
[2] http://inotify-tools.sourceforge.net/
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle