Home
last modified time | relevance | path

Searched refs:set_ensure_put (Results 1 – 25 of 42) sorted by relevance

12

/systemd-251/src/test/ !
Dtest-hash-funcs.c15 assert_se(set_ensure_put(&set, &path_hash_ops, "foo") == 1); in TEST()
16 assert_se(set_ensure_put(&set, &path_hash_ops, "foo") == 0); in TEST()
17 assert_se(set_ensure_put(&set, &path_hash_ops, "bar") == 1); in TEST()
18 assert_se(set_ensure_put(&set, &path_hash_ops, "bar") == 0); in TEST()
19 assert_se(set_ensure_put(&set, &path_hash_ops, "/foo") == 1); in TEST()
20 assert_se(set_ensure_put(&set, &path_hash_ops, "/bar") == 1); in TEST()
21 assert_se(set_ensure_put(&set, &path_hash_ops, "/foo/.") == 0); in TEST()
22 assert_se(set_ensure_put(&set, &path_hash_ops, "/./bar/./.") == 0); in TEST()
Dtest-set.c151 TEST(set_ensure_put) { in TEST() argument
154 assert_se(set_ensure_put(&m, &string_hash_ops, "a") == 1); in TEST()
155 assert_se(set_ensure_put(&m, &string_hash_ops, "a") == 0); in TEST()
156 assert_se(set_ensure_put(&m, NULL, "a") == 0); in TEST()
157 assert_se(set_ensure_put(&m, &string_hash_ops, "b") == 1); in TEST()
158 assert_se(set_ensure_put(&m, &string_hash_ops, "b") == 0); in TEST()
159 assert_se(set_ensure_put(&m, &string_hash_ops, "a") == 0); in TEST()
/systemd-251/coccinelle/ !
Dset_ensure_put.cocci10 + r = set_ensure_put(&p, k, x);
19 + r = set_ensure_put(p, k, x);
/systemd-251/src/core/ !
Dautomount.c923 r = set_ensure_put(&a->tokens, NULL, UINT_TO_PTR(token)); in automount_deserialize_item()
933 r = set_ensure_put(&a->expire_tokens, NULL, UINT_TO_PTR(token)); in automount_deserialize_item()
1015 … r = set_ensure_put(&a->tokens, NULL, UINT_TO_PTR(packet.v5_packet.wait_queue_token)); in automount_dispatch_io()
1029 … r = set_ensure_put(&a->expire_tokens, NULL, UINT_TO_PTR(packet.v5_packet.wait_queue_token)); in automount_dispatch_io()
Dscope.c524 r = set_ensure_put(&u->pids, NULL, PID_TO_PTR(pid)); in scope_deserialize_item()
/systemd-251/src/network/ !
Dnetworkd-ipv6-proxy-ndp.c174 r = set_ensure_put(&network->ipv6_proxy_ndp_addresses, &in6_addr_hash_ops, address); in config_parse_ipv6_proxy_ndp_address()
Dnetworkd-nexthop.c285 r = set_ensure_put(&link->nexthops, &nexthop_hash_ops, nexthop); in nexthop_add()
297 r = set_ensure_put(&manager->nexthops, &nexthop_hash_ops, nexthop); in nexthop_add()
330 r = set_ensure_put(&ids, NULL, UINT32_TO_PTR(tmp->id)); in nexthop_acquire_id()
Dnetworkd-routing-policy-rule.c358 r = set_ensure_put(&m->rules, &routing_policy_rule_hash_ops, rule); in routing_policy_rule_add()
390 r = set_ensure_put(&priorities, NULL, UINT32_TO_PTR(tmp->priority)); in routing_policy_rule_acquire_priority()
403 r = set_ensure_put(&priorities, NULL, UINT32_TO_PTR(tmp->priority)); in routing_policy_rule_acquire_priority()
Dnetworkd-neighbor.c150 r = set_ensure_put(&link->neighbors, &neighbor_hash_ops, neighbor); in neighbor_add()
Dnetworkd-state-file.c708 r = set_ensure_put(&link->manager->dirty_links, NULL, link); in link_dirty()
Dnetworkd-address.c457 r = set_ensure_put(&link->addresses, &address_hash_ops_free, address); in address_add()
2038 r = set_ensure_put(&addresses, &address_kernel_hash_ops, address); in network_drop_invalid_addresses()
/systemd-251/src/login/ !
Dlogind-brightness.c177 r = set_ensure_put(set, &bus_message_hash_ops, message); in set_add_message()
/systemd-251/src/udev/ !
Dudevadm-monitor.c170 r = set_ensure_put(&arg_tag_filter, &string_hash_ops, optarg); in parse_argv()
/systemd-251/src/socket-proxy/ !
Dsocket-proxyd.c496 r = set_ensure_put(&context->connections, NULL, c); in add_connection_socket()
560 r = set_ensure_put(&context->listen, NULL, source); in add_listen_socket()
/systemd-251/src/basic/ !
Dset.h123 #define set_ensure_put(s, hash_ops, key) _set_ensure_put(s, hash_ops, key HASHMAP_DEBUG_SRC_ARGS) macro
/systemd-251/src/shared/ !
Dbus-print-properties.c349 r = set_ensure_put(found_properties, &string_hash_ops, name); in bus_message_print_all_properties()
Dnetif-sriov.c340 r = set_ensure_put(&set, &sr_iov_hash_ops, sr_iov); in sr_iov_drop_invalid_sections()
/systemd-251/src/resolve/ !
Dresolved-dns-query.c154 r = set_ensure_put(&t->notify_query_candidates, NULL, c); in dns_query_candidate_add_transaction()
158 r = set_ensure_put(&c->transactions, NULL, t); in dns_query_candidate_add_transaction()
Dresolved-dns-transaction.c1787 r = set_ensure_put(&keys, &dns_resource_key_hash_ops, dns_transaction_key(t)); in dns_transaction_make_packet_mdns()
1853 … r = set_ensure_put(&keys, &dns_resource_key_hash_ops, dns_transaction_key(other)); in dns_transaction_make_packet_mdns()
2145 r = set_ensure_put(&t->dnssec_transactions, NULL, aux); in dns_transaction_add_dnssec_transaction()
2149 r = set_ensure_put(&aux->notify_transactions, NULL, t); in dns_transaction_add_dnssec_transaction()
Dresolved-dns-trust-anchor.c590 r = set_ensure_put(&d->revoked_by_rr, &dns_resource_record_hash_ops, rr); in dns_trust_anchor_revoked_put()
Dresolved-dns-zone.c192 r = set_ensure_put(&t->notify_zone_items, NULL, i); in dns_zone_item_probe_start()
/systemd-251/src/network/tc/ !
Dtclass.c178 r = set_ensure_put(&link->tclasses, &tclass_hash_ops, tclass); in tclass_add()
Dqdisc.c208 r = set_ensure_put(&link->qdiscs, &qdisc_hash_ops, qdisc); in qdisc_add()
/systemd-251/src/sysv-generator/ !
Dsysv-generator.c855 r = set_ensure_put(&runlevel_services[i], NULL, service); in set_dependencies_from_rcnd()
/systemd-251/src/home/ !
Dhomed-manager-bus.c650 r = set_ensure_put(&m->rebalance_queued_method_calls, &bus_message_hash_ops, message); in method_rebalance()

12