Features/SystemdHardwareDatabase

From FedoraProject

< Features(Difference between revisions)
Jump to: navigation, search
(Moved to FeatureReadyForFesco for approval (#1072))
(Feature accepted on Feb 06 FESCo meeting (conditional on notting's concerns about how we ship the data being addressed))
 
Line 45: Line 45:
 
* See [[Talk:Features/SystemdHardwareDatabase]]
 
* See [[Talk:Features/SystemdHardwareDatabase]]
  
[[Category:FeatureReadyForFesco]]
+
[[Category::FeatureAcceptedF19]]

Latest revision as of 14:37, 8 February 2013

Contents

[edit] systemd/udev Hardware Database

[edit] Summary

The udevd service has a long history of managing kernel devices. Besides generating events when devices are discovered or removed it maintains a dynamic, stateless database of all available devices including meta data about them. With Fedora 19 we want to substantially enhance the metadata that udev keeps for each device, by augmenting it from a userspace database of non-essential information, that is indexed by device identification data such as PCI/USB vendor/product IDs.

[edit] Owner

[edit] Current status

  • Targeted release: Fedora 19
  • Last updated: 2012-01-17
  • Percentage of completion: 100%

[edit] Detailed Description

The idea is to centralize a lot of static metadata that is currently kept in the PCI, USB, ACPI, Bluetooth, OUI vendor/product string lists in a indexed database and then attach it directly to the devices as they are probed. The lookup key is the "modalias" string exposed by devices, which is also used to find the right kernel modules for a device. The device meta data is kept in an indexed, binary database so that looking up this data is substantially faster than it used to be. In the longer run, this binary database shall also include other non-essential meta data about devices, for example information about the type of USB disks (i.e. is this USB mass storage device an SD reader?) and suchlike.

[edit] Benefit to Fedora

Applications can use this useful meta data simply by querying the udev properties.

Device probing gets a bit faster since we can look up a lot of data in an indexed database now, rather than having to match it individually with udev rules.

[edit] Scope

Only needs changes in systemd upstream.

[edit] How To Test

Play around with "udevadm hwdb". For more information, see the man page.

[edit] User Experience

This is not visible to the user.

[edit] Dependencies

Nothing.

[edit] Contingency Plan

Nothing.

[edit] Documentation

Not yet.

[edit] Release Notes

It should be enough to just announce availability of this feature, plus a paste from the Summary section of this feature page, plus maybe a reference to the the docs for this.

[edit] Comments and Discussion

[[Category::FeatureAcceptedF19]]