> Is there any known library function/method in Solaris
> for polling/getting notifications whenever ANY USB
> device is connected to the system from userland ?
You can arrange for user level processes being started
when certain kernel events happen; have a look at
/etc/sysevent/config/README
A few years ago (when vold was used on Solaris instead of
hald) I created a new file of the form
/etc/sysevent/config/XXX,sysevent.conf
with contents:
EC_devfs ESC_devfs_devi_add SUNW ddi - - - /usr/local/etc/hotplug $vendor
$publisher $class $subclass ${di.path}
That started the script /usr/local/etc/hotplug
whenever a new device node was created,
which happens when you hotplug an
usb device.
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code