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

Function rctl_rule_remove_callback

freebsd/kern/kern_rctl.c:1418–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416}
1417
1418static void
1419rctl_rule_remove_callback(struct racct *racct, void *arg2, void *arg3)
1420{
1421 struct rctl_rule *filter = (struct rctl_rule *)arg2;
1422 int found = 0;
1423
1424 ASSERT_RACCT_ENABLED();
1425 RACCT_LOCK_ASSERT();
1426
1427 found += rctl_racct_remove_rules(racct, filter);
1428
1429 *((int *)arg3) += found;
1430}
1431
1432/*
1433 * Remove all rules that match the filter.

Callers

nothing calls this directly

Calls 1

rctl_racct_remove_rulesFunction · 0.85

Tested by

no test coverage detected