How to add an (S)VGA driver to XFree86 : The Driver Itself : The EnterLeave() function
Previous: The Probe() function
Next: The Restore() function

## 6.6. The EnterLeave() function

The EnterLeave() function is called whenever the virtual console on which the server runs is entered or left (for OSs without virtual consoles, the function is called when the server starts and again when it exits). The purpose of this function is to enable and disable I/O permissions (for OSs where such is required), and to unlock and relock access to ``protected'' registers that the driver must manipulate. It is a fairly trivial function, and can be implemented by following the comments in the stub driver.

How to add an (S)VGA driver to XFree86 : The Driver Itself : The EnterLeave() function
Previous: The Probe() function
Next: The Restore() function