Lines Matching defs:min_count
151 int min_count;
297 * Object colors, encoded with count and min_count:
298 * - white - orphan object, not enough references to it (count < min_count)
299 * - gray - not orphan, not marked as false positive (min_count == 0) or
300 * sufficient references to it (count >= min_count)
302 * (min_count == -1). No function defined for this color.
309 object->count < object->min_count;
314 return object->min_count != KMEMLEAK_BLACK &&
315 object->count >= object->min_count;
365 pr_notice(" min_count = %d\n", object->min_count);
571 int min_count, gfp_t gfp)
594 object->min_count = min_count;
722 create_object(start, ptr - start, object->min_count,
725 create_object(ptr + size, end - ptr - size, object->min_count,
733 object->min_count = color;
882 * @min_count: minimum number of references to this object. If during memory
883 * scanning a number of references less than @min_count is found,
884 * the object is reported as a memory leak. If @min_count is 0,
885 * the object is never reported as a leak. If @min_count is -1,
892 void __ref kmemleak_alloc(const void *ptr, size_t size, int min_count,
895 pr_debug("%s(0x%p, %zu, %d)\n", __func__, ptr, size, min_count);
898 create_object((unsigned long)ptr, size, min_count, gfp);
920 * (min_count is set to 0).
943 * A min_count = 2 is needed because vm_struct contains a reference to
1119 * @min_count: minimum number of references to this object.
1123 void __ref kmemleak_alloc_phys(phys_addr_t phys, size_t size, int min_count,
1127 kmemleak_alloc(__va(phys), size, min_count, gfp);
1507 object->count = object->min_count;