Home
last modified time | relevance | path

Searched refs:hashmap_put (Results 1 – 25 of 67) sorted by relevance

123

/systemd-251/src/test/
Dtest-hashmap-plain.c30 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 …]
Dtest-seccomp.c779 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 …]
Dtest-hashmap.c83 assert_se(hashmap_put(m, INT_TO_PTR(foo), INT_TO_PTR(foo + 777)) == 1); in TEST()
/systemd-251/src/oom/
Dtest-oomd-util.c227 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/
Dportabled-image.c69 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/
Doffline-passwd.c59 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/
Dlogind-user.c87 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()
Dlogind-device.c24 if (hashmap_put(m->devices, d->sysfs, d) < 0) { in device_new()
Dlogind-session.c80 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/
Dbus-unit-procs.c73 r = hashmap_put(cgroups, cg->cgroup_path, cg); in add_cgroup()
284 r = hashmap_put(names, pidp, (void*) name); in dump_extra_processes()
Dbus-polkit.c387 r = hashmap_put(*registry, call, q); in bus_verify_polkit_async()
/systemd-251/src/sysupdate/
Dsysupdate-cache.c69 r = hashmap_put(*web_cache, item->url, item); in web_cache_add_item()
/systemd-251/src/machine/
Dmachine.c63 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/
Dtest-sd-device.c282 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/
Dresolved-etc-hosts.c90 r = hashmap_put(hosts->by_address, &item->address, item); in parse_line()
144 r = hashmap_put(hosts->by_name, name, bn); in parse_line()
Dresolved-dns-zone.c145 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/
Dxdg-autostart-generator.c86 r = hashmap_put(all_services, service->name, service); in enumerate_xdg_autostart()
/systemd-251/src/network/wait-online/
Dlink.c91 r = hashmap_put(l->manager->links_by_name, l->ifname, l); in link_update_rtnl()
/systemd-251/src/coredump/
Dcoredump-vacuum.c208 r = hashmap_put(h, UID_TO_PTR(uid), n); in coredump_vacuum()
/systemd-251/src/basic/
Dhashmap.h155 int hashmap_put(Hashmap *h, const void *key, void *value);
157 return hashmap_put(PLAIN_HASHMAP(h), key, value); in ordered_hashmap_put()
Dconf-files.c123 r = hashmap_put(h, key, p); in files_add()
/systemd-251/src/analyze/
Danalyze-critical-chain.c216 r = hashmap_put(h, u->name, u); in verb_critical_chain()
/systemd-251/src/sysusers/
Dsysusers.c190 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/
Dbus-match.c510 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/
Dcurl-util.c100 r = hashmap_put(g->ios, FD_TO_PTR(s), io); in curl_glue_socket_callback()

123