MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rctl_racct_release

Function rctl_racct_release

freebsd/kern/kern_rctl.c:2165–2179  ·  view source on GitHub ↗

* Release rules attached to the racct. */

Source from the content-addressed store, hash-verified

2163 * Release rules attached to the racct.
2164 */
2165void
2166rctl_racct_release(struct racct *racct)
2167{
2168 struct rctl_rule_link *link;
2169
2170 ASSERT_RACCT_ENABLED();
2171 RACCT_LOCK_ASSERT();
2172
2173 while (!LIST_EMPTY(&racct->r_rule_links)) {
2174 link = LIST_FIRST(&racct->r_rule_links);
2175 LIST_REMOVE(link, rrl_next);
2176 rctl_rule_release(link->rrl_rule);
2177 uma_zfree(rctl_rule_link_zone, link);
2178 }
2179}
2180
2181static void
2182rctl_init(void)

Callers 1

racct_proc_exitFunction · 0.85

Calls 2

rctl_rule_releaseFunction · 0.85
uma_zfreeFunction · 0.50

Tested by

no test coverage detected