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

Function tty_ioctl

components/lwp/terminal/freebsd/tty.c:1383–1398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383int tty_ioctl(struct lwp_tty *tp, rt_ubase_t cmd, void *data, int fflag,
1384 struct rt_thread *td)
1385{
1386 int error;
1387
1388 tty_assert_locked(tp);
1389
1390 if (tty_gone(tp))
1391 return -ENXIO;
1392
1393 error = ttydevsw_ioctl(tp, cmd, data, td);
1394 if (error == -ENOIOCTL)
1395 error = tty_generic_ioctl(tp, cmd, data, fflag, td);
1396
1397 return error;
1398}
1399
1400int tty_checkoutq(struct lwp_tty *tp)
1401{

Callers 2

ptsdev_ioctlFunction · 0.85
ttydev_ioctlFunction · 0.85

Calls 2

ttydevsw_ioctlFunction · 0.85
tty_generic_ioctlFunction · 0.85

Tested by

no test coverage detected