Lines Matching defs:users
2319 * If users == 0 then cr_ref behaves similarly to refcount(9), in particular if
2321 * If users > 0 and curthread->td_realucred == cred, then updates are performed
2333 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2351 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2368 crunusebatch(struct ucred *cr, int users, int ref)
2371 KASSERT(users > 0, ("%s: passed users %d not > 0 ; cred %p",
2372 __func__, users, cr));
2374 KASSERT(cr->cr_users >= users, ("%s: users %d not > %d on cred %p",
2375 __func__, cr->cr_users, users, cr));
2376 cr->cr_users -= users;
2378 cr->cr_ref -= users;
2436 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2439 if (crb->users > 0) {
2441 crunusebatch(crb->cred, crb->users, crb->ref);
2442 crb->users = 0;
2447 crb->users++;
2458 MPASS(crb->users > 0);
2459 crunusebatch(crb->cred, crb->users, crb->ref);
2494 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2515 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2521 KASSERT(cr->cr_users >= 0, ("%s: users %d not >= 0 on cred %p",
2541 KASSERT(cr->cr_users == 0, ("%s: users %d not == 0 on cred %p",
2657 KASSERT(newcred->cr_users == 0, ("%s: users %d not 0 on cred %p",
2682 KASSERT(oldcred->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2716 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",