| 1381 | } |
| 1382 | |
| 1383 | int 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 | |
| 1400 | int tty_checkoutq(struct lwp_tty *tp) |
| 1401 | { |
no test coverage detected