Lines Matching refs:cr_ref
194 dummycr->cr_ref = 1; in cred_init()
211 kcred->cr_ref = 1; in cred_init()
256 cr->cr_ref = 1; /* So we can crfree() */ in cralloc_flags()
293 cr->cr_ref = 1; in crget()
349 ASSERT(cr->cr_ref != 0xdeadbeef && cr->cr_ref != 0); in crhold()
350 atomic_inc_32(&cr->cr_ref); in crhold()
360 ASSERT(cr->cr_ref != 0xdeadbeef && cr->cr_ref != 0); in crfree()
361 if (atomic_dec_32_nv(&cr->cr_ref) == 0) { in crfree()
401 newcr->cr_ref = 2; /* caller gets two references */ in crcopy()
432 newcr->cr_ref = 2; /* caller gets two references */ in crcopy_to()
460 newcr->cr_ref = 1; in crdup_flags()
495 newcr->cr_ref = 1; in crdup_to()
767 ASSERT(cr->cr_ref <= 2); in crsetresuid()
787 ASSERT(cr->cr_ref <= 2); in crsetresgid()
807 ASSERT(cr->cr_ref <= 2); in crsetugid()
835 ASSERT(cr->cr_ref <= 2); in crsetgroups()
1059 return (cr->cr_ref); in crgetref()
1096 ASSERT(cr->cr_ref <= 2); in crsetzone()
1334 ASSERT(cr->cr_ref <= 2); in crsetsid()
1344 ASSERT(cr->cr_ref <= 2); in crsetsidlist()
1379 ASSERT(cr->cr_ref <= 2); in crsetpriv()
1426 ASSERT(cr->cr_ref <= 2); in crsetcrklpd()
1462 ASSERT(cr->cr_ref <= 2); in crsetcredgrp()