| 738 | } |
| 739 | |
| 740 | int |
| 741 | racct_set(struct proc *p, int resource, uint64_t amount) |
| 742 | { |
| 743 | int error; |
| 744 | |
| 745 | if (!racct_enable) |
| 746 | return (0); |
| 747 | |
| 748 | SDT_PROBE3(racct, , rusage, set__force, p, resource, amount); |
| 749 | |
| 750 | RACCT_LOCK(); |
| 751 | error = racct_set_locked(p, resource, amount, 0); |
| 752 | RACCT_UNLOCK(); |
| 753 | return (error); |
| 754 | } |
| 755 | |
| 756 | void |
| 757 | racct_set_force(struct proc *p, int resource, uint64_t amount) |
no test coverage detected