Lines Matching defs:min_count

158 	int min_count;
315 * Object colors, encoded with count and min_count:
316 * - white - orphan object, not enough references to it (count < min_count)
317 * - gray - not orphan, not marked as false positive (min_count == 0) or
318 * sufficient references to it (count >= min_count)
320 * (min_count == -1). No function defined for this color.
327 object->count < object->min_count;
332 return object->min_count != KMEMLEAK_BLACK &&
333 object->count >= object->min_count;
386 pr_notice(" min_count = %d\n", object->min_count);
632 int min_count, gfp_t gfp, bool is_phys)
656 object->min_count = min_count;
727 int min_count, gfp_t gfp)
729 __create_object(ptr, size, min_count, gfp, false);
734 int min_count, gfp_t gfp)
736 __create_object(ptr, size, min_count, gfp, true);
805 __create_object(start, ptr - start, object->min_count,
808 __create_object(ptr + size, end - ptr - size, object->min_count,
816 object->min_count = color;
965 * @min_count: minimum number of references to this object. If during memory
966 * scanning a number of references less than @min_count is found,
967 * the object is reported as a memory leak. If @min_count is 0,
968 * the object is never reported as a leak. If @min_count is -1,
975 void __ref kmemleak_alloc(const void *ptr, size_t size, int min_count,
978 pr_debug("%s(0x%p, %zu, %d)\n", __func__, ptr, size, min_count);
981 create_object((unsigned long)ptr, size, min_count, gfp);
1003 * (min_count is set to 0).
1026 * A min_count = 2 is needed because vm_struct contains a reference to
1211 * assume min_count 0.
1647 object->count = object->min_count;