Home
last modified time | relevance | path

Searched refs:hashmap_ensure_put (Results 1 – 25 of 56) sorted by relevance

123

/systemd-251/src/libsystemd-network/
Dfuzz-dhcp-server.c37 …assert_se(hashmap_ensure_put(&server->bound_leases_by_client_id, &dhcp_lease_hash_ops, &lease->cli… in add_lease()
38 …assert_se(hashmap_ensure_put(&server->bound_leases_by_address, NULL, UINT32_TO_PTR(lease->address)… in add_lease()
Dsd-dhcp-server.c1012 …r = hashmap_ensure_put(&server->bound_leases_by_client_id, &dhcp_lease_hash_ops, &lease->client_id… in server_ack_request()
1016 …r = hashmap_ensure_put(&server->bound_leases_by_address, NULL, UINT32_TO_PTR(lease->address), leas… in server_ack_request()
1668 …r = hashmap_ensure_put(&server->static_leases_by_client_id, &dhcp_lease_hash_ops, &lease->client_i… in sd_dhcp_server_set_static_lease()
1671 …r = hashmap_ensure_put(&server->static_leases_by_address, NULL, UINT32_TO_PTR(lease->address), lea… in sd_dhcp_server_set_static_lease()
Dsd-lldp-rx.c150 r = hashmap_ensure_put(&lldp_rx->neighbor_by_id, &lldp_neighbor_hash_ops, &n->id, n); in lldp_rx_add_neighbor()
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-genl.c83 r = hashmap_ensure_put(&nl->genl_family_by_name, &string_hash_ops, f->name, f); in genl_family_new_unsupported()
181 …r = hashmap_ensure_put(&f->multicast_group_by_name, &string_hash_ops_free, group_name, UINT32_TO_P… in genl_family_new()
193 r = hashmap_ensure_put(&nl->genl_family_by_id, NULL, UINT_TO_PTR(f->id), f); in genl_family_new()
197 r = hashmap_ensure_put(&nl->genl_family_by_name, &string_hash_ops, f->name, f); in genl_family_new()
Dnetlink-socket.c66 … r = hashmap_ensure_put(&nl->broadcast_group_refs, NULL, UINT_TO_PTR(group), UINT_TO_PTR(1)); in broadcast_groups_get()
/systemd-251/src/network/
Dnetworkd-wiphy.c39 r = hashmap_ensure_put(&manager->wiphy_by_index, NULL, UINT32_TO_PTR(w->index), w); in wiphy_new()
107 return hashmap_ensure_put(&w->manager->wiphy_by_name, &string_hash_ops, w->name, w); in wiphy_update_name()
Dnetworkd-nexthop.c99 …r = hashmap_ensure_put(&network->nexthops_by_section, &config_section_hash_ops, nexthop->section, … in nexthop_new_static()
195 r = hashmap_ensure_put(&dest->group, NULL, UINT32_TO_PTR(g->id), g); in nexthop_dup()
306 … return hashmap_ensure_put(&manager->nexthops_by_id, NULL, UINT32_TO_PTR(nexthop->id), nexthop); in nexthop_add()
915 r = hashmap_ensure_put(&tmp->group, NULL, UINT32_TO_PTR(nhg->id), nhg); in manager_rtnl_process_nexthop()
1390 r = hashmap_ensure_put(&n->group, NULL, UINT32_TO_PTR(nhg->id), nhg); in config_parse_nexthop_group()
Dnetworkd-route-util.c519 …r = hashmap_ensure_put(&m->route_table_numbers_by_name, &string_hash_ops_free, name, UINT32_TO_PTR… in config_parse_route_table_names()
536 … r = hashmap_ensure_put(&m->route_table_names_by_number, NULL, UINT32_TO_PTR(table), name); in config_parse_route_table_names()
Dnetworkd-dhcp-server-static-lease.c63 …r = hashmap_ensure_put(&network->dhcp_static_leases_by_section, &config_section_hash_ops, static_l… in lease_new_static()
Dnetworkd-link.c757 r = hashmap_ensure_put(h, NULL, INT_TO_PTR(carrier->ifindex), carrier); in link_put_carrier()
2166 … r = hashmap_ensure_put(&link->manager->links_by_hw_addr, &hw_addr_hash_ops, &link->hw_addr, link); in link_update_hardware_address()
2298 r = hashmap_ensure_put(&link->manager->links_by_name, &string_hash_ops, *n, link); in link_update_alternative_names()
2343 r = hashmap_ensure_put(&link->manager->links_by_name, &string_hash_ops, link->ifname, link); in link_update_name()
2527 r = hashmap_ensure_put(&manager->links_by_index, NULL, INT_TO_PTR(link->ifindex), link); in link_new()
2533 r = hashmap_ensure_put(&manager->links_by_name, &string_hash_ops, link->ifname, link); in link_new()
Dnetworkd-address-label.c60 …r = hashmap_ensure_put(&network->address_labels_by_section, &config_section_hash_ops, label->secti… in address_label_new_static()
Dnetworkd-bridge-mdb.c75 …r = hashmap_ensure_put(&network->bridge_mdb_entries_by_section, &config_section_hash_ops, mdb->sec… in bridge_mdb_new_static()
Dnetworkd-bridge-fdb.c86 …r = hashmap_ensure_put(&network->bridge_fdb_entries_by_section, &config_section_hash_ops, fdb->sec… in bridge_fdb_new_static()
Dnetworkd-network.c111 … r = hashmap_ensure_put(&network->stacked_netdevs, &string_hash_ops, netdev->ifname, netdev); in network_resolve_stacked_netdevs()
863 r = hashmap_ensure_put(h, &string_hash_ops, name, INT_TO_PTR(kind)); in config_parse_stacked_netdev()
/systemd-251/src/network/wait-online/
Dlink.c35 r = hashmap_ensure_put(&m->links_by_index, NULL, INT_TO_PTR(ifindex), l); in link_new()
39 r = hashmap_ensure_put(&m->links_by_name, &string_hash_ops, l->ifname, l); in link_new()
Dwait-online.c88 r = hashmap_ensure_put(&arg_interfaces, &string_hash_ops, ifname, TAKE_PTR(range)); in parse_interface_with_operstate_range()
/systemd-251/src/remount-fs/
Dremount-fs.c38 r = hashmap_ensure_put(h, NULL, PID_TO_PTR(pid), c); in track_pid()
/systemd-251/src/core/
Dbpf-foreign.c110 r = hashmap_ensure_put(&u->bpf_foreign_by_key, &bpf_foreign_by_key_hash_ops, key, prog); in bpf_foreign_prepare()
/systemd-251/src/libudev/
Dlibudev-list.c100 … if (hashmap_ensure_put(&list->unique_entries, &string_hash_ops, entry->name, entry) < 0) in udev_list_entry_add()
/systemd-251/src/login/
Dlogind-brightness.c233 r = hashmap_ensure_put(&m->brightness_writers, &brightness_writer_hash_ops, w->path, w); in manager_write_brightness()
/systemd-251/src/udev/
Dudevadm-monitor.c160 r = hashmap_ensure_put(&arg_subsystem_filter, NULL, subsystem, devtype); in parse_argv()
/systemd-251/src/network/generator/
Dnetwork-generator.c196 … r = hashmap_ensure_put(&context->networks_by_name, &string_hash_ops, network->ifname, network); in network_new()
249 r = hashmap_ensure_put(&context->netdevs_by_name, &string_hash_ops, netdev->ifname, netdev); in netdev_new()
320 r = hashmap_ensure_put(&context->links_by_filename, &string_hash_ops, link->filename, link); in link_new()
/systemd-251/src/resolve/
Dresolved-dnssd.c123 r = hashmap_ensure_put(&manager->dnssd_services, &string_hash_ops, service->name, service); in dnssd_service_load()
/systemd-251/src/shared/
Dbus-unit-procs.c107 return hashmap_ensure_put(&cg->pids, &trivial_hash_ops, PID_TO_PTR(pid), (void*) name); in add_process()
/systemd-251/src/machine/
Dimage-dbus.c449 r = hashmap_ensure_put(&m->image_cache, &image_hash_ops, image->name, image); in image_object_find()

123