[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libpciaccess support for has_kernel_driver method
In article <7469.1405225919%splode.eterna.com.au@localhost>,
matthew green <mrg%eterna.com.au@localhost> wrote:
>something really nasty happens on drmkms kernels if the "vesa" xorg
>driver is loaded. they're not compatible and won't become that way.
>the way xf86-video-vesa handles this is by a libpciaccess call to
>determine if the device has a kernel driver attached. i've implemented
>this below via 3 parts:
> - new pciio.h ioctl to get driver name
> - new libpci function to export this
> - new libpciaccess code for has_kernel_driver method. this
> code explicitly ignores "vga" driver as being bound, but
> any other name will work.
>each built on top of the other. i've tested it both with drmkms
>kernel and non-drmkms kernel, both with and without forcing vesa
>driver to be used in xorg.conf, and it works as expected.
>comments? i'd like to get this in ASAP.
LGTM... Is having a fixed size buffer ioctl better than passing the
userland buffer and length to the kernel?
Main Index |
Thread Index |