diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2015-08-08 20:11:47 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2015-08-08 20:11:47 +0000 |
| commit | b59236ceceb2864cedcb2a4c9b9db58f63be9eea (patch) | |
| tree | 4ad72abf0ba55fa1c56dca04ef4319c4f23b78b9 /sys/dev/uart/uart_tty.c | |
| parent | 2e7b8b8b5121ed7971ec06b9eff3ed030d036c44 (diff) | |
Notes
Diffstat (limited to 'sys/dev/uart/uart_tty.c')
| -rw-r--r-- | sys/dev/uart/uart_tty.c | 10 |
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); +} |
