share wait_linkup(), remove obsolete functions