Home
last modified time | relevance | path

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

12

/systemd-251/src/shared/
Dbus-unit-procs.c160 pids = newa(pid_t, hashmap_size(cg->pids)); in dump_processes()
165 assert(n == hashmap_size(cg->pids)); in dump_processes()
278 if (!GREEDY_REALLOC(pids, n + hashmap_size(cg->pids))) in dump_extra_processes()
Dconf-parser.c700 if (hashmap_size(a) != hashmap_size(b)) in stats_by_path_equal()
/systemd-251/src/test/
Dtest-hashmap-plain.c187 assert_se(hashmap_size(m) == 1); in TEST()
597 TEST(hashmap_size) { in TEST() argument
610 assert_se(hashmap_size(NULL) == 0); in TEST()
621 assert_se(hashmap_size(m) == 4); in TEST()
723 … tests[j].title, hashmap_size(h), hashmap_buckets(h), hashmap_buckets(h) * 0.8); in TEST()
725 assert_se(hashmap_size(h) <= hashmap_buckets(h) * 0.8); in TEST()
726 assert_se(hashmap_size(h) == tests[j].n_entries); in TEST()
/systemd-251/src/libsystemd-network/
Dsd-lldp-rx.c68 if (hashmap_size(lldp_rx->neighbor_by_id) > LESS_BY(lldp_rx->neighbors_max, extra)) in lldp_rx_make_space()
479 l = new0(sd_lldp_neighbor*, hashmap_size(lldp_rx->neighbor_by_id)); in sd_lldp_rx_get_neighbors()
486 assert((size_t) k == hashmap_size(lldp_rx->neighbor_by_id)); in sd_lldp_rx_get_neighbors()
/systemd-251/src/core/
Ddbus-job.c167 l = new0(char*, hashmap_size(m->jobs)+1); in bus_job_enumerate()
179 assert(hashmap_size(m->jobs) == k); in bus_job_enumerate()
/systemd-251/src/sysupdate/
Dsysupdate-cache.c43 … if (hashmap_size(*web_cache) >= (size_t) (WEB_CACHE_ENTRIES_MAX + !!hashmap_get(*web_cache, url))) in web_cache_add_item()
/systemd-251/src/libsystemd/sd-bus/
Dbus-track.c72 if (hashmap_size(track->names) > 0) in bus_track_add_to_queue()
291 return hashmap_size(track->names); in sd_bus_track_count()
/systemd-251/src/resolve/
Dresolved-dnssd-bus.c100 l = new0(char*, hashmap_size(m->dnssd_services) + 1); in dnssd_node_enumerator()
Dresolved-dns-zone.c73 assert(hashmap_size(z->by_key) == 0); in dns_zone_flush()
74 assert(hashmap_size(z->by_name) == 0); in dns_zone_flush()
Dresolved-dns-cache.c163 assert(hashmap_size(c->by_key) == 0); in dns_cache_flush()
1343 return hashmap_size(cache->by_key); in dns_cache_size()
Dresolved-link-bus.c854 l = new0(char*, hashmap_size(m->links) + 1); in link_node_enumerator()
/systemd-251/src/libudev/
Dlibudev-list.c147 n = hashmap_size(list->unique_entries); in udev_list_get_entry()
/systemd-251/src/basic/
Dhashmap.h259 static inline unsigned hashmap_size(Hashmap *h) { in hashmap_size() function
267 return hashmap_size(h) == 0; in hashmap_isempty()
Dconf-files.c179 typesafe_qsort(files, hashmap_size(fh), base_cmp); in conf_files_list_strv_internal()
/systemd-251/src/journal/
Djournald-context.c618 while (hashmap_size(s->client_contexts) > limit) { in client_context_try_shrink_to()
643 assert(hashmap_size(s->client_contexts) == 0); in client_context_flush_all()
/systemd-251/src/systemctl/
Dsystemctl-list-unit-files.c160 n_units = hashmap_size(h); in verb_list_unit_files()
/systemd-251/src/network/
Dnetworkd-bridge-mdb.c61 …if (hashmap_size(network->bridge_mdb_entries_by_section) >= STATIC_BRIDGE_MDB_ENTRIES_PER_NETWORK_… in bridge_mdb_new_static()
Dnetworkd-bridge-fdb.c70 …if (hashmap_size(network->bridge_fdb_entries_by_section) >= STATIC_BRIDGE_FDB_ENTRIES_PER_NETWORK_… in bridge_fdb_new_static()
Dnetworkd-nexthop.c456 group = new(struct nexthop_grp, hashmap_size(nexthop->group)); in nexthop_configure()
464 …message_append_data(m, NHA_GROUP, group, sizeof(struct nexthop_grp) * hashmap_size(nexthop->group)… in nexthop_configure()
Dnetworkd-json.c168 elements = new(JsonVariant*, hashmap_size(nexthop->group)); in nexthop_group_build_json()
1361 elements = new(JsonVariant*, hashmap_size(manager->links_by_index)); in links_build_json()
/systemd-251/src/import/
Dimportd.c149 if (hashmap_size(m->transfers) >= TRANSFERS_MAX) in transfer_new()
1165 l = new0(char*, hashmap_size(m->transfers) + 1); in transfer_node_enumerator()
/systemd-251/src/oom/
Doomd-util.c154 sorted = new0(OomdCGroupContext*, hashmap_size(h)); in oomd_sort_cgroup_contexts()
/systemd-251/src/udev/
Dudevd.c833 if (hashmap_size(manager->workers) >= arg_children_max) { in event_run()
837 … log_debug("Maximum number (%u) of children reached.", hashmap_size(manager->workers)); in event_run()
/systemd-251/src/portable/
Dportable.c132 sorted = new(PortableMetadata*, hashmap_size(unit_files)); in portable_metadata_hashmap_to_sorted_array()
139 assert(k == hashmap_size(unit_files)); in portable_metadata_hashmap_to_sorted_array()
/systemd-251/src/home/
Dhomed-home-bus.c766 l = new0(char*, hashmap_size(m->homes_by_uid) + 1); in bus_home_node_enumerator()

12