Searched refs:usec (Results 1 - 25 of 66) sorted by relevance

123

/systemd/src/shared/
H A Dwatchdog.h27 int watchdog_set_timeout(usec_t *usec);
H A Dwatchdog.c98 int watchdog_set_timeout(usec_t *usec) { argument
101 watchdog_timeout = *usec;
113 *usec = watchdog_timeout;
/systemd/src/basic/
H A Dxattr-util.h33 int fd_setcrtime(int fd, usec_t usec);
35 int fd_getcrtime(int fd, usec_t *usec);
36 int path_getcrtime(const char *p, usec_t *usec);
37 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags);
H A Dxattr-util.c126 static int parse_crtime(le64_t le, usec_t *usec) { argument
129 assert(usec);
135 *usec = (usec_t) u;
139 int fd_getcrtime(int fd, usec_t *usec) { argument
144 assert(usec);
155 return parse_crtime(le, usec);
158 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags) { argument
168 return parse_crtime(le, usec);
171 int path_getcrtime(const char *p, usec_t *usec) { argument
176 assert(usec);
187 fd_setcrtime(int fd, usec_t usec) argument
[all...]
H A Dcalendarspec.h58 int calendar_spec_next_usec(const CalendarSpec *spec, usec_t usec, usec_t *next);
H A Dtime-util.h103 int parse_timestamp(const char *t, usec_t *usec);
105 int parse_sec(const char *t, usec_t *usec);
106 int parse_time(const char *t, usec_t *usec, usec_t default_unit);
125 unsigned long usec_to_jiffies(usec_t usec);
H A Dcalendarspec.c240 static void format_chain(FILE *f, int space, const CalendarComponent *c, bool usec) { argument
249 if (!usec)
257 if (!usec)
267 format_chain(f, space, c->next, usec);
410 static int parse_component_decimal(const char **p, bool usec, unsigned long *res) { argument
426 if (usec) {
451 static int prepend_component(const char **p, bool usec, CalendarComponent **c) { argument
462 r = parse_component_decimal(&e, usec, &value);
468 r = parse_component_decimal(&e, usec, &repeat);
492 return prepend_component(p, usec,
516 parse_chain(const char **p, bool usec, CalendarComponent **c) argument
968 find_next(const CalendarSpec *spec, struct tm *tm, usec_t *usec) argument
1063 calendar_spec_next_usec(const CalendarSpec *spec, usec_t usec, usec_t *next) argument
[all...]
H A Dtime-util.c303 usec_t usec; member in struct:__anon26
349 if (t < table[i].usec)
355 a = t / table[i].usec;
356 b = t % table[i].usec;
364 for (cc = table[i].usec; cc > 1; cc /= 10)
442 int parse_timestamp(const char *t, usec_t *usec) { argument
490 assert(usec);
493 return parse_sec(t + 1, usec);
671 *usec = ret;
676 int parse_time(const char *t, usec_t *usec, usec_ argument
680 usec_t usec; member in struct:__anon28
805 parse_sec(const char *t, usec_t *usec) argument
[all...]
/systemd/src/systemd/
H A Dsd-event.h70 typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
81 int sd_event_add_time(sd_event *e, sd_event_source **s, clockid_t clock, uint64_t usec, uint64_t accuracy, sd_event_time_handler_t callback, void *userdata);
89 int sd_event_wait(sd_event *e, uint64_t usec);
91 int sd_event_run(sd_event *e, uint64_t usec);
95 int sd_event_now(sd_event *e, clockid_t clock, uint64_t *usec);
124 int sd_event_source_get_time(sd_event_source *s, uint64_t *usec);
125 int sd_event_source_set_time(sd_event_source *s, uint64_t usec);
126 int sd_event_source_get_time_accuracy(sd_event_source *s, uint64_t *usec);
127 int sd_event_source_set_time_accuracy(sd_event_source *s, uint64_t usec);
H A Dsd-daemon.h274 0 if it does not expect this. If the usec argument is non-NULL
285 int sd_watchdog_enabled(int unset_environment, uint64_t *usec);
H A Dsd-device.h59 int sd_device_get_usec_since_initialized(sd_device *device, uint64_t *usec);
/systemd/src/boot/efi/
H A Dutil.h37 VOID efivar_set_time_usec(CHAR16 *name, UINT64 usec);
H A Dutil.c169 VOID efivar_set_time_usec(CHAR16 *name, UINT64 usec) { argument
172 if (usec == 0)
173 usec = time_usec();
174 if (usec == 0)
177 SPrint(str, 32, L"%ld", usec);
/systemd/src/import/
H A Dcurl-util.c163 static int curl_glue_on_timer(sd_event_source *s, uint64_t usec, void *userdata) { argument
181 usec_t usec; local
195 usec = now(clock_boottime_or_monotonic()) + (usec_t) timeout_ms * USEC_PER_MSEC + USEC_PER_MSEC - 1;
198 if (sd_event_source_set_time(g->timer, usec) < 0)
204 if (sd_event_add_time(g->event, &g->timer, clock_boottime_or_monotonic(), usec, 0, curl_glue_on_timer, g) < 0)
/systemd/src/core/
H A Dscope.c44 static int scope_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata);
67 static int scope_arm_timer(Scope *s, usec_t usec) { argument
73 r = sd_event_source_set_time(s->timer_event_source, usec);
80 if (usec == USEC_INFINITY)
87 usec, 0,
436 static int scope_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata) { argument
/systemd/src/resolve/
H A Dresolved-dns-scope.h81 void dns_scope_packet_lost(DnsScope *s, usec_t usec);
H A Dresolved-dns-server.h113 void dns_server_packet_lost(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t usec);
/systemd/src/network/
H A Dnetworkd-wait-online-manager.c289 usec_t usec; local
291 usec = now(clock_boottime_or_monotonic()) + timeout;
293 r = sd_event_add_time(m->event, NULL, clock_boottime_or_monotonic(), usec, 0, NULL, INT_TO_PTR(-ETIMEDOUT));
H A Dnetworkd-route.h67 int route_expire_handler(sd_event_source *s, uint64_t usec, void *userdata);
/systemd/src/libsystemd/sd-netlink/
H A Dsd-netlink.c435 static usec_t calc_elapse(uint64_t usec) { argument
436 if (usec == (uint64_t) -1)
439 if (usec == 0)
440 usec = RTNL_DEFAULT_TIMEOUT;
442 return now(CLOCK_MONOTONIC) + usec;
521 uint64_t usec,
536 if (usec != (uint64_t) -1) {
548 c->timeout = calc_elapse(usec);
600 uint64_t usec,
614 timeout = calc_elapse(usec);
517 sd_netlink_call_async(sd_netlink *nl, sd_netlink_message *m, sd_netlink_message_handler_t callback, void *userdata, uint64_t usec, uint32_t *serial) argument
598 sd_netlink_call(sd_netlink *rtnl, sd_netlink_message *message, uint64_t usec, sd_netlink_message **ret) argument
730 time_callback(sd_event_source *s, uint64_t usec, void *userdata) argument
[all...]
/systemd/src/udev/
H A Dudev-event.c572 static int on_spawn_timeout(sd_event_source *s, uint64_t usec, void *userdata) { argument
586 static int on_spawn_timeout_warning(sd_event_source *s, uint64_t usec, void *userdata) { argument
648 usec_t usec, age_usec; local
650 usec = now(clock_boottime_or_monotonic());
651 age_usec = usec - event->birth_usec;
657 usec + spawn.timeout_warn, USEC_PER_SEC,
666 usec + spawn.timeout, USEC_PER_SEC, on_spawn_timeout, &spawn);
H A Dudevd.c246 static int on_event_timeout(sd_event_source *s, uint64_t usec, void *userdata) { argument
260 static int on_event_timeout_warning(sd_event_source *s, uint64_t usec, void *userdata) { argument
272 uint64_t usec; local
287 assert_se(sd_event_now(e, clock_boottime_or_monotonic(), &usec) >= 0);
290 usec + arg_event_timeout_warn_usec, USEC_PER_SEC, on_event_timeout_warning, event);
293 usec + arg_event_timeout_usec, USEC_PER_SEC, on_event_timeout, event);
720 static int on_exit_timeout(sd_event_source *s, uint64_t usec, void *userdata) { argument
733 uint64_t usec; local
758 assert_se(sd_event_now(manager->event, clock_boottime_or_monotonic(), &usec) >= 0);
761 usec
786 usec_t usec; local
[all...]
/systemd/src/journal/
H A Djournald-kmsg.c117 unsigned long long usec; local
182 r = safe_atollu(p, &usec);
275 if (asprintf(&source_time, "_SOURCE_MONOTONIC_TIMESTAMP=%llu", usec) >= 0)
/systemd/src/login/
H A Dlogind-utmp.c106 uint64_t usec,
104 wall_message_timeout_handler( sd_event_source *s, uint64_t usec, void *userdata) argument
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c1009 bit. Here, we calculate a perturbation usec offset from the
1050 static int time_exit_callback(sd_event_source *s, uint64_t usec, void *userdata) { argument
1060 uint64_t usec,
1102 s->time.next = usec;
1746 _public_ int sd_event_source_get_time(sd_event_source *s, uint64_t *usec) { argument
1748 assert_return(usec, -EINVAL);
1752 *usec = s->time.next;
1756 _public_ int sd_event_source_set_time(sd_event_source *s, uint64_t usec) { argument
1764 s->time.next = usec;
1778 _public_ int sd_event_source_get_time_accuracy(sd_event_source *s, uint64_t *usec) { argument
1056 sd_event_add_time( sd_event *e, sd_event_source **ret, clockid_t clock, uint64_t usec, uint64_t accuracy, sd_event_time_handler_t callback, void *userdata) argument
1788 sd_event_source_set_time_accuracy(sd_event_source *s, uint64_t usec) argument
2754 sd_event_now(sd_event *e, clockid_t clock, uint64_t *usec) argument
[all...]

Completed in 70 milliseconds

123