tty_io.c (d22d53ad8ae8414c547c24de0b828a622fc45ea1) tty_io.c (3a00da027946cd08db1c1be2de4620950bbdf074)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 */
5
6/*
7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles
8 * or rs-channels. It also implements echoing, cooked mode etc.

--- 1135 unchanged lines hidden (view full) ---

1144 * tty_send_xchar - send priority character
1145 * @tty: the tty to send to
1146 * @ch: xchar to send
1147 *
1148 * Send a high priority character to the tty even if stopped.
1149 *
1150 * Locking: none for xchar method, write ordering for write method.
1151 */
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 */
5
6/*
7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles
8 * or rs-channels. It also implements echoing, cooked mode etc.

--- 1135 unchanged lines hidden (view full) ---

1144 * tty_send_xchar - send priority character
1145 * @tty: the tty to send to
1146 * @ch: xchar to send
1147 *
1148 * Send a high priority character to the tty even if stopped.
1149 *
1150 * Locking: none for xchar method, write ordering for write method.
1151 */
1152int tty_send_xchar(struct tty_struct *tty, char ch)
1152int tty_send_xchar(struct tty_struct *tty, u8 ch)
1153{
1154 bool was_stopped = tty->flow.stopped;
1155
1156 if (tty->ops->send_xchar) {
1157 down_read(&tty->termios_rwsem);
1158 tty->ops->send_xchar(tty, ch);
1159 up_read(&tty->termios_rwsem);
1160 return 0;

--- 2488 unchanged lines hidden ---
1153{
1154 bool was_stopped = tty->flow.stopped;
1155
1156 if (tty->ops->send_xchar) {
1157 down_read(&tty->termios_rwsem);
1158 tty->ops->send_xchar(tty, ch);
1159 up_read(&tty->termios_rwsem);
1160 return 0;

--- 2488 unchanged lines hidden ---