Lines Matching defs:racct
46 #include <sys/racct.h>
82 * 'rctl_rule_link' connects a rule with every racct it's related to.
644 * Connect the rule to the racct, increasing refcount for the rule.
647 rctl_racct_add_rule(struct racct *racct, struct rctl_rule *rule)
660 LIST_INSERT_HEAD(&racct->r_rule_links, link, rrl_next);
665 rctl_racct_add_rule_locked(struct racct *racct, struct rctl_rule *rule)
680 LIST_INSERT_HEAD(&racct->r_rule_links, link, rrl_next);
690 rctl_racct_remove_rules(struct racct *racct,
699 LIST_FOREACH_SAFE(link, &racct->r_rule_links, rrl_next, linktmp) {
1048 * for example, is not deniable in the racct sense, but the
1148 rctl_rule_remove_callback(struct racct *racct, void *arg2, void *arg3)
1156 found += rctl_racct_remove_rules(racct, filter);
1316 rctl_racct_to_sbuf(struct racct *racct, int sloppy)
1328 amount = racct->r_resources[i];
1416 rctl_get_rules_callback(struct racct *racct, void *arg2, void *arg3)
1425 LIST_FOREACH(link, &racct->r_rule_links, rrl_next) {
1823 KASSERT(parent->p_racct != NULL, ("process without racct; p = %p", parent));
1869 * Release rules attached to the racct.
1872 rctl_racct_release(struct racct *racct)
1879 while (!LIST_EMPTY(&racct->r_rule_links)) {
1880 link = LIST_FIRST(&racct->r_rule_links);