FreeBSD/sys/kern/kern_rctl.c
/*
 * Release rules attached to the racct.
 */
Release rules attached to the racct.
Release rules attached to the racct .
void
rctl_racct_release(struct racct *racct)
{
	struct rctl_rule_link *link;
	ASSERT_RACCT_ENABLED();
	RACCT_LOCK_ASSERT();
	while (!LIST_EMPTY(&racct->r_rule_links)) {
		link = LIST_FIRST(&racct->r_rule_links);
		LIST_REMOVE(link, rrl_next);
		rctl_rule_release(link->rrl_rule);
		uma_zfree(rctl_rule_link_zone, link);
	}
}
void rctl_racct_release ( struct racct * racct ) { struct rctl_rule_link * link ; ASSERT_RACCT_ENABLED ( ) ; RACCT_LOCK_ASSERT ( ) ; while ( ! LIST_EMPTY ( & racct -> r_rule_links ) ) { link = LIST_FIRST ( & racct -> r_rule_links ) ; LIST_REMOVE ( link , rrl_next ) ; rctl_rule_release ( link -> rrl_rule ) ; uma_zfree ( rctl_rule_link_zone , link ) ; } }
Release rules attached to the racct.
Release rules attached to the racct .