Searched refs:INT_TO_PTR (Results 1 - 25 of 29) sorted by relevance

12

/systemd/src/test/
H A Dtest-hashmap.c32 assert_se(ordered_hashmap_put(m, INT_TO_PTR(i), INT_TO_PTR(i+10)) == 1);
34 assert_se(ordered_hashmap_next(m, INT_TO_PTR(i)) == INT_TO_PTR(i+11));
35 assert_se(!ordered_hashmap_next(m, INT_TO_PTR(2)));
36 assert_se(!ordered_hashmap_next(NULL, INT_TO_PTR(1)));
37 assert_se(!ordered_hashmap_next(m, INT_TO_PTR(3)));
49 assert_se(trivial_compare_func(INT_TO_PTR('a'), INT_TO_PTR('a')) == 0);
50 assert_se(trivial_compare_func(INT_TO_PTR('
[all...]
H A Dtest-hashmap-plain.c698 return trivial_hash_func(INT_TO_PTR(PTR_TO_INT(p) & 0xff), state);
/systemd/src/basic/
H A Dexit-status.c190 set_contains(success_status->status, INT_TO_PTR(status)));
201 set_contains(success_status->signal, INT_TO_PTR(status)));
236 if (code == CLD_EXITED && set_contains(x->status, INT_TO_PTR(status)))
239 if (IN_SET(code, CLD_KILLED, CLD_DUMPED) && set_contains(x->signal, INT_TO_PTR(status)))
H A Dxml.c98 *state = INT_TO_PTR(STATE_TEXT);
161 *state = INT_TO_PTR(STATE_TAG);
184 *state = INT_TO_PTR(STATE_ATTRIBUTE);
194 *state = INT_TO_PTR(STATE_TEXT);
226 *state = INT_TO_PTR(STATE_TAG);
244 *state = INT_TO_PTR(STATE_TAG);
H A Djson.c515 *state = INT_TO_PTR(STATE_VALUE);
522 *state = INT_TO_PTR(STATE_VALUE_POST);
529 *state = INT_TO_PTR(STATE_VALUE);
536 *state = INT_TO_PTR(STATE_VALUE_POST);
546 *state = INT_TO_PTR(STATE_VALUE_POST);
556 *state = INT_TO_PTR(STATE_VALUE_POST);
563 *state = INT_TO_PTR(STATE_VALUE_POST);
570 *state = INT_TO_PTR(STATE_VALUE_POST);
577 *state = INT_TO_PTR(STATE_VALUE_POST);
589 *state = INT_TO_PTR(STATE_VALU
[all...]
H A Dfd-util.h30 #define FD_TO_PTR(fd) INT_TO_PTR((fd)+1)
H A Dmacro.h273 #define INT_TO_PTR(u) ((void *) ((intptr_t) (u))) macro
/systemd/src/libsystemd/sd-event/
H A Dtest-event.c46 if (userdata == INT_TO_PTR('a')) {
50 } else if (userdata == INT_TO_PTR('b')) {
53 } else if (userdata == INT_TO_PTR('d')) {
72 assert_se(userdata == INT_TO_PTR('f'));
89 assert_se(userdata == INT_TO_PTR('e'));
99 assert_se(sd_event_add_child(sd_event_source_get_event(s), &p, pid, WEXITED, child_handler, INT_TO_PTR('f')) >= 0);
114 assert_se(userdata == INT_TO_PTR('d'));
118 assert_se(sd_event_add_signal(sd_event_source_get_event(s), &p, SIGUSR1, signal_handler, INT_TO_PTR('e')) >= 0);
132 if (userdata == INT_TO_PTR('c')) {
137 assert_se(sd_event_add_defer(sd_event_source_get_event(s), &p, defer_handler, INT_TO_PTR('
[all...]
H A Dsd-event.c2535 if (ev_queue[i].data.ptr == INT_TO_PTR(SOURCE_WATCHDOG))
2859 ev.data.ptr = INT_TO_PTR(SOURCE_WATCHDOG);
/systemd/src/network/
H A Dnetworkd-wait-online-link.c58 r = hashmap_put(m->links, INT_TO_PTR(ifindex), l);
75 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
H A Dnetworkd-wait-online-manager.c122 l = hashmap_get(m->links, INT_TO_PTR(ifindex));
293 r = sd_event_add_time(m->event, NULL, clock_boottime_or_monotonic(), usec, 0, NULL, INT_TO_PTR(-ETIMEDOUT));
H A Dnetworkd-link.c361 r = hashmap_put(manager->links, INT_TO_PTR(link->ifindex), link);
413 hashmap_remove(link->manager->links, INT_TO_PTR(link->ifindex));
423 hashmap_remove(link->bound_to_links, INT_TO_PTR(carrier->ifindex));
427 hashmap_remove(link->bound_by_links, INT_TO_PTR(carrier->ifindex));
467 link = hashmap_get(m->links, INT_TO_PTR(ifindex));
1536 if (hashmap_get(*h, INT_TO_PTR(carrier->ifindex)))
1543 r = hashmap_put(*h, INT_TO_PTR(carrier->ifindex), carrier);
1661 hashmap_remove(link->bound_to_links, INT_TO_PTR(bound_to->ifindex));
1663 if (hashmap_remove(bound_to->bound_by_links, INT_TO_PTR(link->ifindex)))
1675 hashmap_remove(link->bound_by_links, INT_TO_PTR(bound_b
[all...]
H A Dnetworkd-manager.c1309 link = hashmap_get(m->links, INT_TO_PTR(gateways[i].ifindex));
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-match.c68 s->userdata = INT_TO_PTR(value);
H A Dtest-bus-server.c121 return INT_TO_PTR(r);
H A Dtest-bus-chat.c348 return INT_TO_PTR(r);
517 return INT_TO_PTR(r);
H A Dtest-bus-objects.c294 return INT_TO_PTR(r);
H A Dbusctl.c74 #define NAME_IS_ACQUIRED INT_TO_PTR(1)
75 #define NAME_IS_ACTIVATABLE INT_TO_PTR(2)
/systemd/src/resolve/
H A Dresolved-manager.c68 l = hashmap_get(m->links, INT_TO_PTR(ifindex));
131 l = hashmap_get(m->links, INT_TO_PTR(ifindex));
1045 l = hashmap_get(m->links, INT_TO_PTR(p->ifindex));
H A Dresolved-link-bus.c494 link = hashmap_get(m->links, INT_TO_PTR(ifindex));
H A Dresolved-link.c52 r = hashmap_put(m->links, INT_TO_PTR(ifindex), l);
88 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
/systemd/src/core/
H A Dcgroup.c809 r = hashmap_put(u->manager->cgroup_inotify_wd_unit, INT_TO_PTR(u->cgroup_inotify_wd), u);
1041 (void) hashmap_remove(u->manager->cgroup_inotify_wd_unit, INT_TO_PTR(u->cgroup_inotify_wd));
1234 u = hashmap_get(m->cgroup_inotify_wd_unit, INT_TO_PTR(e->wd));
H A Dload-fragment.c2552 r = set_put(c->syscall_filter, INT_TO_PTR(id + 1));
2579 r = set_put(c->syscall_filter, INT_TO_PTR(id + 1));
2585 set_remove(c->syscall_filter, INT_TO_PTR(id + 1));
2745 r = set_put(c->address_families, INT_TO_PTR(af));
2751 set_remove(c->address_families, INT_TO_PTR(af));
3313 r = set_put(*set, INT_TO_PTR(val));
/systemd/src/login/
H A Dpam_systemd.c481 r = pam_set_data(handle, "systemd.existing", INT_TO_PTR(!!existing), NULL);
/systemd/src/journal/
H A Dsd-journal.c103 k = hashmap_put(j->errors, INT_TO_PTR(r), copy);
1427 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0)
1511 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0)
1545 hashmap_remove(j->directories_by_wd, INT_TO_PTR(d->wd));
2163 d = hashmap_get(j->directories_by_wd, INT_TO_PTR(e->wd));

Completed in 4186 milliseconds

12