Lines Matching refs:kref_put
42 2) When you are done with a pointer, you must call kref_put():
43 kref_put(&data->refcount, data_release);
52 where a kref_put() cannot occur during the kref_get(), and the
70 kref_put(&data->refcount, data_release);
94 kref_put(&data->refcount, data_release);
99 data, the kref_put() handles knowing when the data is not referenced
131 kref_put(&obj->ref, obj_cleanup);
177 kref_put(&entry->refcount, release_entry);
181 The kref_put() return value is useful if you do not want to hold the
184 pointless to do so). You could use kref_put() as follows:
188 /* All work is done after the return from kref_put(). */
194 if (kref_put(&entry->refcount, release_entry)) {
245 kref_put(&entry->refcount, release_entry);
248 Which is useful to remove the mutex lock around kref_put() in put_entry(), but
293 kref_put(&entry->refcount, release_entry_rcu);