Home
last modified time | relevance | path

Searched refs:PROC_CMDLINE_VALUE_OPTIONAL (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-proc-cmdline.c117 … assert_se(proc_cmdline_get_key("abc", PROC_CMDLINE_VALUE_OPTIONAL, &value) == 0 && value == NULL); in TEST()
121 …assert_se(proc_cmdline_get_key("foo_bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(va… in TEST()
125 …assert_se(proc_cmdline_get_key("foo-bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(va… in TEST()
128 assert_se(proc_cmdline_get_key("foo-bar", PROC_CMDLINE_VALUE_OPTIONAL, NULL) == -EINVAL); in TEST()
132 …assert_se(proc_cmdline_get_key("wuff-piep", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(… in TEST()
136 …assert_se(proc_cmdline_get_key("wuff_piep", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(… in TEST()
139 assert_se(proc_cmdline_get_key("wuff_piep", PROC_CMDLINE_VALUE_OPTIONAL, NULL) == -EINVAL); in TEST()
142 … assert_se(proc_cmdline_get_key("zumm", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && value == NULL); in TEST()
/systemd-251/src/basic/
Dproc-cmdline.c89 assert(!FLAGS_SET(flags, PROC_CMDLINE_VALUE_OPTIONAL)); in proc_cmdline_parse_given()
208 } else if (*e == 0 && FLAGS_SET(flags, PROC_CMDLINE_VALUE_OPTIONAL)) in cmdline_get_key()
246 if (FLAGS_SET(flags, PROC_CMDLINE_VALUE_OPTIONAL) && !ret_value) in proc_cmdline_get_key()
286 r = proc_cmdline_get_key(key, PROC_CMDLINE_VALUE_OPTIONAL, &v); in proc_cmdline_get_bool()
314 assert(!FLAGS_SET(flags, PROC_CMDLINE_VALUE_OPTIONAL)); in proc_cmdline_get_key_many_internal()
Dproc-cmdline.h10PROC_CMDLINE_VALUE_OPTIONAL = 1 << 1, /* the value is optional (for boolean switches that can … enumerator
/systemd-251/src/shared/
Dvolatile-util.c17 r = proc_cmdline_get_key("systemd.volatile", PROC_CMDLINE_VALUE_OPTIONAL, &mode); in query_volatile_mode()
/systemd-251/src/udev/
Dudev-rules.c1930 …r = proc_cmdline_get_key(token->value, PROC_CMDLINE_VALUE_OPTIONAL|PROC_CMDLINE_IGNORE_EFI_OPTIONS… in udev_rule_apply_token_to_event()