Home
last modified time | relevance | path

Searched refs:proc_cmdline_get_key (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/test/
Dtest-proc-cmdline.c38 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
41 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
44 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
51 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
54 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
57 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
109 TEST(proc_cmdline_get_key) { in TEST() argument
114 assert_se(proc_cmdline_get_key("", 0, &value) == -EINVAL); in TEST()
115 assert_se(proc_cmdline_get_key("abc", 0, NULL) == 0); in TEST()
116 assert_se(proc_cmdline_get_key("abc", 0, &value) == 0 && value == NULL); in TEST()
[all …]
/systemd-251/src/basic/
Dproc-cmdline.c225 int proc_cmdline_get_key(const char *key, ProcCmdlineFlags flags, char **ret_value) { in proc_cmdline_get_key() function
286 r = proc_cmdline_get_key(key, PROC_CMDLINE_VALUE_OPTIONAL, &v); in proc_cmdline_get_bool()
Dproc-cmdline.h22 int proc_cmdline_get_key(const char *parameter, ProcCmdlineFlags flags, char **value);
Dterminal-util.c1331 (void) proc_cmdline_get_key("TERM", 0, &s); in dev_console_colors_enabled()
/systemd-251/src/shared/
Dvolatile-util.c17 r = proc_cmdline_get_key("systemd.volatile", PROC_CMDLINE_VALUE_OPTIONAL, &mode); in query_volatile_mode()
Dnetif-naming-scheme.c56 (void) proc_cmdline_get_key("net.naming-scheme", 0, &buffer); in naming_scheme()
Dhostname-setup.c150 r = proc_cmdline_get_key("systemd.hostname", 0, &b); in hostname_setup()
Dcgroup-setup.c104 r = proc_cmdline_get_key("cgroup_no_v1", 0, &c); in cg_is_unified_wanted()
/systemd-251/src/systemctl/
Dsystemctl-switch-root.c32 r = proc_cmdline_get_key("init", 0, &cmdline_init); in verb_switch_root()
/systemd-251/src/core/
Dimport-creds.c530 … r = proc_cmdline_get_key("systemd.import_credentials", PROC_CMDLINE_STRIP_RD_PREFIX, &v); in import_credentials()
Dmain.c1404 r = proc_cmdline_get_key("TERM", 0, &term); in fixup_environment()
/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()