Lines Matching refs:users
1843 * If users == 0 then cr_ref behaves similarly to refcount(9), in particular if
1845 * If users > 0 and curthread->td_realucred == cred, then updates are performed
1857 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
1875 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
1892 crunusebatch(struct ucred *cr, int users, int ref)
1895 KASSERT(users > 0, ("%s: passed users %d not > 0 ; cred %p",
1896 __func__, users, cr));
1898 KASSERT(cr->cr_users >= users, ("%s: users %d not > %d on cred %p",
1899 __func__, cr->cr_users, users, cr));
1900 cr->cr_users -= users;
1902 cr->cr_ref -= users;
1960 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
1963 if (crb->users > 0) {
1965 crunusebatch(crb->cred, crb->users, crb->ref);
1966 crb->users = 0;
1971 crb->users++;
1982 MPASS(crb->users > 0);
1983 crunusebatch(crb->cred, crb->users, crb->ref);
2019 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2040 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2046 KASSERT(cr->cr_users >= 0, ("%s: users %d not >= 0 on cred %p",
2066 KASSERT(cr->cr_users == 0, ("%s: users %d not == 0 on cred %p",
2187 KASSERT(newcred->cr_users == 0, ("%s: users %d not 0 on cred %p",
2190 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",
2207 KASSERT(cr->cr_users > 0, ("%s: users %d not > 0 on cred %p",