aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 2f44b0b241c3..939e198d7670 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -471,27 +471,6 @@ void tty_wakeup(struct tty_struct *tty)
471EXPORT_SYMBOL_GPL(tty_wakeup); 471EXPORT_SYMBOL_GPL(tty_wakeup);
472 472
473/** 473/**
474 * tty_ldisc_flush - flush line discipline queue
475 * @tty: tty
476 *
477 * Flush the line discipline queue (if any) for this tty. If there
478 * is no line discipline active this is a no-op.
479 */
480
481void tty_ldisc_flush(struct tty_struct *tty)
482{
483 struct tty_ldisc *ld = tty_ldisc_ref(tty);
484 if (ld) {
485 if (ld->ops->flush_buffer)
486 ld->ops->flush_buffer(tty);
487 tty_ldisc_deref(ld);
488 }
489 tty_buffer_flush(tty);
490}
491
492EXPORT_SYMBOL_GPL(tty_ldisc_flush);
493
494/**
495 * do_tty_hangup - actual handler for hangup events 474 * do_tty_hangup - actual handler for hangup events
496 * @work: tty device 475 * @work: tty device
497 * 476 *