Hi,
    I tried the linux-hotplugging mailing list with this question but
no one responded :( I am posting here hoping people working on USB
would have definetly touched hotplugging.

    I am a newbie for hotplugging (been a user for a while but started
a week back to try and understand what is happening underneath). I
have seen messages from Greg that hotplug-ng will continue to exist in
parallel with the udev-netlink approach. Are there any specific
differences in both the approaches?

Also in the /sbin/hotplug approach, the hotplug script gets executed
and it will execute hotplug.functions followed by the .agent script of
the respective sub system. If I take the example of USB, is the action
of loading the respective module for the device attached taken care by
usb.agent script? Also can I start my own application depending on if
the device is attached(ACTION == add) from usb.agent script?

In the case of udevd approach(netlink-udevd), I have seen the rules
file under /etc/udev/rules.d which define which specify the name of
the device file/symlink to be created along with which user program to
run when the device is detected. But for the udevd approach where are
the modules loaded for the device also how can I differentiate between
attach/detach in udevd approach? Will the udevd approach still be able
to execute the usb.agent script?

In the case of the udevd approach  since udevd is a user level daemon,
I can visualize information passing through netlink sockets from
kernel to udevd and then udevd acting on the information. How is this
done in the case of /sbin/hotplug? How is the hotplug program/script
invoked?

--
Regards,
Meher

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to