| 1377 | } |
| 1378 | |
| 1379 | static inline struct umtx_pi * |
| 1380 | umtx_pi_alloc(int flags) |
| 1381 | { |
| 1382 | struct umtx_pi *pi; |
| 1383 | |
| 1384 | pi = uma_zalloc(umtx_pi_zone, M_ZERO | flags); |
| 1385 | TAILQ_INIT(&pi->pi_blocked); |
| 1386 | atomic_add_int(&umtx_pi_allocated, 1); |
| 1387 | return (pi); |
| 1388 | } |
| 1389 | |
| 1390 | static inline void |
| 1391 | umtx_pi_free(struct umtx_pi *pi) |
no test coverage detected