1 /* console_switch.c -- header file for the console grabbing
2 * routines for vlock, the VT locking program
5 * This program is copyright (C) 2007 Frank Benkstein, and is free
6 * software which is freely distributable under the terms of the
7 * GNU General Public License version 2, included as the file COPYING in this
8 * distribution. It is NOT public domain software, and any
9 * redistribution not permitted by the GNU General Public License is
10 * expressly forbidden without prior written permission from
17 /* Is console switching currently disabled? */
18 extern bool console_switch_locked
;
20 /* Disable virtual console switching in the kernel. If disabling fails false
21 * is returned and *error is set to a diagnostic message that must be freed by
23 bool lock_console_switch(char **error
);
24 /* Reenable console switching if it was previously disabled. */
25 void unlock_console_switch(void);