[Mesa-dev] [RFC] loader: libudev vs sysfs vs libdrm

Axel Davy axel.davy at ens.fr
Thu Jul 9 07:40:21 PDT 2015


On 09/07/2015 15:33, Emil Velikov wrote :
>
> Yakes forgot about that one. From a quick look we can (I know it feels
> durty) use readlink(
> /sys/dev/char/$(major):$(minor)).
>
> Everything seems to be there - bus type and exact location of the
> device on the bus. It's limited to sysfs users, but they are more than
> the libudev ones (perhaps not by much). How does that sound ?
>
> Cheers,
> Emil
>
The idea behind using udev for the tag was that arbitrary tag could be used,
especially to identify usb devices.

Ofc another solution could be used.

Yours,

Axel


More information about the mesa-dev mailing list