Home
last modified time | relevance | path

Searched refs:proc_cmdline_get_bool (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/test/
Dtest-proc-cmdline.c154 TEST(proc_cmdline_get_bool) { in TEST() argument
160 assert_se(proc_cmdline_get_bool("", &value) == -EINVAL); in TEST()
161 assert_se(proc_cmdline_get_bool("abc", &value) == 0 && value == false); in TEST()
162 assert_se(proc_cmdline_get_bool("foo_bar", &value) > 0 && value == true); in TEST()
163 assert_se(proc_cmdline_get_bool("foo-bar", &value) > 0 && value == true); in TEST()
164 assert_se(proc_cmdline_get_bool("bar-waldo", &value) > 0 && value == true); in TEST()
165 assert_se(proc_cmdline_get_bool("bar_waldo", &value) > 0 && value == true); in TEST()
166 assert_se(proc_cmdline_get_bool("x_y-z", &value) > 0 && value == false); in TEST()
167 assert_se(proc_cmdline_get_bool("x-y-z", &value) > 0 && value == false); in TEST()
168 assert_se(proc_cmdline_get_bool("x-y_z", &value) > 0 && value == false); in TEST()
[all …]
/systemd-251/src/basic/
Dproc-cmdline.h23 int proc_cmdline_get_bool(const char *key, bool *ret);
Dproc-cmdline.c280 int proc_cmdline_get_bool(const char *key, bool *ret) { in proc_cmdline_get_bool() function
/systemd-251/src/shared/
Dreboot-util.c104 r = proc_cmdline_get_bool("systemd.restore_state", &ret); in shall_restore_state()
Dcgroup-setup.c98 r = proc_cmdline_get_bool("systemd.unified_cgroup_hierarchy", &b); in cg_is_unified_wanted()
149 r = proc_cmdline_get_bool("systemd.legacy_systemd_cgroup_controller", &b); in cg_is_hybrid_wanted()
Dcondition.c715 r = proc_cmdline_get_bool("systemd.condition-needs-update", &b); in condition_test_needs_update()
799 r = proc_cmdline_get_bool("systemd.condition-first-boot", &b); in condition_test_first_boot()
/systemd-251/src/firstboot/
Dfirstboot.c1346 r = proc_cmdline_get_bool("systemd.firstboot", &enabled); in run()
/systemd-251/src/udev/net/
Dlink-config.c705 r = proc_cmdline_get_bool("net.ifnames", &b); in enable_name_policy()
/systemd-251/src/partition/
Drepart.c4416 r = proc_cmdline_get_bool("systemd.factory_reset", &b); in parse_proc_cmdline_factory_reset()