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