As almost no one noticed, I changed the environment variables that
/sbin/hotplug is called with in 2.5.40 :)

This is what has changed from the previously documented info at
http://linux-hotplug.sourceforge.net/?selected=usb

For USB devices, /sbin/hotplug is called for the main device, and every
interface.  For the interfaces, the info in the above link is still set.
Previously, /sbin/hotplug only got called once, and we only sent the
first interface's information.  We should now be able to handle compound
devices much easier.

For the USB device (not the interface), the only environment variable
is:
        DEVICE = <place in driverfs tree for the device>
For the interface, it's the same as it used to be.

This variable is also set for every other /sbin/hotplug call that
happens (which is now for every type of device in the kernel, not just
the types we used to have.)

Now I know this overloads the existing DEVICE usage for USB devices, but
I think we can determine what do properly (basically just test for
DEVFS, and if it's not set, then we are looking at the driverfs entry
for the device.)

I also created a lot of individual driverfs files for the USB device,
basically everything that used to be specified by a environment variable
in the call to /sbin/hotplug, is now a value in a file.  So ideally, we
can get rid of those other variables for the USB call, and just rely on
the info present in driverfs.

I'll be doing the same thing for PCI devices to try to get rid of their
extra variables.

Does this all sound ok?  Problematic?  Even make any sense?

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to