find_next_ancestor
knparent = find_next_ancestor(kn, NULL);
kntmp = find_next_ancestor(kn, knparent);