lock_ref
struct lock_ref* ref;
ref = (struct lock_ref*)calloc(1, sizeof(struct lock_ref));
static void found_cycle(struct lock_ref* visit, int level)
struct lock_ref* p;
static int detect_cycle(struct lock_ref* visit, struct lock_ref* from)
struct lock_ref* p = from;
static void search_cycle(struct lock_ref* visit, int level,
struct lock_ref* from)
struct lock_ref* ref;
RBTREE_FOR(ref, struct lock_ref*, visit->lock->smaller) {
struct lock_ref start;
struct lock_ref* o = (struct lock_ref*)node;
struct lock_ref;
struct lock_ref* dfs_next;