summaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_tty.c
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2015-08-08 20:11:47 +0000
committerIan Lepore <ian@FreeBSD.org>2015-08-08 20:11:47 +0000
commitb59236ceceb2864cedcb2a4c9b9db58f63be9eea (patch)
tree4ad72abf0ba55fa1c56dca04ef4319c4f23b78b9 /sys/dev/uart/uart_tty.c
parent2e7b8b8b5121ed7971ec06b9eff3ed030d036c44 (diff)
Notes
Diffstat (limited to 'sys/dev/uart/uart_tty.c')
-rw-r--r--sys/dev/uart/uart_tty.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index c31b5429ae9a..ada49277c187 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -404,3 +404,13 @@ uart_tty_detach(struct uart_softc *sc)
return (0);
}
+
+struct mtx *
+uart_tty_getlock(struct uart_softc *sc)
+{
+
+ if (sc->sc_u.u_tty.tp != NULL)
+ return (tty_getlock(sc->sc_u.u_tty.tp));
+ else
+ return (NULL);
+}