Searched refs:ctrlInfo (Results 1 – 2 of 2) sorted by relevance
/base/startup/init/services/param/manager/ |
D | param_manager.c | 262 static int CreateCtrlInfo(ServiceCtrlInfo **ctrlInfo, const char *cmd, uint32_t offset, in CreateCtrlInfo() argument 265 *ctrlInfo = calloc(1, sizeof(ServiceCtrlInfo)); in CreateCtrlInfo() 266 PARAM_CHECK(ctrlInfo != NULL, return -1, "Failed to alloc memory %s", cmd); in CreateCtrlInfo() 269 int len = vsnprintf_s((*ctrlInfo)->realKey, in CreateCtrlInfo() 270 sizeof((*ctrlInfo)->realKey), sizeof((*ctrlInfo)->realKey) - 1, format, vargs); in CreateCtrlInfo() 272 int ret = strcpy_s((*ctrlInfo)->cmdName, sizeof((*ctrlInfo)->cmdName), cmd); in CreateCtrlInfo() 273 (*ctrlInfo)->valueOffset = offset; in CreateCtrlInfo() 275 free(*ctrlInfo); in CreateCtrlInfo() 278 (*ctrlInfo)->ctrlParam = ctrlParam; in CreateCtrlInfo() 282 …int GetServiceCtrlInfoForPowerCtrl(const char *name, const char *value, ServiceCtrlInfo **ctrlInfo) in GetServiceCtrlInfoForPowerCtrl() argument [all …]
|
/base/startup/init/services/param/include/ |
D | param_manager.h | 131 …_LOCAL_API int GetServiceCtrlInfo(const char *name, const char *value, ServiceCtrlInfo **ctrlInfo);
|