resource_find_any_free_pipe
pipe_idx = resource_find_any_free_pipe(&new_ctx->res_ctx, pool);
int resource_find_any_free_pipe(struct resource_context *new_res_ctx,
free_pipe_idx = resource_find_any_free_pipe(new_res_ctx, pool);
free_pipe_idx = resource_find_any_free_pipe(new_res_ctx, pool);