Home
last modified time | relevance | path

Searched refs:now_usec (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/network/
Dtest-networkd-address.c15 usec_t now_usec; in TEST() local
17 now_usec = now(CLOCK_BOOTTIME); in TEST()
19 test_FORMAT_LIFETIME_one(now_usec, "for 0"); in TEST()
20 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-address.c216 usec_t now_usec; in address_set_cinfo() local
221 now_usec = now(CLOCK_BOOTTIME); in address_set_cinfo()
224 … .ifa_valid = MIN(usec_sub_unsigned(a->lifetime_valid_usec, now_usec) / USEC_PER_SEC, UINT32_MAX), in address_set_cinfo()
225 ….ifa_prefered = MIN(usec_sub_unsigned(a->lifetime_preferred_usec, now_usec) / USEC_PER_SEC, UINT32… in address_set_cinfo()
232 usec_t now_usec; in address_set_lifetime() local
237 now_usec = now(CLOCK_BOOTTIME); in address_set_lifetime()
242 a->lifetime_valid_usec = usec_add(cinfo->ifa_valid * USEC_PER_SEC, now_usec); in address_set_lifetime()
247 a->lifetime_preferred_usec = usec_add(cinfo->ifa_prefered * USEC_PER_SEC, now_usec); in address_set_lifetime()
/systemd-251/src/shared/
Dclock-util.c137 usec_t epoch_usec, now_usec; in clock_apply_epoch() local
153 now_usec = now(CLOCK_REALTIME); in clock_apply_epoch()
154 if (now_usec < epoch_usec) in clock_apply_epoch()
156 else if (now_usec > usec_add(epoch_usec, CLOCK_VALID_RANGE_USEC_MAX)) in clock_apply_epoch()
/systemd-251/src/udev/
Dudevd.c869 usec_t now_usec; in event_is_blocked() local
871 r = sd_event_now(event->manager->event, CLOCK_BOOTTIME, &now_usec); in event_is_blocked()
875 if (event->retry_again_next_usec <= now_usec) in event_is_blocked()
1066 usec_t now_usec; in event_requeue() local
1077 r = sd_event_now(event->manager->event, CLOCK_BOOTTIME, &now_usec); in event_requeue()
1084 if (event->retry_again_timeout_usec > 0 && event->retry_again_timeout_usec <= now_usec) in event_requeue()
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()