void stop_tty(struct tty_struct *tty) { if (tty->stopped) return; tty->stopped = 1; if (tty->link && tty->link->packet) { tty->ctrl_status &= ~TIOCPKT_START; tty->ctrl_status |= TIOCPKT_STOP; wake_up_interruptible(&tty->link->secondary.proc_list); } if (tty->stop) (tty->stop)(tty); if (IS_A_CONSOLE(tty->line)) { set_vc_kbd_led(kbd_table + fg_console, VC_SCROLLOCK); set_leds(); } }
static void caps_on(void) { if (rep) return; set_vc_kbd_led(kbd, VC_CAPSLOCK); }