udev-node: save information about device node and priority in symlink
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 19:16:21 +0000 (04:16 +0900)
committerRaspbian forward porter <root@raspbian.org>
Fri, 15 Oct 2021 10:50:57 +0000 (11:50 +0100)
commitae70af9d3dbcda962b736e0f272bd822d67a1c9e
treef8b8135dc898d95cc829e63c958b1a5a1c5bbaff
parent3556c97ad6e09dacfce8dbc9e6d13bcc21c3f1c3
udev-node: save information about device node and priority in symlink

Previously, we only store device IDs in /run/udev/links, and when
creating/removing device node symlink, we create sd_device object
corresponds to the IDs and read device node and priority from the
object. That requires parsing uevent and udev database files.

This makes link_find_prioritized() get the most prioritzed device node
without parsing the files.

(cherry picked from commit 377a83f0d80376456d9be203796f66f543a8b943)

Gbp-Pq: Name udev-node-save-information-about-device-node-and-priority.patch
src/udev/udev-node.c