MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tty_ioctl

Function tty_ioctl

freebsd/kern/tty.c:1984–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1982}
1983
1984int
1985tty_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
2001dev_t
2002tty_udev(struct tty *tp)

Callers 3

ptsdev_ioctlFunction · 0.85
ttydev_ioctlFunction · 0.85
tty_ioctl_compatFunction · 0.85

Calls 2

ttydevsw_ioctlFunction · 0.85
tty_generic_ioctlFunction · 0.85

Tested by

no test coverage detected