| 224 | } |
| 225 | |
| 226 | static void serial_tty_close(struct lwp_tty *tp) |
| 227 | { |
| 228 | struct serial_tty_context *softc; |
| 229 | struct rt_serial_device *serial; |
| 230 | softc = tty_softc(tp); |
| 231 | serial = softc->parent; |
| 232 | |
| 233 | LOG_D("%s", __func__); |
| 234 | |
| 235 | rt_bypass_lower_unregister(serial, RT_BYPASS_PROTECT_LEVEL_1); |
| 236 | rt_device_close(&serial->parent); |
| 237 | } |
| 238 | |
| 239 | static int serial_tty_ioctl(struct lwp_tty *tp, rt_ubase_t cmd, rt_caddr_t data, |
| 240 | struct rt_thread *td) |
nothing calls this directly
no test coverage detected