Lines Matching defs:console

26 #include <linux/console.h>
74 * /dev/console is a separate ttyp. Under Linux, /dev/tty0 is /dev/console,
79 * to the current console is done by the main ioctl code.
105 * @old: old console
106 * @new: new console
127 console 1..n with 0 meaning current, so we must bias */
210 * vt_waitactive - active console wait
211 * @n: new console
250 * Called with the console lock held.
288 unsigned int console = vc->vc_num;
399 ret = vt_do_kdskbmode(console, arg);
406 return put_user(vt_do_kdgkbmode(console), (int __user *)arg);
411 return vt_do_kdskbmeta(console, arg);
415 return put_user(vt_do_kdgkbmeta(console), (int __user *)arg);
425 return vt_do_kdsk_ioctl(cmd, up, perm, console);
445 return vt_do_kdskled(console, cmd, arg, perm);
450 * Thus, one can have a daemon that e.g. spawns a new console
583 * When we actually do the console switch, make sure we are atomic with
584 * respect to other console switches..
599 if (vsa.console == 0 || vsa.console > MAX_NR_CONSOLES)
602 vsa.console--;
603 vsa.console = array_index_nospec(vsa.console, MAX_NR_CONSOLES);
605 ret = vc_allocate(vsa.console);
612 * This is safe providing we don't drop the console sem between
615 nvc = vc_cons[vsa.console].d;
624 set_console(vsa.console);
629 /* deallocate a single console, if possible (leave 0) */
732 * We handle the console-specific ioctl's here. We allow the
733 * capability to modify any console, not just the fg_console.
824 * Returns the first available (non-opened) console.
837 * with num >= 1 (switches to vt 0, our console, are not allowed, just
1124 * Performs the back end of a vt switch. Called under the console
1160 * If this new console is under process control, send it a signal
1309 * Normally during a suspend, we allocate a new console and switch to it.
1310 * When we resume, we switch back to the original console. This switch
1312 * of video registers anyways, there's little point in doing the console