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

Function tty_is_ctty

components/lwp/terminal/tty_internal.h:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60rt_inline int tty_is_ctty(struct lwp_tty *tp, struct rt_lwp *p)
61{
62 tty_assert_locked(tp);
63
64 return p->pgrp->session == tp->t_session && p->term_ctrlterm;
65}
66
67#endif /* __LWP_TTY_INTERNAL_H__ */

Callers 3

tty_wait_backgroundFunction · 0.85
tty_generic_ioctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected