* Lock/unlock a prison. * XXX These exist not so much for general convenience, but to be useable in * the FOREACH_PRISON_DESCENDANT_LOCKED macro which can't handle them in * non-function form as currently defined. */
| 265 | * non-function form as currently defined. |
| 266 | */ |
| 267 | static __inline void |
| 268 | prison_lock(struct prison *pr) |
| 269 | { |
| 270 | |
| 271 | mtx_lock(&pr->pr_mtx); |
| 272 | } |
| 273 | |
| 274 | static __inline void |
| 275 | prison_unlock(struct prison *pr) |
no test coverage detected