Lines Matching defs:newch
827 struct chhead *ch, *newch;
842 newch = NULL;
871 if (newch == NULL) {
873 newch = kmem_alloc(sizeof (*newch), KM_SLEEP);
874 newch->ch_timesused = 0;
875 newch->ch_prog = ci->cl_prog;
876 newch->ch_vers = ci->cl_vers;
877 newch->ch_dev = svp->sv_knconf->knc_rdev;
878 newch->ch_protofmly = kmem_alloc(
881 (void) strcpy(newch->ch_protofmly,
883 newch->ch_list = NULL;
886 ch = newch;
887 newch = NULL;
909 if (newch != NULL) {
910 kmem_free(newch->ch_protofmly,
911 strlen(newch->ch_protofmly) + 1);
912 kmem_free(newch, sizeof (*newch));
942 if (newch != NULL) {
943 kmem_free(newch->ch_protofmly, strlen(newch->ch_protofmly) + 1);
944 kmem_free(newch, sizeof (*newch));