Lines Matching refs:kref
7 To use a kref, add one to your data structures like:
13 struct kref refcount;
18 The kref can occur anywhere within the data structure.
20 You must initialize the kref after you allocate it. To do this, call
30 This sets the refcount in the kref to 1.
32 Once you have an initialized kref, you must follow the following
39 If you already have a valid pointer to a kref-ed structure (the
46 a valid pointer to a kref-ed structure without already
50 3) If the code attempts to gain a reference to a kref-ed structure
58 void data_release(struct kref *ref)
140 instance, you have a list of items that are each kref-ed, and you wish
150 struct kref refcount;
166 static void release_entry(struct kref *ref)
186 static void release_entry(struct kref *ref)
233 static void release_entry(struct kref *ref)
263 struct kref refcount;
281 static void release_entry_rcu(struct kref *ref)
296 But note that the struct kref member needs to remain in valid memory for a