| 1697 | } |
| 1698 | |
| 1699 | int |
| 1700 | cpuset_setproc_update_set(struct proc *p, struct cpuset *set) |
| 1701 | { |
| 1702 | int error; |
| 1703 | |
| 1704 | KASSERT(p != NULL, ("[%s:%d] invalid proc", __func__, __LINE__)); |
| 1705 | KASSERT(set != NULL, ("[%s:%d] invalid set", __func__, __LINE__)); |
| 1706 | |
| 1707 | cpuset_ref(set); |
| 1708 | error = cpuset_setproc(p->p_pid, set, NULL, NULL, true); |
| 1709 | if (error) |
| 1710 | return (error); |
| 1711 | cpuset_rel(set); |
| 1712 | return (0); |
| 1713 | } |
| 1714 | |
| 1715 | /* |
| 1716 | * In Capability mode, the only accesses that are permitted are to the current |
no test coverage detected