/systemd-251/src/systemctl/ |
D | systemctl-util.c | 292 _cleanup_free_ char *n = NULL, *dbus_path = NULL, *load_state = NULL; in check_triggering_units() local 302 r = unit_load_state(bus, n, &load_state); in check_triggering_units() 306 if (streq(load_state, "masked")) in check_triggering_units() 455 _cleanup_free_ char *load_state = NULL, *dbus_path = NULL; in unit_find_paths() local 468 &load_state); in unit_find_paths() 472 if (streq(load_state, "masked")) in unit_find_paths() 474 if (streq(load_state, "not-found")) { in unit_find_paths() 478 if (!STR_IN_SET(load_state, "loaded", "bad-setting")) in unit_find_paths() 601 _cleanup_free_ char *load_state = NULL; in unit_is_masked() local 618 r = unit_load_state(bus, name, &load_state); in unit_is_masked() [all …]
|
D | systemctl-show.c | 165 const char *load_state; member 348 if (STRPTR_IN_SET(i->load_state, "error", "not-found", "bad-setting")) { in print_status_info() 360 on, strna(i->load_state), off, i->load_error); in print_status_info() 366 on, strna(i->load_state), off, in print_status_info() 374 on, strna(i->load_state), off, path); in print_status_info() 377 on, strna(i->load_state), off); in print_status_info() 1871 … "s", NULL, offsetof(UnitStatusInfo, load_state) … in show_one() 1878 … "s", NULL, offsetof(UnitStatusInfo, load_state) … in show_one() 2002 … if (unit && streq_ptr(info.load_state, "not-found") && streq_ptr(info.active_state, "inactive")) { in show_one()
|
D | systemctl-list-units.c | 123 … if (STR_IN_SET(u->load_state, "error", "not-found", "bad-setting", "masked") && !arg_plain) { in output_units_list() 151 TABLE_STRING, u->load_state, in output_units_list()
|
/systemd-251/src/shared/ |
D | bus-unit-util.h | 13 const char *load_state; member 30 int unit_load_state(sd_bus *bus, const char *name, char **load_state);
|
/systemd-251/src/core/ |
D | slice.c | 25 assert(u->load_state == UNIT_STUB); in slice_init() 90 assert(UNIT(s)->load_state == UNIT_LOADED); in slice_verify() 154 assert(u->load_state == UNIT_STUB); in slice_load() 167 if (u->load_state != UNIT_LOADED) in slice_load()
|
D | unit.c | 466 if (u->load_state != UNIT_STUB || u->in_load_queue) in unit_add_to_load_queue() 500 if (u->load_state == UNIT_STUB || u->in_dbus_queue) in unit_add_to_dbus_queue() 848 if (u->load_state == UNIT_MERGED) in unit_active_state() 1155 if (!IN_SET(other->load_state, UNIT_STUB, UNIT_NOT_FOUND)) in unit_merge() 1188 other->load_state = UNIT_MERGED; in unit_merge() 1193 if (other->load_state != UNIT_STUB) in unit_merge() 1235 while (u->load_state == UNIT_MERGED) in unit_follow_merge() 1415 if (u->load_state == UNIT_STUB) { in unit_load_fragment_and_dropin() 1419 u->load_state = UNIT_LOADED; in unit_load_fragment_and_dropin() 1463 if (u->load_state != UNIT_LOADED || in unit_add_default_target_dependency() [all …]
|
D | path.c | 264 assert(u->load_state == UNIT_STUB); in path_init() 309 assert(UNIT(p)->load_state == UNIT_LOADED); in path_verify() 383 assert(u->load_state == UNIT_STUB); in path_load() 389 if (u->load_state != UNIT_LOADED) in path_load() 782 assert(UNIT_IS_LOAD_COMPLETE(other->load_state)); in path_trigger_notify()
|
D | scope.c | 37 assert(u->load_state == UNIT_STUB); in scope_init() 146 assert(UNIT(s)->load_state == UNIT_LOADED); in scope_verify() 198 assert(u->load_state == UNIT_STUB); in scope_load() 212 if (u->load_state != UNIT_LOADED) in scope_load()
|
D | timer.c | 41 assert(u->load_state == UNIT_STUB); in timer_init() 76 assert(UNIT(t)->load_state == UNIT_LOADED); in timer_verify() 209 assert(u->load_state == UNIT_STUB); in timer_load() 215 if (u->load_state != UNIT_LOADED) in timer_load() 759 assert(UNIT_IS_LOAD_COMPLETE(other->load_state)); in timer_trigger_notify()
|
D | automount.c | 74 assert(u->load_state == UNIT_STUB); in automount_init() 187 assert(UNIT(a)->load_state == UNIT_LOADED); in automount_verify() 249 assert(u->load_state == UNIT_STUB); in automount_load() 256 if (u->load_state != UNIT_LOADED) in automount_load() 521 assert(UNIT_IS_LOAD_COMPLETE(other->load_state)); in automount_trigger_notify() 778 if (UNIT(a)->load_state != UNIT_LOADED) { in automount_enter_running()
|
D | swap.c | 140 assert(UNIT(s)->load_state == UNIT_STUB); in swap_init() 282 assert(UNIT(s)->load_state == UNIT_LOADED); in swap_verify() 388 assert(u->load_state == UNIT_STUB); in swap_load() 396 if (u->load_state == UNIT_LOADED || s->from_proc_swaps) in swap_load() 403 if (u->load_state != UNIT_LOADED) in swap_load() 467 if (IN_SET(u->load_state, UNIT_NOT_FOUND, UNIT_BAD_SETTING, UNIT_ERROR)) { in swap_setup_unit() 468 u->load_state = UNIT_LOADED; in swap_setup_unit()
|
D | mount.c | 176 assert(u->load_state == UNIT_STUB); in mount_init() 328 if (other->load_state != UNIT_LOADED) in mount_add_mount_dependencies() 558 assert(UNIT(m)->load_state == UNIT_LOADED); in mount_verify() 682 assert(u->load_state == UNIT_STUB); in mount_load() 693 if (u->load_state == UNIT_LOADED || m->from_proc_self_mountinfo || u->perpetual) in mount_load() 700 if (u->load_state != UNIT_LOADED) in mount_load() 1639 if (IN_SET(u->load_state, UNIT_NOT_FOUND, UNIT_BAD_SETTING, UNIT_ERROR)) { in mount_setup_existing_unit() 1642 u->load_state = UNIT_LOADED; in mount_setup_existing_unit()
|
D | unit-serialize.c | 663 prefix, unit_load_state_to_string(u->load_state), in unit_dump() 823 if (u->load_state == UNIT_LOADED) { in unit_dump() 844 } else if (u->load_state == UNIT_MERGED) in unit_dump() 848 else if (u->load_state == UNIT_ERROR) in unit_dump()
|
D | dbus-automount.c | 64 …if (u->transient && u->load_state == UNIT_STUB) /* This is a transient unit? let's load a little m… in bus_automount_set_property()
|
D | transaction.c | 927 if (!UNIT_IS_LOAD_COMPLETE(unit->load_state)) in transaction_add_job_and_dependencies() 946 unit->load_state = UNIT_STUB; in transaction_add_job_and_dependencies() 948 if (r < 0 || unit->load_state == UNIT_STUB) in transaction_add_job_and_dependencies() 949 unit->load_state = UNIT_NOT_FOUND; in transaction_add_job_and_dependencies()
|
D | target.c | 82 if (u->load_state != UNIT_LOADED) in target_load()
|
D | dbus-path.c | 162 if (u->transient && u->load_state == UNIT_STUB) in bus_path_set_property()
|
D | dbus-mount.c | 130 if (u->transient && u->load_state == UNIT_STUB) { in bus_mount_set_property()
|
/systemd-251/src/timedate/ |
D | timedated.c | 50 char *load_state; member 100 p->load_state = mfree(p->load_state); in unit_status_info_clear() 272 count += streq_ptr(info->load_state, "loaded"); in context_ntp_service_exists() 404 { "LoadState", "s", NULL, offsetof(UnitStatusInfo, load_state) }, in context_update_ntp_status() 973 if (!streq(u->load_state, "loaded")) in method_set_ntp() 991 if (!streq(u->load_state, "loaded")) in method_set_ntp()
|
/systemd-251/src/test/ |
D | test-bpf-firewall.c | 152 u->load_state = UNIT_LOADED; in main() 205 u->load_state = UNIT_LOADED; in main()
|
D | test-job-type.c | 14 .meta.load_state = UNIT_LOADED, in main()
|
D | test-bpf-lsm.c | 40 u->load_state = UNIT_LOADED; in test_restrict_filesystems()
|
D | test-socket-bind.c | 79 u->load_state = UNIT_LOADED; in test_socket_bind()
|
/systemd-251/src/analyze/ |
D | analyze-security.c | 44 char *load_state; member 154 free(i->load_state); in security_info_free() 2315 … NULL, offsetof(SecurityInfo, load_state) … in acquire_security_info() 2375 if (!streq_ptr(info->load_state, "loaded")) { in acquire_security_info() 2380 if (streq_ptr(info->load_state, "not-found")) in acquire_security_info() 2382 else if (streq_ptr(info->load_state, "masked")) in acquire_security_info() 2470 if (unit_load_state_to_string(u->load_state)) { in get_security_info() 2471 info->load_state = strdup(unit_load_state_to_string(u->load_state)); in get_security_info() 2472 if (!info->load_state) in get_security_info()
|
/systemd-251/src/rfkill/ |
D | rfkill.c | 136 static int load_state(Context *c, const struct rfkill_event *event) { in load_state() function 358 (void) load_state(&c, &event); in run()
|