/systemd-251/src/test/ |
D | test-hashmap-plain.c | 30 hashmap_put(m, "key 1", val1); in TEST() 31 hashmap_put(m, "key 2", val2); in TEST() 32 hashmap_put(m, "key 3", val3); in TEST() 33 hashmap_put(m, "key 4", val4); in TEST() 66 hashmap_put(m, "key 1", val1); in TEST() 67 hashmap_put(m, "key 2", val2); in TEST() 68 hashmap_put(m, "key 3", val3); in TEST() 69 hashmap_put(m, "key 4", val4); in TEST() 102 hashmap_put(m, "key 1", val1); in TEST() 103 hashmap_put(m, "key 2", val2); in TEST() [all …]
|
D | test-seccomp.c | 779 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_access + 1), INT_TO_PTR(-1)) >= 0); in TEST() 783 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_faccessat + 1), INT_TO_PTR(-1)) >= 0); in TEST() 787 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_faccessat2 + 1), INT_TO_PTR(-1)) >= 0); in TEST() 801 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_access + 1), INT_TO_PTR(EILSEQ)) >= 0); in TEST() 804 … assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_faccessat + 1), INT_TO_PTR(EILSEQ)) >= 0); in TEST() 807 … assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_faccessat2 + 1), INT_TO_PTR(EILSEQ)) >= 0); in TEST() 819 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_poll + 1), INT_TO_PTR(-1)) >= 0); in TEST() 823 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_ppoll + 1), INT_TO_PTR(-1)) >= 0); in TEST() 827 … assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_ppoll_time64 + 1), INT_TO_PTR(-1)) >= 0); in TEST() 842 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_poll + 1), INT_TO_PTR(EILSEQ)) >= 0); in TEST() [all …]
|
D | test-hashmap.c | 83 assert_se(hashmap_put(m, INT_TO_PTR(foo), INT_TO_PTR(foo + 777)) == 1); in TEST()
|
/systemd-251/src/oom/ |
D | test-oomd-util.c | 227 assert_se(hashmap_put(h_old, paths[0], &ctx_old[0]) >= 0); in test_oomd_update_cgroup_contexts_between_hashmaps() 228 assert_se(hashmap_put(h_old, paths[1], &ctx_old[1]) >= 0); in test_oomd_update_cgroup_contexts_between_hashmaps() 231 assert_se(hashmap_put(h_new, paths[0], &ctx_new[0]) >= 0); in test_oomd_update_cgroup_contexts_between_hashmaps() 232 assert_se(hashmap_put(h_new, paths[1], &ctx_new[1]) >= 0); in test_oomd_update_cgroup_contexts_between_hashmaps() 312 assert_se(hashmap_put(h1, "/herp.slice", &ctx[0]) >= 0); in test_oomd_pressure_above() 320 assert_se(hashmap_put(h2, "/derp.slice", &ctx[1]) >= 0); in test_oomd_pressure_above() 327 assert_se(hashmap_put(h1, "/derp.slice", &ctx[1]) >= 0); in test_oomd_pressure_above() 417 assert_se(hashmap_put(h, "/herp.slice", &ctx[0]) >= 0); in test_oomd_sort_cgroups() 418 assert_se(hashmap_put(h, "/herp.slice/derp.scope", &ctx[1]) >= 0); in test_oomd_sort_cgroups() 419 assert_se(hashmap_put(h, "/herp.slice/derp.scope/sheep.service", &ctx[2]) >= 0); in test_oomd_sort_cgroups() [all …]
|
/systemd-251/src/portable/ |
D | portabled-image.c | 69 r = hashmap_put(m->image_cache, image->path, image); in manager_image_cache_add() 76 r = hashmap_put(m->image_cache, image->name, image); in manager_image_cache_add()
|
/systemd-251/src/tmpfiles/ |
D | offline-passwd.c | 59 r = hashmap_put(cache, n, UID_TO_PTR(pw->pw_uid)); in populate_uid_cache() 97 r = hashmap_put(cache, n, GID_TO_PTR(gr->gr_gid)); in populate_gid_cache()
|
/systemd-251/src/login/ |
D | logind-user.c | 87 r = hashmap_put(m->users, UID_TO_PTR(ur->uid), u); in user_new() 91 r = hashmap_put(m->user_units, u->slice, u); in user_new() 95 r = hashmap_put(m->user_units, u->service, u); in user_new() 99 r = hashmap_put(m->user_units, u->runtime_dir_service, u); in user_new()
|
D | logind-device.c | 24 if (hashmap_put(m->devices, d->sysfs, d) < 0) { in device_new()
|
D | logind-session.c | 80 r = hashmap_put(m->sessions, s->id, s); in session_new() 178 r = hashmap_put(s->manager->sessions_by_leader, PID_TO_PTR(pid), s); in session_set_leader() 685 (void) hashmap_put(s->manager->session_units, s->scope, s); in session_start_scope()
|
/systemd-251/src/shared/ |
D | bus-unit-procs.c | 73 r = hashmap_put(cgroups, cg->cgroup_path, cg); in add_cgroup() 284 r = hashmap_put(names, pidp, (void*) name); in dump_extra_processes()
|
D | bus-polkit.c | 387 r = hashmap_put(*registry, call, q); in bus_verify_polkit_async()
|
/systemd-251/src/sysupdate/ |
D | sysupdate-cache.c | 69 r = hashmap_put(*web_cache, item->url, item); in web_cache_add_item()
|
/systemd-251/src/machine/ |
D | machine.c | 63 if (hashmap_put(manager->machines, m->name, m) < 0) in machine_new() 428 hashmap_put(m->manager->machine_units, m->unit, m); in machine_ensure_scope() 444 r = hashmap_put(m->manager->machine_leaders, PID_TO_PTR(m->leader), m); in machine_start()
|
/systemd-251/src/libsystemd/sd-device/ |
D | test-sd-device.c | 282 assert_se(hashmap_put(subsystems, str, h) >= 0); in TEST() 285 assert_se(hashmap_put(h, syspath, d) >= 0); in TEST()
|
/systemd-251/src/resolve/ |
D | resolved-etc-hosts.c | 90 r = hashmap_put(hosts->by_address, &item->address, item); in parse_line() 144 r = hashmap_put(hosts->by_name, name, bn); in parse_line()
|
D | resolved-dns-zone.c | 145 r = hashmap_put(z->by_key, i->rr->key, i); in dns_zone_link_item() 155 r = hashmap_put(z->by_name, dns_resource_key_name(i->rr->key), i); in dns_zone_link_item()
|
/systemd-251/src/xdg-autostart-generator/ |
D | xdg-autostart-generator.c | 86 r = hashmap_put(all_services, service->name, service); in enumerate_xdg_autostart()
|
/systemd-251/src/network/wait-online/ |
D | link.c | 91 r = hashmap_put(l->manager->links_by_name, l->ifname, l); in link_update_rtnl()
|
/systemd-251/src/coredump/ |
D | coredump-vacuum.c | 208 r = hashmap_put(h, UID_TO_PTR(uid), n); in coredump_vacuum()
|
/systemd-251/src/basic/ |
D | hashmap.h | 155 int hashmap_put(Hashmap *h, const void *key, void *value); 157 return hashmap_put(PLAIN_HASHMAP(h), key, value); in ordered_hashmap_put()
|
D | conf-files.c | 123 r = hashmap_put(h, key, p); in files_add()
|
/systemd-251/src/analyze/ |
D | analyze-critical-chain.c | 216 r = hashmap_put(h, u->name, u); in verb_critical_chain()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 190 k = hashmap_put(database_by_username, n, UID_TO_PTR(pw->pw_uid)); in load_user_database() 194 q = hashmap_put(database_by_uid, UID_TO_PTR(pw->pw_uid), n); in load_user_database() 238 k = hashmap_put(database_by_groupname, n, GID_TO_PTR(gr->gr_gid)); in load_group_database() 242 q = hashmap_put(database_by_gid, GID_TO_PTR(gr->gr_gid), n); in load_group_database()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-match.c | 510 r = hashmap_put(c->compare.children, UINT_TO_PTR(value_u8), n); in bus_match_add_compare_value() 512 r = hashmap_put(c->compare.children, n->value.str, n); in bus_match_add_compare_value()
|
/systemd-251/src/import/ |
D | curl-util.c | 100 r = hashmap_put(g->ios, FD_TO_PTR(s), io); in curl_glue_socket_callback()
|