Lines Matching defs:value
35 * a) if sn value in cmdline is started with "/", it means a file to be read as parameter value
45 int (*processor)(const char *name, const char *value);
59 static int CommonDealFun(const char *name, const char *value)
62 PARAM_LOGV("Add param from cmdline %s %s", name, value);
65 PARAM_LOGV("Param name %s, value %s", name, value);
66 ret = WriteParam(name, value, NULL, 0);
67 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value);
88 PARAM_LOGV("**** name %s, value %s", name, data);
97 static int SnDealFun(const char *name, const char *value)
101 if (value != NULL && value[0] != '/') {
102 PARAM_LOGV("**** name %s, value %s", name, value);
103 ret = WriteParam(OHOS_SN_PARAM_NAME, value, NULL, 0);
104 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", name, value);
107 if (value != NULL && value[0] == '/') {
108 ret = ReadSnFromFile(OHOS_SN_PARAM_NAME, value);
116 static int Common2ConstDealFun(const char *name, const char *value)
129 PARAM_LOGV("Param name %s, value %s", fullName, value);
130 ret = WriteParam(fullName, value, NULL, 0);
131 PARAM_CHECK(ret == 0, return ret, "Failed to write param %s %s", fullName, value);
172 ret = (container->cmdLineInfo + i)->processor(fullName, nv->value);
203 PARAM_LOGV("proc cmdline: name [%s], value [%s]", nv->name, nv->value);
215 PARAM_LOGV("match reserver cmd line success, name: %s, value: %s", nv->name, nv->value);
224 CommonDealFun(nv->name, nv->value);
286 static int LoadOneParam_(const uint32_t *context, const char *name, const char *value)
299 filter.value = value;
304 PARAM_LOGV("Default parameter [%s] [%s] ignored", name, value);
309 PARAM_LOGV("Add default parameter [%s] [%s]", name, value);
310 return WriteParam(name, value, NULL, mode & LOAD_PARAM_ONLY_ADD);
334 PARAM_LOGE("Failed to get value of import.");
490 static int LoadOneParamAreaSize_(const uint32_t *context, const char *name, const char *value)
492 uint32_t size = (uint32_t)strtoul(value, NULL, DECIMAL_BASE);
493 PARAM_LOGV("LoadOneParamAreaSize_ [%s] [%s]", name, value);