Lines Matching defs:min_count
148 int min_count;
245 int min_count; /* minimum reference count */
305 * Object colors, encoded with count and min_count:
306 * - white - orphan object, not enough references to it (count < min_count)
307 * - gray - not orphan, not marked as false positive (min_count == 0) or
308 * sufficient references to it (count >= min_count)
310 * (min_count == -1). No function defined for this color.
317 object->count < object->min_count;
322 return object->min_count != KMEMLEAK_BLACK &&
323 object->count >= object->min_count;
378 pr_notice(" min_count = %d\n", object->min_count);
508 int min_count, gfp_t gfp)
528 object->min_count = min_count;
661 create_object(start, ptr - start, object->min_count,
664 create_object(ptr + size, end - ptr - size, object->min_count,
672 object->min_count = color;
789 int min_count)
810 log->min_count = min_count;
834 log->min_count, GFP_ATOMIC);
850 * @min_count: minimum number of references to this object. If during memory
851 * scanning a number of references less than @min_count is found,
852 * the object is reported as a memory leak. If @min_count is 0,
853 * the object is never reported as a leak. If @min_count is -1,
860 void __ref kmemleak_alloc(const void *ptr, size_t size, int min_count,
863 pr_debug("%s(0x%p, %zu, %d)\n", __func__, ptr, size, min_count);
866 create_object((unsigned long)ptr, size, min_count, gfp);
868 log_early(KMEMLEAK_ALLOC, ptr, size, min_count);
1272 object->count = object->min_count;