Extracted rio_init_xxx from rio_new_xxx