| 59 | } |
| 60 | |
| 61 | static __inline void |
| 62 | refcount_init(volatile u_int *count, u_int value) |
| 63 | { |
| 64 | KASSERT(!REFCOUNT_SATURATED(value), |
| 65 | ("invalid initial refcount value %u", value)); |
| 66 | atomic_store_int(count, value); |
| 67 | } |
| 68 | |
| 69 | static __inline u_int |
| 70 | refcount_load(volatile u_int *count) |
no outgoing calls
no test coverage detected