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

Emil Velikov emil.l.velikov at gmail.com
Thu Jul 9 14:00:17 PDT 2015


On 09/07/15 15:40, Axel Davy wrote:
> 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.
> 
So avoid breaking peoples' setup the above example can be used to
produce the very same tag(s). Regardles if it's a device on the pci or
usb bus. Speaking of usb, are there any devices supported with upstream
mesa ?

-Emil



More information about the mesa-dev mailing list