Lines Matching defs:newch
311 struct chhead *ch, *newch;
326 newch = NULL;
355 if (newch == NULL) {
357 newch = kmem_alloc(sizeof (*newch), KM_SLEEP);
358 newch->ch_timesused = 0;
359 newch->ch_prog = ci->cl_prog;
360 newch->ch_vers = ci->cl_vers;
361 newch->ch_dev = svp->sv_knconf->knc_rdev;
362 newch->ch_protofmly = kmem_alloc(
365 (void) strcpy(newch->ch_protofmly,
367 newch->ch_list = NULL;
370 ch = newch;
371 newch = NULL;
393 if (newch != NULL) {
394 kmem_free(newch->ch_protofmly,
395 strlen(newch->ch_protofmly) + 1);
396 kmem_free(newch, sizeof (*newch));
423 if (newch != NULL) {
424 kmem_free(newch->ch_protofmly, strlen(newch->ch_protofmly) + 1);
425 kmem_free(newch, sizeof (*newch));