Searched defs:usec (Results 1 - 25 of 52) sorted by relevance

123

/systemd/src/shared/
H A Dwatchdog.c98 int watchdog_set_timeout(usec_t *usec) { argument
101 watchdog_timeout = *usec;
113 *usec = watchdog_timeout;
/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/basic/
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.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/libsystemd-network/
H A Dtest-ndisc-rs.c38 static int test_rs_hangcheck(sd_event_source *s, uint64_t usec, argument
H A Dtest-dhcp-client.c45 static int test_dhcp_hangcheck(sd_event_source *s, uint64_t usec, void *userdata) { argument
H A Dtest-dhcp6-client.c352 static int test_hangcheck(sd_event_source *s, uint64_t usec, void *userdata) { argument
/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.c414 int route_expire_handler(sd_event_source *s, uint64_t usec, void *userdata) { argument
/systemd/src/resolve/
H A Dresolved-dns-stream.c190 static int on_stream_timeout(sd_event_source *es, usec_t usec, void *userdata) { argument
H A Dresolved-dns-query.c551 static int on_query_timeout(sd_event_source *s, usec_t usec, void *userdata) { argument
H A Dresolved-dns-scope.c170 void dns_scope_packet_lost(DnsScope *s, usec_t usec) { argument
173 if (s->resend_timeout <= usec)
841 static int on_conflict_dispatch(sd_event_source *es, usec_t usec, void *userdata) { argument
H A Dresolved-dns-server.c287 void dns_server_packet_lost(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t usec) { argument
298 if (s->resend_timeout > usec)
/systemd/src/boot/efi/
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/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
H A Dtimer.c46 static int timer_dispatch(sd_event_source *s, uint64_t usec, void *userdata);
720 static int timer_dispatch(sd_event_source *s, uint64_t usec, void *userdata) { argument
H A Dautomount.c384 static int autofs_set_timeout(int dev_autofs_fd, int ioctl_fd, usec_t usec) { argument
394 param.timeout.timeout = (usec + USEC_PER_SEC - 1) / USEC_PER_SEC;
639 static int automount_dispatch_expire(sd_event_source *source, usec_t usec, void *userdata) { argument
H A Dbusname.c52 static int busname_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata);
113 static int busname_arm_timer(BusName *n, usec_t usec) { argument
119 r = sd_event_source_set_time(n->timer_event_source, usec);
126 if (usec == USEC_INFINITY)
133 usec, 0,
903 static int busname_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata) { argument
H A Dswap.c59 static int swap_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata);
161 static int swap_arm_timer(Swap *s, usec_t usec) { argument
167 r = sd_event_source_set_time(s->timer_event_source, usec);
174 if (usec == USEC_INFINITY)
181 usec, 0,
1025 static int swap_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata) { argument
/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/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/libsystemd/sd-daemon/
H A Dsd-daemon.c580 _public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) { argument
612 if (usec)
613 *usec = u;
/systemd/src/libsystemd/sd-event/
H A Dtest-event.c129 static int time_handler(sd_event_source *s, uint64_t usec, void *userdata) { argument
/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...]

Completed in 159 milliseconds

123