Lines Matching refs:tp
169 void tty_rel_pgrp(struct tty *tp, struct pgrp *pgrp);
170 void tty_rel_sess(struct tty *tp, struct session *sess);
171 void tty_rel_gone(struct tty *tp);
173 #define tty_lock(tp) mtx_lock((tp)->t_mtx) argument
174 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx) argument
175 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx) argument
176 #define tty_assert_locked(tp) mtx_assert((tp)->t_mtx, MA_OWNED) argument
177 #define tty_getlock(tp) ((tp)->t_mtx) argument
180 #define tty_lock_assert(tp, ma) mtx_assert((tp)->t_mtx, (ma)) argument
183 int tty_makedevf(struct tty *tp, struct ucred *cred, int flags,
186 #define tty_makedev(tp, cred, fmt, ...) \ argument
187 (void )tty_makedevf((tp), (cred), 0, (fmt), ## __VA_ARGS__)
188 #define tty_makealias(tp,fmt,...) \ argument
189 make_dev_alias((tp)->t_dev, fmt, ## __VA_ARGS__)
192 void tty_signal_sessleader(struct tty *tp, int signal);
193 void tty_signal_pgrp(struct tty *tp, int signal);
195 int tty_wait(struct tty *tp, struct cv *cv);
196 int tty_wait_background(struct tty *tp, struct thread *td, int sig);
197 int tty_timedwait(struct tty *tp, struct cv *cv, int timo);
198 void tty_wakeup(struct tty *tp, int flags);
201 int tty_checkoutq(struct tty *tp);
202 int tty_putchar(struct tty *tp, char c);
203 int tty_putstrn(struct tty *tp, const char *p, size_t n);
205 int tty_ioctl(struct tty *tp, u_long cmd, void *data, int fflag,
207 int tty_ioctl_compat(struct tty *tp, u_long cmd, caddr_t data,
209 void tty_set_winsize(struct tty *tp, const struct winsize *wsz);
210 void tty_init_console(struct tty *tp, speed_t speed);
211 void tty_flush(struct tty *tp, int flags);
212 void tty_hiwat_in_block(struct tty *tp);
213 void tty_hiwat_in_unblock(struct tty *tp);
214 dev_t tty_udev(struct tty *tp);
215 #define tty_opened(tp) ((tp)->t_flags & TF_OPENED) argument
216 #define tty_gone(tp) ((tp)->t_flags & TF_GONE) argument
217 #define tty_softc(tp) ((tp)->t_devswsoftc) argument
218 #define tty_devname(tp) devtoname((tp)->t_dev) argument
221 void tty_info(struct tty *tp);