Lines Matching refs:kref
31 kref_init(struct kref *kref)33 atomic_set(&kref->refcount, 1);37 kref_get(struct kref *kref)39 atomic_inc(&kref->refcount);43 kref_put(struct kref *kref, void (*release)(struct kref *kref))45 if (!atomic_dec_uint_nv(&kref->refcount))46 release(kref);