Lines Matching refs:tp

164 void	tty_rel_pgrp(struct tty *tp, struct pgrp *pgrp);
165 void tty_rel_sess(struct tty *tp, struct session *sess);
166 void tty_rel_gone(struct tty *tp);
168 #define tty_lock(tp) mtx_lock((tp)->t_mtx)
169 #define tty_unlock(tp) mtx_unlock((tp)->t_mtx)
170 #define tty_lock_owned(tp) mtx_owned((tp)->t_mtx)
171 #define tty_lock_assert(tp,ma) mtx_assert((tp)->t_mtx, (ma))
172 #define tty_getlock(tp) ((tp)->t_mtx)
175 int tty_makedevf(struct tty *tp, struct ucred *cred, int flags,
178 #define tty_makedev(tp, cred, fmt, ...) \
179 (void )tty_makedevf((tp), (cred), 0, (fmt), ## __VA_ARGS__)
180 #define tty_makealias(tp,fmt,...) \
181 make_dev_alias((tp)->t_dev, fmt, ## __VA_ARGS__)
184 void tty_signal_sessleader(struct tty *tp, int signal);
185 void tty_signal_pgrp(struct tty *tp, int signal);
187 int tty_wait(struct tty *tp, struct cv *cv);
188 int tty_wait_background(struct tty *tp, struct thread *td, int sig);
189 int tty_timedwait(struct tty *tp, struct cv *cv, int timo);
190 void tty_wakeup(struct tty *tp, int flags);
193 int tty_checkoutq(struct tty *tp);
194 int tty_putchar(struct tty *tp, char c);
196 int tty_ioctl(struct tty *tp, u_long cmd, void *data, int fflag,
198 int tty_ioctl_compat(struct tty *tp, u_long cmd, caddr_t data,
200 void tty_set_winsize(struct tty *tp, const struct winsize *wsz);
201 void tty_init_console(struct tty *tp, speed_t speed);
202 void tty_flush(struct tty *tp, int flags);
203 void tty_hiwat_in_block(struct tty *tp);
204 void tty_hiwat_in_unblock(struct tty *tp);
205 dev_t tty_udev(struct tty *tp);
206 #define tty_opened(tp) ((tp)->t_flags & TF_OPENED)
207 #define tty_gone(tp) ((tp)->t_flags & TF_GONE)
208 #define tty_softc(tp) ((tp)->t_devswsoftc)
209 #define tty_devname(tp) devtoname((tp)->t_dev)
212 void tty_info(struct tty *tp);