Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_terminal.c
Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Lines | termcn_cnregister(struct terminal *tm) | ||||
/* Attach terminal as console. */ | /* Attach terminal as console. */ | ||||
cnadd(cp); | cnadd(cp); | ||||
} | } | ||||
static void | static void | ||||
termcn_cngrab(struct consdev *cp) | termcn_cngrab(struct consdev *cp) | ||||
{ | { | ||||
struct terminal *tm = cp->cn_arg; | |||||
tm->tm_class->tc_cngrab(tm); | |||||
} | } | ||||
static void | static void | ||||
termcn_cnungrab(struct consdev *cp) | termcn_cnungrab(struct consdev *cp) | ||||
{ | { | ||||
struct terminal *tm = cp->cn_arg; | |||||
tm->tm_class->tc_cnungrab(tm); | |||||
} | } | ||||
static void | static void | ||||
termcn_cnprobe(struct consdev *cp) | termcn_cnprobe(struct consdev *cp) | ||||
{ | { | ||||
struct terminal *tm = cp->cn_arg; | struct terminal *tm = cp->cn_arg; | ||||
if (tm == NULL) { | if (tm == NULL) { | ||||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |