FreeBSD/sys/kern/kern_rctl.c
/*
 * Connect the rule to the racct, increasing refcount for the rule.
 */
Connect the rule to the racct, increasing refcount for the rule.
Connect the rule to the racct increasing refcount for the rule .
static void
rctl_racct_add_rule(struct racct *racct, struct rctl_rule *rule)
{
	struct rctl_rule_link *link;
	ASSERT_RACCT_ENABLED();
	KASSERT(rctl_rule_fully_specified(rule), ("rule not fully specified"));
	rctl_rule_acquire(rule);
	link = uma_zalloc(rctl_rule_link_zone, M_WAITOK);
	link->rrl_rule = rule;
	link->rrl_exceeded = 0;
	RACCT_LOCK();
	LIST_INSERT_HEAD(&racct->r_rule_links, link, rrl_next);
	RACCT_UNLOCK();
}
static void rctl_racct_add_rule ( struct racct * racct , struct rctl_rule * rule ) { struct rctl_rule_link * link ; ASSERT_RACCT_ENABLED ( ) ; KASSERT ( rctl_rule_fully_specified ( rule ) , ( " " ) ) ; rctl_rule_acquire ( rule ) ; link = uma_zalloc ( rctl_rule_link_zone , M_WAITOK ) ; link -> rrl_rule = rule ; link -> rrl_exceeded = 0 ; RACCT_LOCK ( ) ; LIST_INSERT_HEAD ( & racct -> r_rule_links , link , rrl_next ) ; RACCT_UNLOCK ( ) ; }
Connect the rule to the racct, increasing refcount for the rule.
Connect the rule to the racct increasing refcount for the rule .