chiark / gitweb /
terminal: grdev: treat udev-devices without devnum as hotplug
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 07:48:22 +0000 (09:48 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 09:46:49 +0000 (11:46 +0200)
commita3eabec96b872bbf581c9bfa81ecc9c2819b8de8
tree344869ffd0d9afc4399b5567153b8f9f3a0d49ed
parent46c9a12780ea24ef311682897077423f1825c519
terminal: grdev: treat udev-devices without devnum as hotplug

If we get udev-device events via sysview, but they lack devnum
annotations, we know it cannot be a DRM card. Look through it's parents
and treat it as hotplug event in case we find such a card.

This will treat any new/removed connectors as sub-devices of the real
card, instead of as devices on its own.
src/libsystemd-terminal/grdev.c