| 212 | */ |
| 213 | |
| 214 | static __inline int |
| 215 | ttydev_enter(struct tty *tp) |
| 216 | { |
| 217 | |
| 218 | tty_lock(tp); |
| 219 | |
| 220 | if (tty_gone(tp) || !tty_opened(tp)) { |
| 221 | /* Device is already gone. */ |
| 222 | tty_unlock(tp); |
| 223 | return (ENXIO); |
| 224 | } |
| 225 | |
| 226 | return (0); |
| 227 | } |
| 228 | |
| 229 | static void |
| 230 | ttydev_leave(struct tty *tp) |
no outgoing calls
no test coverage detected