Skip to content
Commit 6818a50b authored by Emmanuel Vadot's avatar Emmanuel Vadot Committed by Emmanuel Vadot
Browse files

libdrm: drmGetDeviceNameFromFd: Add FreeBSD variant



Get the major/minor via fstat and after checking that this is a drm node
construct the full device node name using devname.
Note that we should be able to use fdevname to avoid calling fstat + devname
but for some reason it doesn't work on drm node (probably due to how the device
node are created in the linux compat code for drm on FreeBSD).

Signed-off-by: default avatarEmmanuel Vadot <manu@FreeBSD.org>
Reviewed-by: default avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent c55a1e56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment