Home
last modified time | relevance | path

Searched refs:usec_add (Results 1 – 25 of 51) sorted by relevance

123

/systemd-251/src/test/
Dtest-time-util.c272 TEST(usec_add) { in TEST() argument
273 assert_se(usec_add(0, 0) == 0); in TEST()
274 assert_se(usec_add(1, 4) == 5); in TEST()
275 assert_se(usec_add(USEC_INFINITY, 5) == USEC_INFINITY); in TEST()
276 assert_se(usec_add(5, USEC_INFINITY) == USEC_INFINITY); in TEST()
277 assert_se(usec_add(USEC_INFINITY-5, 2) == USEC_INFINITY-3); in TEST()
278 assert_se(usec_add(USEC_INFINITY-2, 2) == USEC_INFINITY); in TEST()
279 assert_se(usec_add(USEC_INFINITY-1, 2) == USEC_INFINITY); in TEST()
280 assert_se(usec_add(USEC_INFINITY, 2) == USEC_INFINITY); in TEST()
Dtest-loop-block.c282 end = usec_add(now(CLOCK_MONOTONIC), arg_timeout); in run()
/systemd-251/src/network/
Dtest-networkd-address.c20 test_FORMAT_LIFETIME_one(usec_add(now_usec, 2 * USEC_PER_SEC - 1), "for 1s"); in TEST()
21 … test_FORMAT_LIFETIME_one(usec_add(now_usec, 3 * USEC_PER_WEEK + USEC_PER_SEC - 1), "for 3w"); in TEST()
Dnetworkd-ndisc.c323 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_default()
451 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in ndisc_router_process_autonomous_prefix()
452 lifetime_preferred_usec = usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec); in ndisc_router_process_autonomous_prefix()
528 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_onlink_prefix()
669 route->lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_route()
723 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_rdnss()
817 lifetime_usec = usec_add(timestamp_usec, lifetime_sec * USEC_PER_SEC); in ndisc_router_process_dnssl()
Dnetworkd-dhcp-prefix-delegation.c889 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_assign_subnet_prefix()
961 lifetime_usec = usec_add(lifetime_sec * USEC_PER_SEC, now(CLOCK_BOOTTIME)); in dhcp4_pd_prefix_acquired()
1071 … lifetime_preferred_usec = usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_assign_subnet_prefixes()
1072 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_assign_subnet_prefixes()
1118 lifetime_valid_usec = usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec); in dhcp6_pd_prefix_acquired()
Dnetworkd-dhcp6.c274usec_add(lifetime_preferred_sec * USEC_PER_SEC, timestamp_usec), in dhcp6_address_acquired()
275usec_add(lifetime_valid_sec * USEC_PER_SEC, timestamp_usec)); in dhcp6_address_acquired()
/systemd-251/src/shared/
Dkillall.c115 until = usec_add(n, timeout); in wait_for_children()
116 date_log_child = usec_add(n, 10u * USEC_PER_SEC); in wait_for_children()
118 date_log_child = usec_add(n, timeout / 2u); in wait_for_children()
Dclock-util.c156 else if (now_usec > usec_add(epoch_usec, CLOCK_VALID_RANGE_USEC_MAX)) in clock_apply_epoch()
Dnscd-flush.c139 end = usec_add(now(CLOCK_MONOTONIC), NSCD_FLUSH_CACHE_TIMEOUT_USEC); in nscd_flush_cache()
/systemd-251/src/core/
Dscope.c65 return usec_add(usec_add(UNIT(s)->active_enter_timestamp.monotonic, in scope_running_timeout()
232 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_stop_usec); in scope_coldplug_timeout()
338 r = scope_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_stop_usec)); in scope_enter_signal()
Dservice.c219 …r = sd_event_source_set_time(s->watchdog_event_source, usec_add(s->watchdog_timestamp.monotonic, w… in service_start_watchdog()
231 usec_add(s->watchdog_timestamp.monotonic, watchdog_usec), 0, in service_start_watchdog()
287 extended = usec_add(now(CLOCK_MONOTONIC), extend_timeout_usec); in service_extend_timeout()
529 return usec_add(usec_add(UNIT(s)->active_enter_timestamp.monotonic, in service_running_timeout()
1161 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_start_usec); in service_coldplug_timeout()
1172 return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->timeout_stop_usec); in service_coldplug_timeout()
1176 … return usec_add(UNIT(s)->state_change_timestamp.monotonic, service_timeout_abort_usec(s)); in service_coldplug_timeout()
1179 return usec_add(UNIT(s)->inactive_enter_timestamp.monotonic, s->restart_usec); in service_coldplug_timeout()
1182 … return usec_add(UNIT(s)->state_change_timestamp.monotonic, s->exec_context.timeout_clean_usec); in service_coldplug_timeout()
1542 r = service_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), timeout)); in service_spawn_internal()
[all …]
Djob.c1062 timeout_time = usec_add(j->begin_running_usec, j->unit->job_running_timeout); in job_start_timer()
1084 timeout_time = usec_add(j->begin_usec, j->unit->job_timeout); in job_start_timer()
1287 timeout_time = usec_add(j->begin_usec, j->unit->job_timeout); in job_coldplug()
1290 … timeout_time = MIN(timeout_time, usec_add(j->begin_running_usec, j->unit->job_running_timeout)); in job_coldplug()
Dswap.c595 … r = swap_arm_timer(s, usec_add(u->state_change_timestamp.monotonic, s->timeout_usec)); in swap_coldplug()
683 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in swap_spawn()
785 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in swap_enter_signal()
1560 r = swap_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->exec_context.timeout_clean_usec)); in swap_clean()
Dmount.c754 … r = mount_arm_timer(m, usec_add(u->state_change_timestamp.monotonic, m->timeout_usec)); in mount_coldplug()
841 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->timeout_usec)); in mount_spawn()
950 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->timeout_usec)); in mount_enter_signal()
2140 r = mount_arm_timer(m, usec_add(now(CLOCK_MONOTONIC), m->exec_context.timeout_clean_usec)); in mount_clean()
Dsocket.c1875 … r = socket_arm_timer(s, usec_add(u->state_change_timestamp.monotonic, s->timeout_usec)); in socket_coldplug()
1939 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_spawn()
1970 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_chown()
2120 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->timeout_usec)); in socket_enter_signal()
3368 r = socket_arm_timer(s, usec_add(now(CLOCK_MONOTONIC), s->exec_context.timeout_clean_usec)); in socket_clean()
/systemd-251/src/basic/
Dtime-util.h172 static inline usec_t usec_add(usec_t a, usec_t b) { in usec_add() function
193 return usec_add(timestamp, (usec_t) (-delta)); in usec_sub_signed()
/systemd-251/src/userdb/
Duserwork.c516 if (n >= usec_add(start_time, RUNTIME_MAX_USEC)) { in run()
524 … else if (listen_idle_usec != USEC_INFINITY && n >= usec_add(last_busy_usec, listen_idle_usec)) { in run()
543 if (now(CLOCK_MONOTONIC) <= usec_add(n, PRESSURE_SLEEP_TIME_USEC)) { in run()
/systemd-251/src/cgtop/
Dcgtop.c956 if (t >= usec_add(last_refresh, arg_delay) || immediate_refresh) { in run()
979 (void) usleep(usec_add(usec_sub_unsigned(last_refresh, t), arg_delay)); in run()
981 … r = read_one_char(stdin, &key, usec_add(usec_sub_unsigned(last_refresh, t), arg_delay), NULL); in run()
1056 … arg_delay = usec_add(arg_delay, arg_delay < USEC_PER_SEC ? USEC_PER_MSEC * 250 : USEC_PER_SEC); in run()
/systemd-251/src/libsystemd/sd-event/
Devent-util.c109 …return event_reset_time(e, s, clock, usec_add(usec_now, usec), accuracy, callback, userdata, prior… in event_reset_time_relative()
Dsd-event.c233 return usec_add(s->rate_limit.begin, s->rate_limit.interval); in time_event_source_next()
251 return usec_add(s->rate_limit.begin, s->rate_limit.interval); in time_event_source_latest()
256 return usec_add(s->time.next, s->time.accuracy); in time_event_source_latest()
2660 usec = usec_add(t, usec); in sd_event_source_set_time_relative()
3779 usec_add(e->watchdog_last, (e->watchdog_period / 2)), in arm_watchdog()
3780 usec_add(e->watchdog_last, (e->watchdog_period * 3 / 4))); in arm_watchdog()
/systemd-251/src/ask-password/
Dask-password.c237 timeout = usec_add(now(CLOCK_MONOTONIC), arg_timeout); in run()
/systemd-251/src/login/
Dlogind-user.c682 now(CLOCK_MONOTONIC) < usec_add(u->last_session_timestamp, user_stop_delay)) in user_may_gc()
862 usec_add(u->last_session_timestamp, user_stop_delay), 0, in user_update_last_session_timer()
/systemd-251/src/udev/
Dudevadm-lock.c352 deadline = usec_add(now(CLOCK_MONOTONIC), arg_timeout_usec); in lock_main()
Dudevd.c1018 usec > usec_add(manager->last_usec, 3 * USEC_PER_SEC)) { in event_queue_start()
1091 event->retry_again_next_usec = usec_add(now_usec, EVENT_RETRY_INTERVAL_USEC); in event_requeue()
1093 event->retry_again_timeout_usec = usec_add(now_usec, EVENT_RETRY_TIMEOUT_USEC); in event_requeue()
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c529 return usec_add(lldp_tx->fast_tx > 0 ? LLDP_FAST_TX_INTERVAL_USEC : LLDP_TX_INTERVAL_USEC, in lldp_tx_get_delay()

123