[Xorg] OLS and console rearchitecture: second pass

Alan Cox alan at lxorguk.ukuu.org.uk
Fri Jul 30 02:26:45 PDT 2004

On Gwe, 2004-07-30 at 02:09, Jon Smirl wrote:
> 1) disable all VGA devices for sure.
> 2) enable a VGA device and make sure none of the other ones are
> enabled.
> 3) maybe list all VGA devices, but you can do this via sysfs and the
> pci space.
> 4) which device is the currently active device
> 5) monitor hotplug for new VGA devices or removal of one
> 6) anything else?

I wasn't planning to put the hotplug part into the kernel vga switch
code, but that does belong in the frame buffer. The implementation
I anticipated was essentially

	take vga routing to card {n} and lock (blocking)
	take vga routing to card {n} and lock (nonblocking)
	free vga routing lock

with multiple people being able to take the lock at once for the same
card and automatically losing the lock on file close/program exit. The
API also has to be available to the kernel.

More information about the xorg mailing list