Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/pstat/pstat.c
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | while (tp != NULL) { | ||||
xt.xt_inlow = tty.t_inlow; | xt.xt_inlow = tty.t_inlow; | ||||
xt.xt_outsize = tty.t_outq.to_nblocks * TTYOUTQ_DATASIZE; | xt.xt_outsize = tty.t_outq.to_nblocks * TTYOUTQ_DATASIZE; | ||||
xt.xt_outcc = tty.t_outq.to_end - tty.t_outq.to_begin; | xt.xt_outcc = tty.t_outq.to_end - tty.t_outq.to_begin; | ||||
xt.xt_outlow = tty.t_outlow; | xt.xt_outlow = tty.t_outlow; | ||||
xt.xt_column = tty.t_column; | xt.xt_column = tty.t_column; | ||||
/* xt.xt_pgid = ... */ | /* xt.xt_pgid = ... */ | ||||
/* xt.xt_sid = ... */ | /* xt.xt_sid = ... */ | ||||
xt.xt_flags = tty.t_flags; | xt.xt_flags = tty.t_flags; | ||||
xt.xt_dev = NODEV; | xt.xt_dev = (uint32_t)NODEV; | ||||
ttyprt(&xt); | ttyprt(&xt); | ||||
tp = TAILQ_NEXT(&tty, t_list); | tp = TAILQ_NEXT(&tty, t_list); | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
ttymode_sysctl(void) | ttymode_sysctl(void) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |