Searched refs:PROC_CMDLINE_VALUE_OPTIONAL (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/test/ |
D | test-proc-cmdline.c | 117 … 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/ |
D | proc-cmdline.c | 89 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()
|
D | proc-cmdline.h | 10 …PROC_CMDLINE_VALUE_OPTIONAL = 1 << 1, /* the value is optional (for boolean switches that can … enumerator
|
/systemd-251/src/shared/ |
D | volatile-util.c | 17 r = proc_cmdline_get_key("systemd.volatile", PROC_CMDLINE_VALUE_OPTIONAL, &mode); in query_volatile_mode()
|
/systemd-251/src/udev/ |
D | udev-rules.c | 1930 …r = proc_cmdline_get_key(token->value, PROC_CMDLINE_VALUE_OPTIONAL|PROC_CMDLINE_IGNORE_EFI_OPTIONS… in udev_rule_apply_token_to_event()
|