* Walks up the tree from 'set' to find the root. */
| 157 | * Walks up the tree from 'set' to find the root. |
| 158 | */ |
| 159 | static struct cpuset * |
| 160 | cpuset_getroot(struct cpuset *set) |
| 161 | { |
| 162 | |
| 163 | while ((set->cs_flags & CPU_SET_ROOT) == 0 && set->cs_parent != NULL) |
| 164 | set = set->cs_parent; |
| 165 | return (set); |
| 166 | } |
| 167 | |
| 168 | /* |
| 169 | * Acquire a reference to a cpuset, all pointers must be tracked with refs. |
no outgoing calls
no test coverage detected