| 200 | } |
| 201 | |
| 202 | struct terminal * |
| 203 | terminal_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 | |
| 216 | static void |
| 217 | terminal_sync_ttysize(struct terminal *tm) |
nothing calls this directly
no test coverage detected