adm_detach
retcode = adm_detach(adm_ctx->device, parms.force_detach);
retcode = adm_detach(device, 0);