Lines Matching refs:cr_grps
260 cr->cr_grps = NULL;
297 ASSERT(cr->cr_grps == NULL);
370 if (cr->cr_grps)
371 crgrprele(cr->cr_grps);
397 if (newcr->cr_grps)
398 crgrphold(newcr->cr_grps);
423 if (newcr->cr_grps)
424 crgrphold(newcr->cr_grps);
457 if (newcr->cr_grps)
458 crgrphold(newcr->cr_grps);
487 if (newcr->cr_grps)
488 crgrphold(newcr->cr_grps);
544 credgrp_t *grps = cr->cr_grps;
663 ((grp1 = cr1->cr_grps) == (grp2 = cr2->cr_grps) ||
839 if (cr->cr_grps != NULL)
840 crgrprele(cr->cr_grps);
843 cr->cr_grps = kmem_alloc(CREDGRPSZ(n), KM_SLEEP);
844 bcopy(grp, cr->cr_grps->crg_groups, n * sizeof (gid_t));
845 cr->cr_grps->crg_ref = 1;
846 cr->cr_grps->crg_ngroups = n;
847 qsort(cr->cr_grps->crg_groups, n, sizeof (gid_t), gidcmp);
849 cr->cr_grps = NULL;
871 return (cr->cr_grps == NULL ? &cr->cr_gid : cr->cr_grps->crg_groups);
877 return (cr->cr_grps == NULL ? 0 : cr->cr_grps->crg_ngroups);
890 pcrp->pr_ngroups = cr->cr_grps == NULL ? 0 : cr->cr_grps->crg_ngroups;
893 bcopy(cr->cr_grps->crg_groups, pcrp->pr_groups,
1006 if (cr->cr_grps == NULL)
1009 ndiff = ngroups_max - cr->cr_grps->crg_ngroups;
1463 if (cr->cr_grps != NULL)
1464 crgrprele(cr->cr_grps);
1466 cr->cr_grps = grps;