pub(crate) fn auto_select_render_node(token: Option<&str>) -> Option<String>Expand description
Resolve a usable /dev/dri/renderD* node, optionally matching a vendor/driver token.
Cards under /sys/class/drm are walked in numeric order, skipping cards with no render node
(e.g. IPMI/VGA). When /sys/class/drm is unreadable (container without /sys), falls
through to scanning /dev/dri directly — that fallback has no device identity so a token
request cannot be satisfied there.
§Arguments
token- Optional vendor/driver filter: a kernel driver name, PCI vendor ID ("0x10de"), devicetree vendor prefix, or human vendor name ("nvidia","intel").Nonepicks the first available node.
§Returns
A /dev/dri/renderD* path, or None if no matching node exists.