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

Function ttydev_enter

freebsd/kern/tty.c:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 */
213
214static __inline int
215ttydev_enter(struct tty *tp)
216{
217
218 tty_lock(tp);
219
220 if (tty_gone(tp) || !tty_opened(tp)) {
221 /* Device is already gone. */
222 tty_unlock(tp);
223 return (ENXIO);
224 }
225
226 return (0);
227}
228
229static void
230ttydev_leave(struct tty *tp)

Callers 6

ttydev_readFunction · 0.85
ttydev_writeFunction · 0.85
ttydev_ioctlFunction · 0.85
ttydev_pollFunction · 0.85
ttydev_mmapFunction · 0.85
ttydev_kqfilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected