Lines Matching refs:xt
1289 tty_to_xtty(struct tty *tp, struct xtty *xt) in tty_to_xtty() argument
1294 memset(xt, 0, sizeof(*xt)); in tty_to_xtty()
1295 xt->xt_size = sizeof(struct xtty); in tty_to_xtty()
1296 xt->xt_insize = ttyinq_getsize(&tp->t_inq); in tty_to_xtty()
1297 xt->xt_incc = ttyinq_bytescanonicalized(&tp->t_inq); in tty_to_xtty()
1298 xt->xt_inlc = ttyinq_bytesline(&tp->t_inq); in tty_to_xtty()
1299 xt->xt_inlow = tp->t_inlow; in tty_to_xtty()
1300 xt->xt_outsize = ttyoutq_getsize(&tp->t_outq); in tty_to_xtty()
1301 xt->xt_outcc = ttyoutq_bytesused(&tp->t_outq); in tty_to_xtty()
1302 xt->xt_outlow = tp->t_outlow; in tty_to_xtty()
1303 xt->xt_column = tp->t_column; in tty_to_xtty()
1304 xt->xt_pgid = tp->t_pgrp ? tp->t_pgrp->pg_id : 0; in tty_to_xtty()
1305 xt->xt_sid = tp->t_session ? tp->t_session->s_sid : 0; in tty_to_xtty()
1306 xt->xt_flags = tp->t_flags; in tty_to_xtty()
1307 xt->xt_dev = tp->t_dev ? dev2udev(tp->t_dev) : (uint32_t)NODEV; in tty_to_xtty()
1315 struct xtty *xtlist, *xt; in sysctl_kern_ttys() local
1328 xtlist = xt = malloc(lsize, M_TTY, M_WAITOK); in sysctl_kern_ttys()
1341 tty_to_xtty(tp, xt); in sysctl_kern_ttys()
1342 xt++; in sysctl_kern_ttys()
1348 lsize = (xt - xtlist) * sizeof(struct xtty); in sysctl_kern_ttys()