On Wed, Mar 28, 2018 at 08:55:31AM +0000, Andriy Gapon wrote: > +static __inline int > +refcount_acquire_if_not_zero(volatile u_int *count) What about refcount_acquire_nz() > +static __inline int > +refcount_release_if_not_last(volatile u_int *count) refcount_release_nz()