| 100 | |
| 101 | #ifdef UNR64_LOCKED |
| 102 | uint64_t |
| 103 | alloc_unr64(struct unrhdr64 *unr64) |
| 104 | { |
| 105 | uint64_t item; |
| 106 | |
| 107 | mtx_lock(&unitmtx); |
| 108 | item = unr64->counter++; |
| 109 | mtx_unlock(&unitmtx); |
| 110 | return (item); |
| 111 | } |
| 112 | #endif |
| 113 | |
| 114 | #else /* ...USERLAND */ |
no test coverage detected