/systemd/src/libsystemd/sd-bus/ |
H A D | test-bus-proxy.c | 39 TestProxyMatch *match = userdata; local 46 if (!streq_ptr(match->sender, name)) 49 ++match->matched_acquired; 56 TestProxyMatch match = {}; local 84 r = sd_bus_add_match(a, NULL, matchstr, test_proxy_acquired, &match); 87 r = sd_bus_get_unique_name(a, &match.sender); 105 assert_se(match.matched_acquired == 1);
|
H A D | test-bus-kernel-bloom.c | 43 const char *match, 81 log_debug("match"); 82 r = sd_bus_add_match(b, NULL, match, test_match, &found); 37 test_one( const char *path, const char *interface, const char *member, bool as_list, const char *arg0, const char *match, bool good) argument
|
H A D | test-bus-match.c | 20 #include "bus-match.h" 55 static int match_add(sd_bus_slot *slots, struct bus_match_node *root, const char *match, int value) { argument 64 r = bus_match_parse(match, &components, &n_components); 77 static void test_match_scope(const char *match, enum bus_match_scope scope) { argument 81 assert_se(bus_match_parse(match, &components, &n_components) >= 0);
|
H A D | bus-track.c | 166 const char *match; local 181 match = MATCH_FOR_NAME(n); 182 r = sd_bus_add_match(track->bus, &slot, match, on_name_owner_changed, track);
|
H A D | bus-match.c | 22 #include "bus-match.h" 163 * for an accurate match */ 230 * magic and stuff, i.e. this one actually compares the match 387 assert_not_reached("Unknown match type."); 796 const char *match, 800 const char *p = match; 807 assert(match); 819 /* Avahi's match rules appear to include whitespace, skip over it */ 1192 /* Checks whether the specified match can only match th 795 bus_match_parse( const char *match, struct bus_match_component **_components, unsigned *_n_components) argument [all...] |
H A D | bus-control.c | 1058 /* If we encounter a match that could match against 1062 * multiple if the match is underspecified. 1138 * this can match against added names */ 1148 * this can match against removed names */ 1157 /* The CHANGE match we need in either case, because 1192 * match against added ids */ 1204 * match against removed ids */ 1334 * we would have to create a bloom-match for each prefix 1376 assert_not_reached("Invalid match typ 1440 bus_add_match_internal_dbus1( sd_bus *bus, const char *match) argument 1463 bus_add_match_internal( sd_bus *bus, const char *match, struct bus_match_component *components, unsigned n_components, uint64_t cookie) argument 1504 bus_remove_match_internal_dbus1( sd_bus *bus, const char *match) argument 1527 bus_remove_match_internal( sd_bus *bus, const char *match, uint64_t cookie) argument [all...] |
H A D | sd-bus.c | 2035 /* Found a match! */ 2967 const char *match, 2977 assert_return(match, -EINVAL); 2980 r = bus_match_parse(match, &components, &n_components); 3005 * store the original match string, so that we 3006 * can use it to remove the match again */ 3008 s->match_callback.match_string = strdup(match); 3041 const char *match, 3051 assert_return(match, -EINVAL); 3054 r = bus_match_parse(match, 2964 sd_bus_add_match( sd_bus *bus, sd_bus_slot **slot, const char *match, sd_bus_message_handler_t callback, void *userdata) argument 3039 bus_remove_match_by_string( sd_bus *bus, const char *match, sd_bus_message_handler_t callback, void *userdata) argument [all...] |
/systemd/src/resolve/ |
H A D | resolved-dns-synthesize.c | 43 * for the reply should match what was requested in the 187 int af, const union in_addr_union *match) { 203 if (match && !in_addr_equal(af, match, &addresses[j].address)) 182 answer_add_addresses_ptr( DnsAnswer **answer, const char *name, struct local_address *addresses, unsigned n_addresses, int af, const union in_addr_union *match) argument
|
H A D | resolved-dns-query.c | 688 DnsScopeMatch match; local 695 match = dns_scope_good_domain(s, q->ifindex, q->flags, name); 696 if (match < 0) 697 return match; 699 if (match == DNS_SCOPE_NO) 702 found = match; 704 if (match == DNS_SCOPE_YES) { 708 assert(match == DNS_SCOPE_MAYBE); 731 DnsScopeMatch match; local 738 match [all...] |
/systemd/src/bus-proxyd/ |
H A D | driver.c | 206 const char *match; local 211 r = sd_bus_message_read(m, "s", &match); 215 r = sd_bus_add_match(a, NULL, match, proxy_match, p); 222 const char *match; local 227 r = sd_bus_message_read(m, "s", &match); 231 r = bus_remove_match_by_string(a, match, NULL, NULL);
|
H A D | proxy.c | 166 _cleanup_free_ char *match = NULL; local 177 match = strjoin("type='signal'," 186 if (!match) 189 r = sd_bus_add_match(p->destination_bus, NULL, match, proxy_match_synthetic, p); 191 return log_error_errno(r, "Failed to add match for NameLost: %m"); 193 free(match); 194 match = strjoin("type='signal'," 203 if (!match) 206 r = sd_bus_add_match(p->destination_bus, NULL, match, proxy_match_synthetic, p); 208 return log_error_errno(r, "Failed to add match fo [all...] |
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-types.h | 51 uint16_t match; member in struct:NLTypeSystemUnion
|
/systemd/src/coredump/ |
H A D | coredumpctl.c | 90 static int add_match(Set *set, const char *match) { argument 97 if (strchr(match, '=')) 99 else if (strchr(match, '/')) { 100 r = path_make_absolute_cwd(match, &p); 103 match = p; 105 } else if (parse_pid(match, &pid) >= 0) 110 pattern = strjoin(prefix, match, NULL); 123 return log_error_errno(r, "Failed to add match: %m"); 530 log_error("No match found."); 794 const char* match; local [all...] |
/systemd/src/hwdb/ |
H A D | hwdb.c | 475 char *match = NULL; local 511 /* start of record, first match */ 514 match = strdup(line); 515 if (!match) 518 r = strv_consume(&match_list, match); 532 /* another match */ 534 match = strdup(line); 535 if (!match) 538 r = strv_consume(&match_list, match);
|
/systemd/src/journal-remote/ |
H A D | journal-gatewayd.c | 411 char match[9 + 32 + 1] = "_BOOT_ID="; local 420 sd_id128_to_string(bid, match + 9); 421 r = sd_journal_add_match(m->journal, match, sizeof(match)-1);
|
/systemd/src/libsystemd/sd-device/ |
H A D | device-enumerator.c | 111 _public_ int sd_device_enumerator_add_match_subsystem(sd_device_enumerator *enumerator, const char *subsystem, int match) { argument 118 if (match) 136 _public_ int sd_device_enumerator_add_match_sysattr(sd_device_enumerator *enumerator, const char *_sysattr, const char *_value, int match) { argument 144 if (match)
|
/systemd/src/shared/ |
H A D | logs-show.c | 1213 char match[9+32+1] = "_BOOT_ID="; local 1229 sd_id128_to_string(boot_id, match + 9); 1230 r = sd_journal_add_match(j, match, strlen(match)); 1232 return log_error_errno(r, "Failed to add match: %m");
|
H A D | bus-util.c | 84 _cleanup_free_ char *match = NULL; local 101 r = asprintf(&match, 113 r = sd_bus_add_match(bus, NULL, match, name_owner_change_callback, e); 1946 /* When we are a bus client we match by sender. Direct 2293 * Note that this function returns 0 if the path does not match the template 2297 * match the template (return parameters are set to NULL), 1 if it was
|
/systemd/src/core/ |
H A D | unit.c | 2486 const char *match; local 2495 match = strjoina("type='signal'," 2503 return sd_bus_add_match(bus, &u->match_bus_slot, match, signal_name_owner_changed, u); 2516 /* If the bus is already available, install the match directly.
|
/systemd/src/journal/ |
H A D | journalctl.c | 178 _cleanup_free_ char *match = NULL; local 193 match = strjoin("_KERNEL_DEVICE=+", subsys, ":", sysname, NULL); 194 if (!match) 197 r = sd_journal_add_match(j, match, 0); 199 return log_error_errno(r, "Failed to add match: %m"); 215 return log_error_errno(r, "Failed to add match: %m"); 223 return log_error_errno(r, "Failed to add match for the current boot: %m"); 971 return log_error_errno(r, "Failed to add match '%s': %m", *i); 998 char match[9+32+1] = "_BOOT_ID="; local 1008 * to the last location of the new boot by using a _BOOT_ID match 1096 char match[9+32+1] = "_BOOT_ID="; local 1209 char match[9+32+1] = "_BOOT_ID="; local 1448 char match[] = "PRIORITY=0"; local [all...] |
/systemd/src/machine/ |
H A D | machinectl.c | 1232 const char *pty, *match, *machine; local 1259 match = strjoina("type='signal'," 1266 r = sd_bus_add_match(bus, &slot, match, on_machine_removed, &forward); 1268 return log_error_errno(r, "Failed to add machine removal match: %m"); 1299 const char *pty, *match, *machine, *path, *uid = NULL; local 1347 match = strjoina("type='signal'," 1354 r = sd_bus_add_match(bus, &slot, match, on_machine_removed, &forward); 1356 return log_error_errno(r, "Failed to add machine removal match: %m"); 1751 return log_error_errno(r, "Failed to install match: %m"); 1762 return log_error_errno(r, "Failed to install match [all...] |
/systemd/src/tmpfiles/ |
H A D | tmpfiles.c | 214 static struct Item* find_glob(OrderedHashmap *h, const char *match) { argument 224 if (fnmatch(item->path, match, FNM_PATHNAME|FNM_PERIOD) == 0) 1806 log_debug("Entry \"%s\" does not match any include prefix, skipping.", path);
|
/systemd/src/udev/ |
H A D | udev-rules.c | 234 [OP_MATCH] = "match", 1728 bool match = false; local 1735 match = (streq(key_value, val)); 1738 match = (fnmatch(key_value, val, 0) == 0); 1754 match = (matchlen == len && strneq(s, val, matchlen)); 1755 if (match) 1758 match = (streq(s, val)); 1777 match = (fnmatch(key_value, val, 0) == 0); 1778 if (match) 1785 match 1897 bool match = false; local 1940 bool match = false; local 2020 bool match = udev_device_has_tag(event->dev_parent, rules_str(rules, cur->key.value_off)); local 2046 int match; local [all...] |