Home
last modified time | relevance | path

Searched refs:newlc (Results 1 – 3 of 3) sorted by relevance

/freebsd-9-stable/sys/kern/
Dkern_loginclass.c114 struct loginclass *lc, *newlc; in loginclass_find() local
119 newlc = malloc(sizeof(*newlc), M_LOGINCLASS, M_ZERO | M_WAITOK); in loginclass_find()
120 racct_create(&newlc->lc_racct); in loginclass_find()
130 racct_destroy(&newlc->lc_racct); in loginclass_find()
131 free(newlc, M_LOGINCLASS); in loginclass_find()
136 strcpy(newlc->lc_name, name); in loginclass_find()
137 refcount_init(&newlc->lc_refcount, 1); in loginclass_find()
138 LIST_INSERT_HEAD(&loginclasses, newlc, lc_next); in loginclass_find()
141 return (newlc); in loginclass_find()
192 struct loginclass *newlc; in sys_setloginclass() local
[all …]
Dkern_racct.c966 struct loginclass *oldlc, *newlc; in racct_proc_ucred_changed() local
973 newlc = newcred->cr_loginclass; in racct_proc_ucred_changed()
983 if (newlc != oldlc) { in racct_proc_ucred_changed()
985 racct_add_racct(newlc->lc_racct, p->p_racct); in racct_proc_ucred_changed()
Dkern_rctl.c1615 struct loginclass *newlc; in rctl_proc_ucred_changed() local
1620 newlc = newcred->cr_loginclass; in rctl_proc_ucred_changed()
1639 LIST_FOREACH(link, &newlc->lc_racct->r_rule_links, rrl_next) in rctl_proc_ucred_changed()
1682 LIST_FOREACH(link, &newlc->lc_racct->r_rule_links, rrl_next) { in rctl_proc_ucred_changed()