Lines Matching defs:use_count
40 * Note that the kmemleak_object.use_count is incremented when an object is
53 * The kmemleak_object structures have a use_count incremented or decremented
54 * using the get_object()/put_object() functions. When the use_count becomes
141 * (use_count) and freed using the RCU mechanism.
150 /* object usage count; object freed when use_count == 0 */
151 atomic_t use_count;
438 * Increment the object use_count. Return 1 if successful or 0 otherwise. Note
439 * that once an object's use_count reached 0, the RCU freeing was already
445 return atomic_inc_not_zero(&object->use_count);
507 * Once use_count is 0 (guaranteed by put_object), there is no other
518 * Decrement the object use_count. Once the count is 0, free the object using
526 if (!atomic_dec_and_test(&object->use_count))
544 * Look up an object in the object search tree and increase its use_count.
589 * returned object's use_count should be at least 1, as initially set
651 atomic_set(&object->use_count, 1);
747 WARN_ON(atomic_read(&object->use_count) < 1);
1343 * object->use_count cannot be dropped to 0 while the object
1404 * that object->use_count >= 1.
1465 * outside the loop because their use_count was incremented.
1539 if (atomic_read(&object->use_count) > 1) {
1540 pr_debug("object->use_count = %d\n",
1541 atomic_read(&object->use_count));
1769 * the required position with its use_count incremented. The function triggers
1796 * use_count of the previous object and increases that of the next one.
1818 * Decrement the use_count of the last object required, if any.