Home
last modified time | relevance | path

Searched refs:unique (Results 1 – 25 of 29) sorted by relevance

12

/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-track.c56 const char *unique; in main() local
84 assert_se(sd_bus_get_unique_name(b, &unique) >= 0); in main()
86 assert_se(sd_bus_track_add_name(x, unique) >= 0); in main()
91 assert_se(sd_bus_get_unique_name(a, &unique) >= 0); in main()
93 assert_se(sd_bus_track_add_name(y, unique) >= 0); in main()
101 assert_se(!sd_bus_track_contains(z, unique)); in main()
102 assert_se(sd_bus_track_count_name(z, unique) == 0); in main()
103 assert_se(sd_bus_track_remove_name(z, unique) == 0); in main()
104 assert_se(sd_bus_track_add_name(z, unique) >= 0); in main()
105 assert_se(sd_bus_track_add_name(z, unique) >= 0); in main()
[all …]
Dbus-control.c23 _public_ int sd_bus_get_unique_name(sd_bus *bus, const char **unique) { in sd_bus_get_unique_name() argument
28 assert_return(unique, -EINVAL); in sd_bus_get_unique_name()
38 *unique = bus->unique_name; in sd_bus_get_unique_name()
432 const char *unique; in sd_bus_get_name_creds() local
462 unique = name[0] == ':' ? name : NULL; in sd_bus_get_name_creds()
466 if ((FLAGS_SET(mask, SD_BUS_CREDS_UNIQUE_NAME) && !unique) || mask == 0) { in sd_bus_get_name_creds()
480 r = sd_bus_message_read(reply_unique, "s", &unique); in sd_bus_get_name_creds()
493 if ((mask & SD_BUS_CREDS_UNIQUE_NAME) && unique) { in sd_bus_get_name_creds()
494 c->unique_name = strdup(unique); in sd_bus_get_name_creds()
527 unique ?: name); in sd_bus_get_name_creds()
[all …]
Dbus-internal.c120 bool dot, found_dot = false, unique; in service_name_is_valid() local
125 unique = p[0] == ':'; in service_name_is_valid()
127 for (dot = true, q = unique ? p+1 : p; *q; q++) in service_name_is_valid()
139 ((!dot || unique) && *q >= '0' && *q <= '9') || in service_name_is_valid()
Dtest-bus-benchmark.c218 const char *unique; in main() local
275 r = sd_bus_get_unique_name(b, &unique); in main()
278 server_name = strdup(unique); in main()
Dtest-bus-chat.c51 const char *unique, *desc; in server_init() local
67 r = sd_bus_get_unique_name(bus, &unique); in server_init()
77 log_info("Unique ID: %s", unique); in server_init()
/systemd-251/src/libudev/
Dlibudev-list.c33 bool unique:1; member
42 if (entry->list->unique && entry->name) in udev_list_entry_free()
45 if (!entry->list->unique || entry->list->uptodate) in udev_list_entry_free()
57 struct udev_list *udev_list_new(bool unique) { in udev_list_new() argument
65 .unique = unique, in udev_list_new()
97 if (list->unique) { in udev_list_entry_add()
116 if (list->unique) { in udev_list_cleanup()
142 if (list->unique && !list->uptodate) { in udev_list_get_entry()
187 if (list_entry->list->unique && !list_entry->list->uptodate) in udev_list_entry_get_next()
204 if (!list_entry->list->unique || !list_entry->list->uptodate) in udev_list_entry_get_by_name()
Dlibudev-list-internal.h10 struct udev_list *udev_list_new(bool unique);
/systemd-251/shell-completion/zsh/
D_busctl63 …'destination[Match messaged sent to the given unique name]:unique name:{compadd $(_busctl_get_uniq…
88 __busctl --unique list |
272 '--unique[Only show unique names]' \
/systemd-251/src/nspawn/
Dnspawn-register.c87 const char *unique; in append_controller_property() local
93 r = sd_bus_get_unique_name(bus, &unique); in append_controller_property()
97 r = sd_bus_message_append(m, "(sv)", "Controller", "s", unique); in append_controller_property()
/systemd-251/src/shared/
Dbus-util.c57 const char *unique; in bus_async_unregister_and_exit() local
69 r = sd_bus_get_unique_name(bus, &unique); in bus_async_unregister_and_exit()
80 "arg1='", unique, "',", in bus_async_unregister_and_exit()
Dtpm2-util.c910 .unique = { in tpm2_seal()
/systemd-251/src/boot/efi/
Dboot.c1785 static BOOLEAN entries_unique(ConfigEntry **entries, BOOLEAN *unique, UINTN entry_count) { in entries_unique() argument
1789 assert(unique); in entries_unique()
1796 is_unique = unique[i] = unique[k] = FALSE; in entries_unique()
1806 BOOLEAN unique[config->entry_count]; in config_title_generate() local
1811 unique[i] = TRUE; in config_title_generate()
1815 if (entries_unique(config->entries, unique, config->entry_count)) in config_title_generate()
1820 if (unique[i]) in config_title_generate()
1823 unique[i] = TRUE; in config_title_generate()
1832 if (entries_unique(config->entries, unique, config->entry_count)) in config_title_generate()
1837 if (unique[i]) in config_title_generate()
[all …]
/systemd-251/src/udev/scsi_id/
DREADME1 scsi_id - generate a SCSI unique identifier for a given SCSI device
/systemd-251/src/run/
Drun.c933 const char *unique, *id; in make_unit_name() local
941 r = sd_bus_get_unique_name(bus, &unique); in make_unit_name()
962 id = startswith(unique, ":1."); /* let' strip the usual prefix */ in make_unit_name()
964 … id = startswith(unique, ":"); /* the spec only requires things to start with a colon, hence in make_unit_name()
969 unique); in make_unit_name()
/systemd-251/docs/
DCOREDUMP_PACKAGE_METADATA.md15 ELF binaries get stamped with a unique, build-time generated hex string identifier called
71 Each name in the object shall be unique as per recommendations of
DJOURNAL_NATIVE_PROTOCOL.md123 displays log entries is likely to ignore such non-unique fields or only
128 structure that allows non-unique keys, for example an array, or a dictionary
DBOOT_LOADER_SPECIFICATION.md193 freely but should be unique enough to avoid clashes between OS
217 be descriptive and does not have to be unique. If a boot loader discovers two
240 does not have to be unique (and usually is not). If non-unique the the
DBUILDING_IMAGES.md30 carry a 128bit identifier unique to the system. Only when it is reset it
31 will be auto-generated on first boot and thus be truly unique. If this file
DJOURNAL_FILE_FORMAT.md82 * Randomized, unique 128bit IDs are used in various locations. These are generally UUID v4 compatib…
308 entry (starting at 1) and are unique among all files which carry the same
420 includes a practically unique string). **n_entries** is a counter of the total
/systemd-251/rules.d/
D99-systemd.rules.in43 # accessible or not does not matter as long as it is unique and in the
/systemd-251/test/fuzz/fuzz-udev-rules/
D99-systemd.rules43 # accessible or not does not matter as long as it is unique and in the
/systemd-251/hwdb.d/
D60-sensor.hwdb240 # bios-version + bios-date combo is unique
427 # should be unique enough to identify the GPDwin
789 # bios-version + bios-date combo is unique
951 # bios-version + bios-date combo is unique
/systemd-251/shell-completion/bash/
Dbusctl85 --show-machine --unique --acquired --activatable --list
/systemd-251/src/busctl/
Dbusctl.c290 const char *unique = NULL, *session = NULL, *unit = NULL, *cn = NULL; in list_bus_names() local
322 (void) sd_bus_creds_get_unique_name(creds, &unique); in list_bus_names()
329 TABLE_STRING, unique, in list_bus_names()
/systemd-251/src/systemd/
Dsd-bus.h346 int sd_bus_get_unique_name(sd_bus *bus, const char **unique);

12