Searched refs:UNIT_NAME_INSTANCE (Results 1 – 16 of 16) sorted by relevance
/systemd-251/src/test/ |
D | test-unit-name.c | 35 (flags & UNIT_NAME_INSTANCE) ? " instance" : "", in test_unit_name_is_valid_one() 44 test_unit_name_is_valid_one("foo.service", UNIT_NAME_INSTANCE, false); in TEST() 46 test_unit_name_is_valid_one("foo.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE, false); in TEST() 50 test_unit_name_is_valid_one("foo@bar.service", UNIT_NAME_INSTANCE, true); in TEST() 52 test_unit_name_is_valid_one("foo@bar.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE, true); in TEST() 56 test_unit_name_is_valid_one("foo@bar@bar.service", UNIT_NAME_INSTANCE, true); in TEST() 58 … test_unit_name_is_valid_one("foo@bar@bar.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE, true); in TEST() 62 test_unit_name_is_valid_one("foo@.service", UNIT_NAME_INSTANCE, false); in TEST() 64 test_unit_name_is_valid_one("foo@.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE, true); in TEST() 76 test_unit_name_is_valid_one("user@1000.slice", UNIT_NAME_INSTANCE, true); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | unit-name.c | 45 assert((flags & ~(UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) == 0); in unit_name_is_valid() 79 if (flags & UNIT_NAME_INSTANCE) in unit_name_is_valid() 180 return d > p ? UNIT_NAME_INSTANCE : UNIT_NAME_TEMPLATE; in unit_name_to_instance() 294 if (!unit_name_is_valid(s, instance ? UNIT_NAME_INSTANCE : UNIT_NAME_PLAIN)) in unit_name_build_from_type() 467 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) in unit_name_replace_instance() 485 if (!unit_name_is_valid(s, UNIT_NAME_INSTANCE)) in unit_name_replace_instance() 500 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) in unit_name_template() 646 if (!unit_name_is_valid(s, UNIT_NAME_INSTANCE)) in unit_name_from_path_instance()
|
D | unit-file.c | 45 (un_type1 & (UNIT_NAME_PLAIN | UNIT_NAME_INSTANCE))) in unit_symlink_name_compatible() 57 if (un_type1 == UNIT_NAME_INSTANCE && in unit_symlink_name_compatible() 127 (src_name_type == UNIT_NAME_INSTANCE && dst_name_type == UNIT_NAME_TEMPLATE))) in unit_validate_alias_symlink_or_warn() 132 if (dst_name_type == UNIT_NAME_INSTANCE) { in unit_validate_alias_symlink_or_warn() 599 if (t == UNIT_NAME_INSTANCE) { in unit_file_build_name_map() 675 … if (name_type == UNIT_NAME_INSTANCE && unit_name_is_valid(*alias, UNIT_NAME_TEMPLATE)) { in add_names() 752 if (!fragment && name_type == UNIT_NAME_INSTANCE) { in unit_file_find_fragment()
|
D | unit-name.h | 14 UNIT_NAME_INSTANCE = 1 << 2, /* Allow foo@bar.service */ enumerator 15 UNIT_NAME_ANY = UNIT_NAME_PLAIN|UNIT_NAME_TEMPLATE|UNIT_NAME_INSTANCE,
|
D | cgroup-util.c | 1119 if (!unit_name_is_valid(c, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in cg_path_decode_unit()
|
/systemd-251/src/systemctl/ |
D | systemctl-set-default.c | 17 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in parse_proc_cmdline_item()
|
D | systemctl-edit.c | 423 if (unit_name_is_valid(*name, UNIT_NAME_INSTANCE) && in find_paths_to_edit()
|
/systemd-251/src/shared/ |
D | install.c | 1017 if (enabled_at_all && unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) { in find_symlinks_in_scope() 1277 if (unit_name_is_valid(unit, UNIT_NAME_INSTANCE)) in config_parse_default_instance() 1331 …if (unit_name_is_valid(info->name, UNIT_NAME_TEMPLATE|UNIT_NAME_INSTANCE) && !unit_type_may_templa… in unit_file_load() 1474 if (unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) { in unit_file_search() 1649 if (unit_name_is_valid(i->name, UNIT_NAME_INSTANCE) && in install_info_traverse() 1841 if (type == UNIT_NAME_INSTANCE) { in unit_file_verify_alias() 1932 if (unit_name_is_valid(info->name, UNIT_NAME_PLAIN | UNIT_NAME_INSTANCE)) in install_info_symlink_wants() 1966 valid_dst_type = UNIT_NAME_INSTANCE | UNIT_NAME_TEMPLATE; in install_info_symlink_wants() 2993 … if (!streq(name, basename(info->path)) && !unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) { in unit_file_lookup_state()
|
D | dropin.c | 153 is_instance = unit_name_is_valid(name, UNIT_NAME_INSTANCE); in unit_file_find_dirs()
|
/systemd-251/src/journal/ |
D | journald-stream.c | 383 unit_name_is_valid(p, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in stdout_stream_line()
|
/systemd-251/src/portable/ |
D | portable.c | 751 if (unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in unit_file_is_active()
|
/systemd-251/src/core/ |
D | manager.c | 2136 … if (t == _UNIT_TYPE_INVALID || !unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in manager_load_unit_prepare() 3106 if (!unit_name_is_valid(n, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in manager_load_unit_from_dbus_path()
|
D | main.c | 251 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in parse_proc_cmdline_item()
|
D | dbus-unit.c | 2341 if (!unit_name_is_valid(other, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in bus_unit_set_transient_property()
|
D | unit.c | 259 if (!unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in unit_add_name()
|
D | load-fragment.c | 209 if (!unit_name_is_valid(name, UNIT_NAME_INSTANCE)) in unit_is_likely_recursive_template_dependency()
|