register_wakeup_function
register_wakeup_function(tr, is_graph(tr), 1);
ret = register_wakeup_function(tr, graph, 0);