Lines Matching refs:mode
33 static int DoRebootByInitPlugin(const char *mode, const char *option)
37 if (mode != NULL) {
39 ret = snprintf_s(value, MAX_REBOOT_OPTION_SIZE, MAX_REBOOT_OPTION_SIZE - 1, "reboot,%s:%s", mode, option);
41 ret = snprintf_s(value, MAX_REBOOT_OPTION_SIZE, MAX_REBOOT_OPTION_SIZE - 1, "reboot,%s", mode);
50 BEGET_ERROR_CHECK(ret >= 0, return -1, "Failed to format boot mode ");
59 static int ExecReboot(const char *mode, const char *option)
68 DoRebootByInitPlugin(mode, option);
79 DoRebootByInitPlugin(mode, option);
90 int DoRebootExt(const char *mode, const char *option)
92 return ExecReboot(mode, option);