39 size_t cmdline_len = 0;
51 cmdline_buf[cmdline_len] =
' ';
55 memcpy(cmdline_buf + cmdline_len, cmdline,
strlen(cmdline));
56 cmdline_len +=
strlen(cmdline);
59 cmdline_buf[cmdline_len] =
'\0';
61 pr_dinfo2(setup,
"cmdline: '%s'", cmdline_buf);
66 pr_warn(
"cmdline_parse: too many cmdlines");
74 char *equal_sign =
strchr(cmdlines_tmp[i],
'=');
86 func = func ? func :
"";
#define MOS_PRINTK_BUFFER_SIZE
#define MOS_EXTRA_CMDLINE
#define MOS_MAX_CMDLINE_COUNT
MOSAPI char * strchr(const char *s, int c)
MOSAPI s32 strcmp(const char *str1, const char *str2)
bool cmdline_parse_inplace(char *inbuf, size_t length, size_t cmdline_max, size_t *out_count, const char **out_cmdlines)
static bool cmdline_is_falsy(const char *arg)
bool cmdline_string_truthiness(const char *arg, bool default_value)
void mos_cmdline_init(const char *cmdline)
static bool cmdline_is_truthy(const char *arg)
cmdline_option_t * cmdline_get_option(const char *option_name)
static void * memcpy(void *s1, const void *s2, size_t n)
static size_t strlen(const char *s)
#define pr_dinfo2(feat, fmt,...)