| 489 | } |
| 490 | |
| 491 | static void |
| 492 | mac_policy_fastpath_unregister(struct mac_policy_conf *mpc) |
| 493 | { |
| 494 | struct mac_policy_fastpath_elem *mpfe; |
| 495 | uintptr_t **ops; |
| 496 | int i; |
| 497 | |
| 498 | mac_policy_xlock_assert(); |
| 499 | |
| 500 | ops = (uintptr_t **)mpc->mpc_ops; |
| 501 | for (i = 0; i < nitems(mac_policy_fastpath_array); i++) { |
| 502 | mpfe = &mac_policy_fastpath_array[i]; |
| 503 | if (ops[mpfe->offset] != NULL) |
| 504 | mac_policy_fastpath_disable(mpfe); |
| 505 | } |
| 506 | } |
| 507 | |
| 508 | #undef FPO |
| 509 |
no test coverage detected