Home
last modified time | relevance | path

Searched refs:Hashmap (Results 1 – 25 of 143) sorted by relevance

123456

/systemd-251/src/basic/
Dhashmap.h33 typedef struct Hashmap Hashmap; /* Maps keys to values */ typedef
59 __builtin_types_compatible_p(typeof(h), Hashmap*) || \
64 (__builtin_types_compatible_p(typeof(h), Hashmap*) || \
74 (Hashmap*)(h), \
87 Hashmap* _hashmap_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
101 static inline Hashmap* hashmap_free(Hashmap *h) { in hashmap_free()
108 static inline Hashmap* hashmap_free_free(Hashmap *h) { in hashmap_free_free()
115 static inline Hashmap* hashmap_free_free_key(Hashmap *h) { in hashmap_free_free_key()
122 static inline Hashmap* hashmap_free_free_free(Hashmap *h) { in hashmap_free_free_free()
133 #define hashmap_copy(h) ((Hashmap*) _hashmap_copy(HASHMAP_BASE(h) HASHMAP_DEBUG_SRC_ARGS))
[all …]
Dunit-file.h51 Hashmap **unit_ids_map,
52 Hashmap **unit_names_map,
56 Hashmap *unit_ids_map,
57 Hashmap *unit_name_map,
Dhashmap.c219 struct Hashmap { struct
243 DEFINE_MEMPOOL(hashmap_pool, Hashmap, 8);
246 assert_cc(sizeof(Hashmap) == sizeof(Set));
257 .head_size = sizeof(Hashmap),
379 static struct plain_hashmap_entry* plain_bucket_at(Hashmap *h, unsigned idx) { in plain_bucket_at()
808 Hashmap *_hashmap_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS) { in _hashmap_new()
809 … return (Hashmap*) hashmap_base_new(hash_ops, HASHMAP_TYPE_PLAIN HASHMAP_DEBUG_PASS_ARGS); in _hashmap_new()
837 int _hashmap_ensure_allocated(Hashmap **h, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS) { in _hashmap_ensure_allocated()
849 int _hashmap_ensure_put(Hashmap **h, const struct hash_ops *hash_ops, const void *key, void *value … in _hashmap_ensure_put()
1229 int hashmap_put(Hashmap *h, const void *key, void *value) { in hashmap_put()
[all …]
/systemd-251/src/network/
Dnetworkd-manager.h28 Hashmap *polkit_registry;
50 Hashmap *links_by_index;
51 Hashmap *links_by_name;
52 Hashmap *links_by_hw_addr;
53 Hashmap *links_by_dhcp_pd_subnet_prefix;
54 Hashmap *netdevs;
73 Hashmap *nexthops_by_id;
84 Hashmap *route_table_numbers_by_name;
85 Hashmap *route_table_names_by_number;
88 Hashmap *wiphy_by_index;
[all …]
Dnetworkd-network.h68 Hashmap *stats_by_path;
82 Hashmap *stacked_netdevs;
87 Hashmap *stacked_netdev_names;
329 Hashmap *routes_by_section;
330 Hashmap *nexthops_by_section;
331 Hashmap *bridge_fdb_entries_by_section;
332 Hashmap *bridge_mdb_entries_by_section;
333 Hashmap *neighbors_by_section;
334 Hashmap *address_labels_by_section;
335 Hashmap *prefixes_by_section;
[all …]
/systemd-251/src/login/
Dlogind.h29 Hashmap *devices;
30 Hashmap *seats;
31 Hashmap *sessions;
32 Hashmap *sessions_by_leader;
33 Hashmap *users; /* indexed by UID */
34 Hashmap *inhibitors;
35 Hashmap *buttons;
36 Hashmap *brightness_writers;
65 Hashmap *session_units;
66 Hashmap *user_units;
[all …]
/systemd-251/src/core/
Dmanager.h149 Hashmap *units; /* name string => Unit object n:1 */
150 Hashmap *units_by_invocation_id;
151 Hashmap *jobs; /* job id => Job object 1:1 */
207 Hashmap *watch_pids; /* pid => unit as well as -pid => array of units */
240 Hashmap *unit_id_map;
241 Hashmap *unit_name_map;
257 Hashmap *devices_by_sysfs;
266 Hashmap *swaps_by_devnode;
285 Hashmap *watch_bus; /* D-Bus names => Unit object n:1 */
296 Hashmap *cgroup_unit;
[all …]
/systemd-251/src/oom/
Doomd-util.h61 int oomd_pressure_above(Hashmap *h, usec_t duration, Set **ret);
110 int oomd_sort_cgroup_contexts(Hashmap *h, oomd_compare_t compare_func, const char *prefix, OomdCGro…
119 int oomd_kill_by_pgscan_rate(Hashmap *h, const char *prefix, bool dry_run, char **ret_selected);
120 int oomd_kill_by_swap_usage(Hashmap *h, uint64_t threshold_usage, bool dry_run, char **ret_selected…
129 int oomd_insert_cgroup_context(Hashmap *old_h, Hashmap *new_h, const char *path);
132 void oomd_update_cgroup_contexts_between_hashmaps(Hashmap *old_h, Hashmap *curr_h);
Doomd-manager.h36 Hashmap *polkit_registry;
45 Hashmap *monitored_swap_cgroup_contexts;
46 Hashmap *monitored_mem_pressure_cgroup_contexts;
47 Hashmap *monitored_mem_pressure_cgroup_contexts_candidates;
Doomd-manager.c69 Hashmap *monitor_hm; in process_managed_oom_message()
190 static int recursively_get_cgroup_context(Hashmap *new_h, const char *path) { in recursively_get_cgroup_context()
246 static int update_monitored_cgroup_contexts(Hashmap **monitored_cgroups) { in update_monitored_cgroup_contexts()
247 _cleanup_hashmap_free_ Hashmap *new_base = NULL; in update_monitored_cgroup_contexts()
272 static int get_monitored_cgroup_contexts_candidates(Hashmap *monitored_cgroups, Hashmap **ret_candi… in get_monitored_cgroup_contexts_candidates()
273 _cleanup_hashmap_free_ Hashmap *candidates = NULL; in get_monitored_cgroup_contexts_candidates()
297 static int update_monitored_cgroup_contexts_candidates(Hashmap *monitored_cgroups, Hashmap **candid… in update_monitored_cgroup_contexts_candidates()
298 _cleanup_hashmap_free_ Hashmap *new_candidates = NULL; in update_monitored_cgroup_contexts_candidates()
390 _cleanup_hashmap_free_ Hashmap *candidates = NULL; in monitor_swap_contexts_handler()
/systemd-251/src/test/
Dtest-hashmap-plain.c14 Hashmap *m; in TEST()
52 Hashmap *m, *copy; in TEST()
87 Hashmap *m; in TEST()
124 Hashmap *m, *n; in TEST()
163 Hashmap *m, *n; in TEST()
205 Hashmap *m; in TEST()
232 Hashmap *m = NULL; in TEST()
253 _cleanup_hashmap_free_ Hashmap *m = NULL; in TEST()
277 _cleanup_hashmap_free_free_free_ Hashmap *m = NULL; in TEST()
308 _cleanup_hashmap_free_ Hashmap *m = NULL; in TEST()
[all …]
Dtest-hashmap.c50 static void compare_cache(Hashmap *map, IteratedCache *cache) { in compare_cache()
71 Hashmap *m; in TEST()
107 _cleanup_hashmap_free_ Hashmap *m = NULL; in TEST()
133 _cleanup_hashmap_free_ Hashmap *m = NULL; in TEST()
/systemd-251/src/home/
Dhomed-manager.h32 Hashmap *polkit_registry;
34 Hashmap *homes_by_uid;
35 Hashmap *homes_by_name;
36 Hashmap *homes_by_worker_pid;
37 Hashmap *homes_by_sysfs;
62 Hashmap *public_keys; /* key name [char*] → publick key [EVP_PKEY*] */
/systemd-251/src/resolve/
Dresolved-manager.h30 Hashmap *by_address;
31 Hashmap *by_name;
51 Hashmap *links;
60 Hashmap *dns_transactions;
63 Hashmap *stub_queries_by_packet;
106 Hashmap *dnssd_services;
147 Hashmap *polkit_registry;
/systemd-251/src/tmpfiles/
Doffline-passwd.c31 static int populate_uid_cache(const char *root, Hashmap **ret) { in populate_uid_cache()
32 _cleanup_(hashmap_freep) Hashmap *cache = NULL; in populate_uid_cache()
72 static int populate_gid_cache(const char *root, Hashmap **ret) { in populate_gid_cache()
73 _cleanup_(hashmap_freep) Hashmap *cache = NULL; in populate_gid_cache()
114 Hashmap **cache) { in name_to_uid_offline()
141 Hashmap **cache) { in name_to_gid_offline()
/systemd-251/src/machine/
Dmachined.h23 Hashmap *machines;
24 Hashmap *machine_units;
25 Hashmap *machine_leaders;
27 Hashmap *polkit_registry;
29 Hashmap *image_cache;
/systemd-251/src/network/wait-online/
Dmanager.h16 Hashmap *links_by_index;
17 Hashmap *links_by_name;
20 Hashmap *command_line_interfaces_by_name;
37 int manager_new(Manager **ret, Hashmap *command_line_interfaces_by_name, char **ignored_interfaces,
/systemd-251/src/shared/
Dbus-unit-procs.c18 Hashmap *pids; /* PID → process name */
27 static int add_cgroup(Hashmap *cgroups, const char *path, bool is_const, struct CGroupInfo **ret) { in add_cgroup()
91 Hashmap *cgroups, in add_process()
110 static void remove_cgroup(Hashmap *cgroups, struct CGroupInfo *cg) { in remove_cgroup()
135 Hashmap *cgroups, in dump_processes()
250 Hashmap *cgroups, in dump_extra_processes()
256 _cleanup_hashmap_free_ Hashmap *names = NULL; in dump_extra_processes()
333 Hashmap *cgroups = NULL; in unit_show_processes()
Dbus-polkit.h10 …t char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bu…
11 Hashmap *bus_verify_polkit_async_registry_free(Hashmap *registry);
Dconf-parser.h104 Hashmap **ret_stats_by_path); /* possibly NULL */
115 Hashmap **ret_stats_by_path); /* possibly NULL */
122 Hashmap **ret);
124 bool stats_by_path_equal(Hashmap *a, Hashmap *b);
139 unsigned hashmap_find_free_section_line(Hashmap *hashmap);
/systemd-251/src/libsystemd-network/
Ddhcp-server-internal.h78 Hashmap *bound_leases_by_client_id;
79 Hashmap *bound_leases_by_address;
80 Hashmap *static_leases_by_client_id;
81 Hashmap *static_leases_by_address;
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-internal.h72 Hashmap *broadcast_group_refs;
88 Hashmap *reply_callbacks;
101 Hashmap *genl_family_by_name;
102 Hashmap *genl_family_by_id;
/systemd-251/src/libsystemd/sd-journal/
Djournal-internal.h118 Hashmap *directories_by_path;
119 Hashmap *directories_by_wd;
121 Hashmap *errors;
/systemd-251/src/network/generator/
Dnetwork-generator.h96 Hashmap *networks_by_name;
97 Hashmap *netdevs_by_name;
98 Hashmap *links_by_filename;
/systemd-251/src/coredump/
Dcoredump-vacuum.c41 static Hashmap* vacuum_candidate_hashmap_free(Hashmap *h) { in vacuum_candidate_hashmap_free()
45 DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, vacuum_candidate_hashmap_free);
144 _cleanup_(vacuum_candidate_hashmap_freep) Hashmap *h = NULL; in coredump_vacuum()

123456