Re: [PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 11 Dec 2018 at 22:15, François Tigeot <ftigeot@xxxxxxxxxxxx> wrote:
>
> * There is no way to check if a device name is really a drm device
>   by looking it up in a virtual filesystem like on Linux
>
> * The major device number is also dynamically allocated from a pool,
>   comparing it to a constant makes no sense
>
> * In the absence of better ideas, just assume the device name really
>   points to a drm device and always return true
>
I guess one could use the sysfs path, although that may require a few
extra lines to the linux emulation layer.

What's the reason behind the dynamic allocation of the major? FWIW
some userspace requires a fixed DRM_MAJOR - they will need patching to
run :-(

Thanks
Emil
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux