MCPcopy Create free account
hub / github.com/F-Stack/f-stack / terminal_alloc

Function terminal_alloc

freebsd/kern/subr_terminal.c:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202struct terminal *
203terminal_alloc(const struct terminal_class *tc, void *softc)
204{
205 struct terminal *tm;
206
207 tm = malloc(sizeof(struct terminal), M_TERMINAL, M_WAITOK|M_ZERO);
208 terminal_init(tm);
209
210 tm->tm_class = tc;
211 tm->tm_softc = softc;
212
213 return (tm);
214}
215
216static void
217terminal_sync_ttysize(struct terminal *tm)

Callers

nothing calls this directly

Calls 2

mallocFunction · 0.85
terminal_initFunction · 0.85

Tested by

no test coverage detected