| 1982 | } |
| 1983 | |
| 1984 | int |
| 1985 | tty_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, struct thread *td) |
| 1986 | { |
| 1987 | int error; |
| 1988 | |
| 1989 | tty_assert_locked(tp); |
| 1990 | |
| 1991 | if (tty_gone(tp)) |
| 1992 | return (ENXIO); |
| 1993 | |
| 1994 | error = ttydevsw_ioctl(tp, cmd, data, td); |
| 1995 | if (error == ENOIOCTL) |
| 1996 | error = tty_generic_ioctl(tp, cmd, data, fflag, td); |
| 1997 | |
| 1998 | return (error); |
| 1999 | } |
| 2000 | |
| 2001 | dev_t |
| 2002 | tty_udev(struct tty *tp) |
no test coverage detected