Searched refs:gray_list (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/mm/
H A Dkmemleak.c46 * unreferenced objects at a time. The gray_list contains the objects which
49 * scan_mutex is held. At the end of a scan, the gray_list is always empty.
51 * added to the gray_list and therefore cannot be freed. This mutex also
143 * object->lock. Insertions or deletions from object_list, gray_list or
152 struct list_head gray_list; member in struct:kmemleak_object
193 static LIST_HEAD(gray_list);
553 INIT_LIST_HEAD(&object->gray_list); create_object()
1223 * added to the gray_list. scan_block()
1227 /* put_object() called when removing from gray_list */ scan_block()
1229 list_add_tail(&object->gray_list, &gray_list); scan_block()
1309 object = list_entry(gray_list.next, typeof(*object), gray_list); scan_gray_list()
1310 while (&object->gray_list != &gray_list) { scan_gray_list()
1317 tmp = list_entry(object->gray_list.next, typeof(*object), scan_gray_list()
1318 gray_list); scan_gray_list()
1321 list_del(&object->gray_list); scan_gray_list()
1326 WARN_ON(!list_empty(&gray_list)); scan_gray_list()
1361 list_add_tail(&object->gray_list, &gray_list); kmemleak_scan()
1432 list_add_tail(&object->gray_list, &gray_list);

Completed in 68 milliseconds