Home
last modified time | relevance | path

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

/base/startup/init/services/init/standard/
Dinit_cmdexecutor.c29 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd) in AddCmdExecutor() argument
31 INIT_ERROR_CHECK(cmdName != NULL, return -1, "Invalid input param"); in AddCmdExecutor()
32 INIT_LOGV("Add command '%s' executor.", cmdName); in AddCmdExecutor()
34 InitGroupNode *groupNode = GetGroupNode(NODE_TYPE_CMDS, cmdName); in AddCmdExecutor()
36 groupNode = AddGroupNode(NODE_TYPE_CMDS, cmdName); in AddCmdExecutor()
60 void RemoveCmdExecutor(const char *cmdName, int id) in RemoveCmdExecutor() argument
62 INIT_ERROR_CHECK(cmdName != NULL, return, "Invalid input param"); in RemoveCmdExecutor()
63 InitGroupNode *groupNode = GetGroupNode(NODE_TYPE_CMDS, cmdName); in RemoveCmdExecutor()
65 return, "Can not find cmd %s", cmdName); in RemoveCmdExecutor()
81 DelGroupNode(NODE_TYPE_CMDS, cmdName); in RemoveCmdExecutor()
[all …]
/base/startup/init/interfaces/innerkits/init_module_engine/include/
Dinit_module_engine.h41 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd);
43 void RemoveCmdExecutor(const char *cmdName, int id);
Dinit_cmdexecutor.h47 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd);
Dbootstage.h106 const char *cmdName; /* cmd name */ member
/base/startup/init/test/unittest/innerkits/
Dmodulemgr_unittest.cpp63 const char *cmdName = PluginGetCmdIndex(cmdContent, &cmdIndex); variable
64 ASSERT_EQ(strcmp(cmdName, testName), 0);
65 printf("TestCmdExecutor cmdIndex 0x%04x, name %s \n", cmdIndex, cmdName);
70 PluginExecCmdByName(cmdName, cmdContent);
72 PluginExecCmdByName(cmdName, nullptr);
73 PluginExecCmdByName(cmdName, cmdContentNotValid);
/base/startup/init/services/modules/reboot/
Dreboot_static.c69 char *cmdName = Dup2String(REBOOT_CMD_PREFIX, cmd); in CheckParamCmdExist() local
70 PLUGIN_CHECK(cmdName != NULL, return 0, "Failed to copy %s", cmd); in CheckParamCmdExist()
72 if (strcmp(g_rebootParamCmdInfos[i].cmd, cmdName) == 0) { in CheckParamCmdExist()
73 free(cmdName); in CheckParamCmdExist()
77 free(cmdName); in CheckParamCmdExist()
/base/update/updater/services/flashd/daemon/
Dcommander.h46 void SetCmdName(const std::string &cmdName) in SetCmdName() argument
48 cmdName_ = cmdName; in SetCmdName()
/base/update/updater/services/include/applypatch/
Dapply_patch.h24 std::string cmdName; /* bsdiff, imgdiff, new, move etc. */ member
/base/startup/init/services/init/
Dinit_common_cmds.c48 static void InitCmdHookExecute(const char *cmdName, const char *cmdContent, INIT_TIMING_STAT *cmdTi… in InitCmdHookExecute() argument
52 context.cmdName = cmdName; in InitCmdHookExecute()
756 const char *cmdName = NULL; in DoCmdByIndex() local
758 cmdName = commCmds[index].name; in DoCmdByIndex()
764 cmdName = cmds[index - cmdCnt].name; in DoCmdByIndex()
768 cmdName = GetPluginCmdNameByIndex(index); in DoCmdByIndex()
769 if (cmdName == NULL) { in DoCmdByIndex()
770 cmdName = "Unknown"; in DoCmdByIndex()
777 InitCmdHookExecute(cmdName, cmdContent, &cmdTimer); in DoCmdByIndex()
779 …INIT_LOGV("Execute command \"%s %s\" took %lld ms", cmdName, cmdContent, diff / 1000); // 1000 is … in DoCmdByIndex()
/base/startup/init/services/init/include/
Dinit_cmdexecutor.h47 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd);
/base/startup/init/services/param/manager/
Dparam_manager.c272 int ret = strcpy_s((*ctrlInfo)->cmdName, sizeof((*ctrlInfo)->cmdName), cmd); in CreateCtrlInfo()
370 …serviceInfo->realKey, serviceInfo->cmdName, (char *)serviceInfo->realKey + serviceInfo->valueOffse… in CheckParameterSet()
371 DoCmdByName(serviceInfo->cmdName, (char *)serviceInfo->realKey + serviceInfo->valueOffset); in CheckParameterSet()
/base/startup/init/services/param/include/
Dparam_manager.h85 char cmdName[32]; member
/base/startup/init/services/begetctl/shell/
Dshell_bas.c575 const char *cmdName = GetRealCmdName(argv[0]); in BShellEnvGetCmd() local
576 BSH_LOGV("BShellEnvGetCmd %s cmd %s", argv[0], cmdName); in BShellEnvGetCmd()
580 if (strcmp(cmd->name, cmdName) != 0) { in BShellEnvGetCmd()
594 tmp = (char *)cmdName; in BShellEnvGetCmd()
/base/startup/init/services/modules/bootevent/
Dbootevent.c422 const char *bootEventArgv[] = {"cmd", cmdCtx->cmdName, cmdCtx->cmdContent, cmdCtx->reserved}; in RecordInitCmd()