| 1416 | } |
| 1417 | |
| 1418 | static void |
| 1419 | rctl_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. |
nothing calls this directly
no test coverage detected