Lines Matching refs:cmdline
29 * Loading system parameter from /proc/cmdline by the following rules:
30 * 1) reserved cmdline with or without ohos.boot. prefix listed in CmdlineIterator
32 * 2) cmdline not listed in CmdlineIterator but prefixed with ohos.boot will be add by default
35 * a) if sn value in cmdline is started with "/", it means a file to be read as parameter value
54 char *cmdline;
62 PARAM_LOGV("Add param from cmdline %s %s", name, value);
171 PARAM_LOGV("proc cmdline %s matched.", fullName);
199 char *data = (char *)ctx->cmdline;
203 PARAM_LOGV("proc cmdline: name [%s], value [%s]", nv->name, nv->value);
222 // cmdline with prefix but not matched, add to param by default
223 PARAM_LOGI("add proc cmdline param %s by default.", nv->name);
247 ctx.cmdline = ReadFileData(BOOT_CMD_LINE);
248 PARAM_CHECK(ctx.cmdline != NULL, return -1, "Failed to read file %s", BOOT_CMD_LINE);
251 IterateNameValuePairs(ctx.cmdline, CmdlineIterator, (void *)(&ctx));
259 free(ctx.cmdline);