Lines Matching refs:refcount
287 * @refcount: The reference-count of the event.
293 int refcount;
306 * newly allocated entry will have a refcount of one.
310 * Return: Returns the refcount entry on success. Returns an error pointer
320 struct rb_node **link = &nf->refcount.rb_node;
338 } else if (entry->refcount < INT_MAX) {
339 entry->refcount++;
352 entry->refcount = 1;
355 rb_insert_color(&entry->node, &nf->refcount);
368 * returning its entry. If the returned entry has a refcount of zero, the
373 * Return: Returns the refcount entry on success or %NULL if the entry has not
382 struct rb_node *node = nf->refcount.rb_node;
399 entry->refcount--;
400 if (entry->refcount == 0)
401 rb_erase(&entry->node, &nf->refcount);
431 if (entry && entry->refcount == 0)
442 return RB_EMPTY_ROOT(&nf->refcount);
2184 reg.target_category, id.target_category, id.instance, entry->refcount);
2186 if (entry->refcount == 1) {
2249 id.instance, entry->refcount);
2258 if (ec && entry->refcount == 0) {
2388 * but the event refcount entry is not there. Remove
2534 for (n = rb_first(&nf->refcount); n; n = rb_next(n)) {
2578 for (n = rb_first(&nf->refcount); n; n = rb_next(n)) {
2623 rbtree_postorder_for_each_entry_safe(e, n, &nf->refcount, node) {
2628 nf->refcount = RB_ROOT;