MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cmdline_set_env

Function cmdline_set_env

freebsd/arm64/arm64/machdep_boot.c:132–150  ·  view source on GitHub ↗

Convert the U-Boot command line into FreeBSD kenv and boot options. */

Source from the content-addressed store, hash-verified

130
131/* Convert the U-Boot command line into FreeBSD kenv and boot options. */
132static void
133cmdline_set_env(char *cmdline, const char *guard)
134{
135 size_t guard_len;
136
137 /* Skip leading spaces. */
138 while (isspace(*cmdline))
139 cmdline++;
140
141 /* Test and remove guard. */
142 if (guard != NULL && guard[0] != '\0') {
143 guard_len = strlen(guard);
144 if (strncasecmp(cmdline, guard, guard_len) != 0)
145 return;
146 cmdline += guard_len;
147 }
148
149 boothowto |= boot_parse_cmdline(cmdline);
150}
151
152void
153parse_fdt_bootargs(void)

Callers 1

parse_fdt_bootargsFunction · 0.70

Calls 3

isspaceFunction · 0.85
strncasecmpFunction · 0.85
boot_parse_cmdlineFunction · 0.85

Tested by

no test coverage detected