deprecate confusing "physical" and "bus" properties

David Zeuthen david at fubar.dk
Tue Feb 6 19:33:16 PST 2007


Hey Kay, ( <-- that rhymes!)

On Fri, 2007-02-02 at 14:03 +0100, Kay Sievers wrote:
> [I sent it to the list, but it didn't go through, it seems]
> 
> Current systems make it almost impossible to distinguish between
> "virtual" and "physical" devices. Current HAL, just like the Linux
> kernel, tries to export such properties - which in reality, is almost
> impossible to get right. The growing use of virtualization will just
> make it even more incorrect.
> HAL also carries, just like the Linux kernel, completely misleading bus
> names like: platform-bus, xen-bus, usb_device-bus, ... Most of these
> subsystems are no bus at all, and will never be one.
> 
> The bus/physical/virtual scheme was mostly inherited by the
> design-mistakes of the Linux kernel's sysfs. We currently try to fix the
> kernel, and if all that goes well, even the kernel will stop to try to
> export what device is "real" or "virtual". At this point it would not
> even possible for HAL to determine such a property from the system.
> 
> The attached patch renames:
>   info.bus          -> info.subsystem
>   *.physical_device -> *.originating_device
> 
> The old values are deprecated, but still available and kept as long as
> needed, but will be removed some day.

Sounds good to me, please commit. Can you also do a patch for hal-info?
Thanks!

     David




More information about the hal mailing list