Home
last modified time | relevance | path

Searched refs:states (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/systemctl/
Dsystemctl-is-active.c46 static const UnitActiveState states[] = { in verb_is_active() local
52 …return check_unit_generic(EXIT_PROGRAM_NOT_RUNNING, states, ELEMENTSOF(states), strv_skip(argv, 1)… in verb_is_active()
56 static const UnitActiveState states[] = { in verb_is_failed() local
60 …return check_unit_generic(EXIT_PROGRAM_DEAD_AND_PID_EXISTS, states, ELEMENTSOF(states), strv_skip(… in verb_is_failed()
Dsystemctl-list-unit-files.c28 static bool output_show_unit_file(const UnitFileList *u, char **states, char **patterns) { in output_show_unit_file() argument
45 if (!strv_isempty(states) && in output_show_unit_file()
46 !strv_contains(states, unit_file_state_to_string(u->state))) in output_show_unit_file()
/systemd-251/src/shared/
Dsleep-config.c55 …{ "Sleep", "SuspendState", config_parse_strv, 0, sc->states + SLEEP_SUSPEND … in parse_sleep_config()
57 …{ "Sleep", "HibernateState", config_parse_strv, 0, sc->states + SLEEP_HIBERNATE … in parse_sleep_config()
59 …{ "Sleep", "HybridSleepState", config_parse_strv, 0, sc->states + SLEEP_HYBRID_SLEEP … in parse_sleep_config()
82 if (!sc->states[SLEEP_SUSPEND]) in parse_sleep_config()
83 sc->states[SLEEP_SUSPEND] = strv_new("mem", "standby", "freeze"); in parse_sleep_config()
86 if (!sc->states[SLEEP_HIBERNATE]) in parse_sleep_config()
87 sc->states[SLEEP_HIBERNATE] = strv_new("disk"); in parse_sleep_config()
90 if (!sc->states[SLEEP_HYBRID_SLEEP]) in parse_sleep_config()
91 sc->states[SLEEP_HYBRID_SLEEP] = strv_new("disk"); in parse_sleep_config()
96 if (!sc->states[SLEEP_SUSPEND] || !sc->modes[SLEEP_HIBERNATE] in parse_sleep_config()
[all …]
Dsleep-config.h19 char **states[_SLEEP_OPERATION_MAX]; member
Dinstall.h191 int unit_file_get_list(LookupScope scope, const char *root_dir, Hashmap *h, char **states, char **p…
Dinstall.c3554 char **states, in unit_file_get_list() argument
3610 if (!strv_isempty(states) && in unit_file_get_list()
3611 !strv_contains(states, unit_file_state_to_string(f->state))) in unit_file_get_list()
/systemd-251/src/sleep/
Dsleep.c104 static int write_state(FILE **f, char **states) { in write_state() argument
110 STRV_FOREACH(state, states) { in write_state()
188 char **modes, **states; in execute() local
196 states = sleep_config->states[operation]; in execute()
199 if (strv_isempty(states)) in execute()
247 r = write_state(&f, states); in execute()
/systemd-251/src/network/
Dnetworkd-util.c28 static const char* states[] = { in network_config_state_to_string_alloc() local
40 for (size_t i = 0; i < ELEMENTSOF(states); i++) in network_config_state_to_string_alloc()
42 assert(states[i]); in network_config_state_to_string_alloc()
44 if (!strextend_with_separator(&buf, ",", states[i])) in network_config_state_to_string_alloc()
/systemd-251/src/test/
Dtest-sleep.c28 sus = strv_join(sleep_config->states[SLEEP_SUSPEND], ", "); in TEST()
30 his = strv_join(sleep_config->states[SLEEP_HIBERNATE], ", "); in TEST()
32 hys = strv_join(sleep_config->states[SLEEP_HYBRID_SLEEP], ", "); in TEST()
/systemd-251/src/core/
Ddbus-manager.c1180 …red(sd_bus_message *message, void *userdata, sd_bus_error *error, char **states, char **patterns) { in list_units_filtered() argument
1208 if (!strv_isempty(states) && in list_units_filtered()
1209 !strv_contains(states, unit_load_state_to_string(u->load_state)) && in list_units_filtered()
1210 !strv_contains(states, unit_active_state_to_string(unit_active_state(u))) && in list_units_filtered()
1211 !strv_contains(states, unit_sub_state_to_string(u))) in list_units_filtered()
1235 _cleanup_strv_free_ char **states = NULL; in method_list_units_filtered() local
1238 r = sd_bus_message_read_strv(message, &states); in method_list_units_filtered()
1242 return list_units_filtered(message, userdata, error, states, NULL); in method_list_units_filtered()
1246 _cleanup_strv_free_ char **states = NULL; in method_list_units_by_patterns() local
1250 r = sd_bus_message_read_strv(message, &states); in method_list_units_by_patterns()
[all …]
/systemd-251/docs/
DPORTABILITY_AND_STABILITY.md28states of the various state machines used in systemd**, e.g. the high-level unit states inactive, …
/systemd-251/
DLICENSE.LGPL2.1250 Section 6 states terms for distribution of such executables.
DNEWS11136 with the states "starting", "running", "degraded",
11137 "maintenance", "stopping". These states are bound to system
11599 devices. More specifically, the rfkill and backlight states
13943 * systemd and logind now handle system sleep states, in
14340 the START or START_PRE states are now killed with
/systemd-251/LICENSES/
DLGPL-2.0-or-later.txt88 …library". The executable is therefore covered by this License. Section 6 states terms for distribu…