Lines Matching defs:link
380 struct rctl_rule_link *link;
388 LIST_FOREACH(link, &racct->r_rule_links, rrl_next) {
389 rule = link->rrl_rule;
423 struct rctl_rule_link *link;
432 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
433 rule = link->rrl_rule;
497 struct rctl_rule_link *link;
511 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
512 rule = link->rrl_rule;
518 link->rrl_exceeded = 0;
531 if (link->rrl_exceeded != 0)
562 link->rrl_exceeded = 1;
565 if (link->rrl_exceeded != 0)
591 link->rrl_exceeded = 1;
658 if (link->rrl_exceeded != 0)
674 link->rrl_exceeded = 1;
694 struct rctl_rule_link *link;
704 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
705 rule = link->rrl_rule;
721 struct rctl_rule_link *link;
733 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
734 rule = link->rrl_rule;
877 struct rctl_rule_link *link;
883 link = uma_zalloc(rctl_rule_link_zone, M_WAITOK);
884 link->rrl_rule = rule;
885 link->rrl_exceeded = 0;
888 LIST_INSERT_HEAD(&racct->r_rule_links, link, rrl_next);
895 struct rctl_rule_link *link;
901 link = uma_zalloc(rctl_rule_link_zone, M_NOWAIT);
902 if (link == NULL)
905 link->rrl_rule = rule;
906 link->rrl_exceeded = 0;
908 LIST_INSERT_HEAD(&racct->r_rule_links, link, rrl_next);
922 struct rctl_rule_link *link, *linktmp;
928 LIST_FOREACH_SAFE(link, &racct->r_rule_links, rrl_next, linktmp) {
929 if (!rctl_rule_matches(link->rrl_rule, filter))
932 LIST_REMOVE(link, rrl_next);
933 rctl_rule_release(link->rrl_rule);
934 uma_zfree(rctl_rule_link_zone, link);
1683 struct rctl_rule_link *link;
1689 LIST_FOREACH(link, &racct->r_rule_links, rrl_next) {
1690 if (!rctl_rule_matches(link->rrl_rule, filter))
1692 rctl_rule_to_sbuf(sb, link->rrl_rule);
1702 struct rctl_rule_link *link;
1739 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
1744 if (link->rrl_rule->rr_subject_type !=
1747 if (!rctl_rule_matches(link->rrl_rule, filter))
1749 rctl_rule_to_sbuf(sb, link->rrl_rule);
1788 struct rctl_rule_link *link;
1840 LIST_FOREACH(link, &filter->rr_subject.rs_proc->p_racct->r_rule_links,
1842 rctl_rule_to_sbuf(sb, link->rrl_rule);
1951 struct rctl_rule_link *link, *newlink;
1972 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
1973 if (link->rrl_rule->rr_subject_type ==
1977 LIST_FOREACH(link, &newuip->ui_racct->r_rule_links, rrl_next)
1979 LIST_FOREACH(link, &newlc->lc_racct->r_rule_links, rrl_next)
1981 LIST_FOREACH(link, &newprr->prr_racct->r_rule_links, rrl_next)
2002 LIST_FOREACH(link, &p->p_racct->r_rule_links, rrl_next) {
2003 if (link->rrl_rule->rr_subject_type ==
2007 rctl_rule_acquire(link->rrl_rule);
2008 newlink->rrl_rule = link->rrl_rule;
2009 newlink->rrl_exceeded = link->rrl_exceeded;
2015 LIST_FOREACH(link, &newuip->ui_racct->r_rule_links, rrl_next) {
2018 rctl_rule_acquire(link->rrl_rule);
2019 newlink->rrl_rule = link->rrl_rule;
2020 newlink->rrl_exceeded = link->rrl_exceeded;
2025 LIST_FOREACH(link, &newlc->lc_racct->r_rule_links, rrl_next) {
2028 rctl_rule_acquire(link->rrl_rule);
2029 newlink->rrl_rule = link->rrl_rule;
2030 newlink->rrl_exceeded = link->rrl_exceeded;
2035 LIST_FOREACH(link, &newprr->prr_racct->r_rule_links, rrl_next) {
2038 rctl_rule_acquire(link->rrl_rule);
2039 newlink->rrl_rule = link->rrl_rule;
2040 newlink->rrl_exceeded = link->rrl_exceeded;
2050 link = LIST_FIRST(&p->p_racct->r_rule_links);
2051 LIST_REMOVE(link, rrl_next);
2052 rctl_rule_release(link->rrl_rule);
2053 uma_zfree(rctl_rule_link_zone, link);
2099 struct rctl_rule_link *link;
2113 LIST_FOREACH(link, &parent->p_racct->r_rule_links, rrl_next) {
2114 if (link->rrl_rule->rr_subject_type ==
2116 rule = rctl_rule_duplicate(link->rrl_rule, M_NOWAIT);
2129 link->rrl_rule);
2139 link = LIST_FIRST(&child->p_racct->r_rule_links);
2140 LIST_REMOVE(link, rrl_next);
2141 rctl_rule_release(link->rrl_rule);
2142 uma_zfree(rctl_rule_link_zone, link);
2154 struct rctl_rule_link *link;
2160 link = LIST_FIRST(&racct->r_rule_links);
2161 LIST_REMOVE(link, rrl_next);
2162 rctl_rule_release(link->rrl_rule);
2163 uma_zfree(rctl_rule_link_zone, link);