Home
last modified time | relevance | path

Searched refs:g_rebootParamCmdMaxNumber (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/startup/init/services/modules/reboot/
H A Dreboot_static.c48 static int g_rebootParamCmdMaxNumber = 0; variable
117 …PLUGIN_CHECK(g_rebootParamCmdMaxNumber <= PARAM_CMD_MAX, return -1, "Param cmd max number exceed l… in AddRebootCmdExecutor_()
118 … if (g_rebootParamCmdMaxNumber == 0 || g_rebootParamCmdMaxNumber <= g_rebootParamCmdValidNumber) { in AddRebootCmdExecutor_()
119 g_rebootParamCmdMaxNumber += 5; // inc 5 once time in AddRebootCmdExecutor_()
120 ParamCmdInfo *cmdInfos = calloc(1, sizeof(ParamCmdInfo) * g_rebootParamCmdMaxNumber); in AddRebootCmdExecutor_()
133 …_CHECK(g_rebootParamCmdValidNumber >= 0 && g_rebootParamCmdValidNumber < g_rebootParamCmdMaxNumber, in AddRebootCmdExecutor_()