Home
last modified time | relevance | path

Searched refs:sd_event_now (Results 1 – 21 of 21) sorted by relevance

/systemd-251/src/libsystemd/sd-event/
Dtest-event.c216 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0); in test_basic_one()
282 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0); in test_basic_one()
310 TEST(sd_event_now) { in TEST() argument
315 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0); in TEST()
316 assert_se(sd_event_now(e, CLOCK_REALTIME, &event_now) > 0); in TEST()
317 assert_se(sd_event_now(e, CLOCK_REALTIME_ALARM, &event_now) > 0); in TEST()
318 assert_se(sd_event_now(e, CLOCK_BOOTTIME, &event_now) > 0); in TEST()
319 assert_se(sd_event_now(e, CLOCK_BOOTTIME_ALARM, &event_now) > 0); in TEST()
320 assert_se(sd_event_now(e, -1, &event_now) == -EOPNOTSUPP); in TEST()
321 assert_se(sd_event_now(e, 900 /* arbitrary big number */, &event_now) == -EOPNOTSUPP); in TEST()
[all …]
Devent-util.c105 r = sd_event_now(e, clock, &usec_now); in event_reset_time_relative()
Dsd-event.c1302 r = sd_event_now(e, clock, &t); in sd_event_add_time_relative()
2656 r = sd_event_now(s->event, event_source_type_to_clock(s->type), &t); in sd_event_source_set_time_relative()
4306 _public_ int sd_event_now(sd_event *e, clockid_t clock, uint64_t *usec) { in sd_event_now() function
/systemd-251/src/resolve/
Dresolved-socket-graveyard.c56 assert_se(sd_event_now(m->event, CLOCK_BOOTTIME, &n) >= 0); in manager_socket_graveyard_process()
116 assert_se(sd_event_now(m->event, CLOCK_BOOTTIME, &g->deadline) >= 0); in manager_add_socket_to_graveyard()
Dresolved-dns-server.c233 assert_se(sd_event_now(s->manager->event, CLOCK_BOOTTIME, &s->verified_usec) >= 0); in dns_server_verified()
408 assert_se(sd_event_now(s->manager->event, CLOCK_BOOTTIME, &ts) >= 0); in dns_server_grace_period_expired()
Dresolved-etc-hosts.c297 assert_se(sd_event_now(m->event, CLOCK_BOOTTIME, &ts) >= 0); in manager_etc_hosts_read()
Dresolved-dns-transaction.c1423 assert_se(sd_event_now(t->scope->manager->event, CLOCK_BOOTTIME, &usec) >= 0); in on_dns_packet()
1798 assert_se(sd_event_now(t->scope->manager->event, CLOCK_BOOTTIME, &ts) >= 0); in dns_transaction_make_packet_mdns()
1938 assert_se(sd_event_now(t->scope->manager->event, CLOCK_BOOTTIME, &ts) >= 0); in dns_transaction_go()
/systemd-251/src/libsystemd-network/
Dsd-ndisc.c272 assert_se(sd_event_now(nd->event, CLOCK_BOOTTIME, &time_now) >= 0); in ndisc_timeout()
347 r = sd_event_now(nd->event, CLOCK_BOOTTIME, &time_now); in sd_ndisc_start()
Dsd-ipv4acd.c203 assert_se(sd_event_now(acd->event, CLOCK_BOOTTIME, &time_now) >= 0); in ipv4acd_set_next_wakeup()
384 assert_se(sd_event_now(acd->event, CLOCK_BOOTTIME, &ts) >= 0); in ipv4acd_on_packet()
Dsd-dhcp-client.c824 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in client_message_init()
1249 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in client_timeout_resend()
1397 assert_se(sd_event_now(client->event, CLOCK_BOOTTIME, &usec) >= 0); in client_initialize_time_events()
1687 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in client_set_lease_timeouts()
Dsd-radv.c184 r = sd_event_now(ra->event, CLOCK_BOOTTIME, &time_now); in radv_send()
324 r = sd_event_now(ra->event, CLOCK_BOOTTIME, &time_now); in radv_timeout()
Dsd-dhcp6-client.c697 r = sd_event_now(client->event, CLOCK_BOOTTIME, &time_now); in dhcp6_client_send_message()
918 r = sd_event_now(client->event, CLOCK_BOOTTIME, &client->transaction_start); in client_start_transaction()
Dsd-dhcp-server.c990 r = sd_event_now(server->event, CLOCK_BOOTTIME, &time_now); in server_ack_request()
1042 r = sd_event_now(server->event, CLOCK_BOOTTIME, &time_now); in dhcp_server_cleanup_expired_leases()
/systemd-251/src/network/
Dnetworkd-speed-meter.c54 r = sd_event_now(sd_event_source_get_event(s), CLOCK_MONOTONIC, &usec_now); in speed_meter_handler()
/systemd-251/src/systemd/
Dsd-event.h108 int sd_event_now(sd_event *e, clockid_t clock, uint64_t *usec);
/systemd-251/src/oom/
Doomd-manager.c357 r = sd_event_now(sd_event_source_get_event(s), CLOCK_MONOTONIC, &usec_now); in monitor_swap_contexts_handler()
447 r = sd_event_now(sd_event_source_get_event(s), CLOCK_MONOTONIC, &usec_now); in monitor_memory_pressure_contexts_handler()
/systemd-251/src/udev/
Dudevd.c871 r = sd_event_now(event->manager->event, CLOCK_BOOTTIME, &now_usec); in event_is_blocked()
1015 assert_se(sd_event_now(manager->event, CLOCK_MONOTONIC, &usec) >= 0); in event_queue_start()
1077 r = sd_event_now(event->manager->event, CLOCK_BOOTTIME, &now_usec); in event_requeue()
/systemd-251/src/libsystemd/
Dlibsystemd.sym429 sd_event_now;
/systemd-251/man/rules/
Dmeson.build580 ['sd_event_now', '3', [], ''],
/systemd-251/src/journal/
Djournald-server.c836 assert_se(sd_event_now(s->event, CLOCK_REALTIME, &ts.realtime) >= 0); in write_to_journal()
837 assert_se(sd_event_now(s->event, CLOCK_MONOTONIC, &ts.monotonic) >= 0); in write_to_journal()
/systemd-251/
DTODO1093 * cache sd_event_now() result from before the first iteration...