Lines Matching full:release
51 * @release: Pointer to the function that will clean up the object when the
54 * Decrement the refcount, and if 0, call @release. The caller may not
55 * pass NULL or kfree() as the release function.
62 static inline int kref_put(struct kref *kref, void (*release)(struct kref *kref)) in kref_put()
65 release(kref); in kref_put()
74 * @release: Pointer to the function that will clean up the object when the
76 * @mutex: Mutex which protects the release function.
78 * This variant of kref_lock() calls the @release function with the @mutex
79 * held. The @release function will release the mutex.
82 void (*release)(struct kref *kref), in kref_put_mutex()
86 release(kref); in kref_put_mutex()
95 * @release: Pointer to the function that will clean up the object when the
97 * @lock: Spinlock which protects the release function.
99 * This variant of kref_lock() calls the @release function with the @lock
100 * held. The @release function will release the lock.
103 void (*release)(struct kref *kref), in kref_put_lock()
107 release(kref); in kref_put_lock()