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