/systemd-251/src/shared/ |
D | bus-unit-procs.c | 160 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()
|
D | conf-parser.c | 700 if (hashmap_size(a) != hashmap_size(b)) in stats_by_path_equal()
|
/systemd-251/src/test/ |
D | test-hashmap-plain.c | 187 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/ |
D | sd-lldp-rx.c | 68 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/ |
D | dbus-job.c | 167 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/ |
D | sysupdate-cache.c | 43 … 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/ |
D | bus-track.c | 72 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/ |
D | resolved-dnssd-bus.c | 100 l = new0(char*, hashmap_size(m->dnssd_services) + 1); in dnssd_node_enumerator()
|
D | resolved-dns-zone.c | 73 assert(hashmap_size(z->by_key) == 0); in dns_zone_flush() 74 assert(hashmap_size(z->by_name) == 0); in dns_zone_flush()
|
D | resolved-dns-cache.c | 163 assert(hashmap_size(c->by_key) == 0); in dns_cache_flush() 1343 return hashmap_size(cache->by_key); in dns_cache_size()
|
D | resolved-link-bus.c | 854 l = new0(char*, hashmap_size(m->links) + 1); in link_node_enumerator()
|
/systemd-251/src/libudev/ |
D | libudev-list.c | 147 n = hashmap_size(list->unique_entries); in udev_list_get_entry()
|
/systemd-251/src/basic/ |
D | hashmap.h | 259 static inline unsigned hashmap_size(Hashmap *h) { in hashmap_size() function 267 return hashmap_size(h) == 0; in hashmap_isempty()
|
D | conf-files.c | 179 typesafe_qsort(files, hashmap_size(fh), base_cmp); in conf_files_list_strv_internal()
|
/systemd-251/src/journal/ |
D | journald-context.c | 618 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/ |
D | systemctl-list-unit-files.c | 160 n_units = hashmap_size(h); in verb_list_unit_files()
|
/systemd-251/src/network/ |
D | networkd-bridge-mdb.c | 61 …if (hashmap_size(network->bridge_mdb_entries_by_section) >= STATIC_BRIDGE_MDB_ENTRIES_PER_NETWORK_… in bridge_mdb_new_static()
|
D | networkd-bridge-fdb.c | 70 …if (hashmap_size(network->bridge_fdb_entries_by_section) >= STATIC_BRIDGE_FDB_ENTRIES_PER_NETWORK_… in bridge_fdb_new_static()
|
D | networkd-nexthop.c | 456 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()
|
D | networkd-json.c | 168 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/ |
D | importd.c | 149 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/ |
D | oomd-util.c | 154 sorted = new0(OomdCGroupContext*, hashmap_size(h)); in oomd_sort_cgroup_contexts()
|
/systemd-251/src/udev/ |
D | udevd.c | 833 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/ |
D | portable.c | 132 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/ |
D | homed-home-bus.c | 766 l = new0(char*, hashmap_size(m->homes_by_uid) + 1); in bus_home_node_enumerator()
|