MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / serial_tty_close

Function serial_tty_close

components/drivers/serial/serial_tty.c:226–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static 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
239static int serial_tty_ioctl(struct lwp_tty *tp, rt_ubase_t cmd, rt_caddr_t data,
240 struct rt_thread *td)

Callers

nothing calls this directly

Calls 2

rt_device_closeFunction · 0.85

Tested by

no test coverage detected