[Mageia-dev] dropping /proc/bus/sub (Re: [changelog] [RPM] cauldron core/release systemd-189-2.mga3)

Thierry Vignaud thierry.vignaud at gmail.com
Wed Aug 29 16:16:00 CEST 2012


On 29 August 2012 16:15, Thierry Vignaud <thierry.vignaud at gmail.com> wrote:
>>>> Yeah because we're now on kernel 3.5 we can no longer do certain things
>>>> relating to this mount point.
>>>>
>>>> IIRC some ldetect stuff used it and some of the 3G and/or
>>>> printer/scanner stuff might also depend on it and need to be migrated
>>>> too. I don't know that code very well, but I know some folks complained
>>>> when we stopped mounting it by default, so I've no doubt that it's use
>>>> is lurking somewhere!
>>>>
>>>> I would guess that in some cases /dev/bus/usb/ might be sufficient for
>>>> what is needed.
>>>
>>> Humm...
>>> I've still around a patch making ldetect using libusb.
>>> Sadly, we're missing some data...
>>> Basically we would miss the kernel driver name binded with each usb device.
>>>
>>> We cannot workaround it since libusb misses with the ability to either
>>> query the sysfs device path or to got the Port number
>>> ("Port" in /proc/bus/usb/devices).
>>> (I miss the Port number in order to compute the
>>> /sys/bus/devices/usb/foobar path)
>>>
>>> W/o that I cannot retrieve the modalias which would help me to get the kernel
>>> driver name.
>>>
>>> I guess I'll have to resurect that work and try harder to find some
>>> workaround...
>>
>> Why not using sysfs for everything directly?
>
> Why not.
> It's just sad to have everyone parse it instead if having a common library
> exporting the needed data.

See also http://sourceforge.net/apps/trac/libusbx/ticket/24


More information about the Mageia-dev mailing list