lib/ovs-atomic.h
/* Increments 'refcount'.
 *
 * Does not provide a memory barrier, as the calling thread must have
 * protected access to the object already. */
Increments 'refcount'.
Does not provide a memory barrier, as the calling thread must have
protected access to the object already.
Increments ' refcount ' . Does not provide a memory barrier as the calling thread must have protected access to the object already .
static inline void
ovs_refcount_ref(struct ovs_refcount *refcount)
{
    unsigned int old_refcount;
    atomic_add_explicit(&refcount->count, 1u, &old_refcount,
                        memory_order_relaxed);
    ovs_assert(old_refcount > 0);
}
static inline void ovs_refcount_ref ( struct ovs_refcount * refcount ) { unsigned int old_refcount ; atomic_add_explicit ( & refcount -> count , 1u , & old_refcount , memory_order_relaxed ) ; ovs_assert ( old_refcount > 0 ) ; }
Increments 'refcount'.
Increments ' refcount ' .