Searched defs:timeout (Results 1 - 25 of 36) sorted by relevance

12

/systemd/src/udev/
H A Dudevadm-control.c38 " --timeout=SECONDS Maximum time to block for a reply\n"
44 int timeout = 60; local
57 { "timeout", required_argument, NULL, 't' },
74 if (udev_ctrl_send_exit(uctrl, timeout) < 0)
87 if (udev_ctrl_send_set_log_level(uctrl, util_log_priority(optarg), timeout) < 0)
94 if (udev_ctrl_send_stop_exec_queue(uctrl, timeout) < 0)
100 if (udev_ctrl_send_start_exec_queue(uctrl, timeout) < 0)
106 if (udev_ctrl_send_reload(uctrl, timeout) < 0)
116 if (udev_ctrl_send_set_env(uctrl, optarg, timeout) < 0)
130 if (udev_ctrl_send_set_children_max(uctrl, i, timeout) <
[all...]
H A Dudevadm-settle.c38 " -t --timeout=SECONDS Maximum time to wait for events\n"
45 { "timeout", required_argument, NULL, 't' },
55 unsigned int timeout = 120; local
67 r = safe_atou(optarg, &timeout);
69 log_error_errno(r, "Invalid timeout value '%s': %m", optarg);
102 deadline = now(CLOCK_MONOTONIC) + timeout * USEC_PER_SEC;
110 if (udev_ctrl_send_ping(uctrl, MAX(5U, timeout)) < 0) {
H A Dudev-ctrl.c238 static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int intval, const char *buf, int timeout) { argument
271 r = poll(pfd, 1, timeout * MSEC_PER_SEC);
292 int udev_ctrl_send_set_log_level(struct udev_ctrl *uctrl, int priority, int timeout) { argument
293 return ctrl_send(uctrl, UDEV_CTRL_SET_LOG_LEVEL, priority, NULL, timeout);
296 int udev_ctrl_send_stop_exec_queue(struct udev_ctrl *uctrl, int timeout) { argument
297 return ctrl_send(uctrl, UDEV_CTRL_STOP_EXEC_QUEUE, 0, NULL, timeout);
300 int udev_ctrl_send_start_exec_queue(struct udev_ctrl *uctrl, int timeout) { argument
301 return ctrl_send(uctrl, UDEV_CTRL_START_EXEC_QUEUE, 0, NULL, timeout);
304 int udev_ctrl_send_reload(struct udev_ctrl *uctrl, int timeout) { argument
305 return ctrl_send(uctrl, UDEV_CTRL_RELOAD, 0, NULL, timeout);
308 udev_ctrl_send_set_env(struct udev_ctrl *uctrl, const char *key, int timeout) argument
312 udev_ctrl_send_set_children_max(struct udev_ctrl *uctrl, int count, int timeout) argument
316 udev_ctrl_send_ping(struct udev_ctrl *uctrl, int timeout) argument
320 udev_ctrl_send_exit(struct udev_ctrl *uctrl, int timeout) argument
[all...]
/systemd/src/shared/
H A Dgenerator.c166 _cleanup_free_ char *node = NULL, *unit = NULL, *timeout = NULL; local
170 r = fstab_filter_options(opts, "comment=systemd.device-timeout\0" "x-systemd.device-timeout\0",
171 NULL, &timeout, filtered);
175 r = parse_sec(timeout, &u);
177 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout);
189 return write_drop_in_format(dir, unit, 50, "device-timeout",
192 program_invocation_short_name, timeout);
/systemd/src/ask-password/
H A Dask-password.c46 " --timeout=SEC Timeout in seconds\n"
70 { "timeout", required_argument, NULL, ARG_TIMEOUT },
99 log_error("Failed to parse --timeout parameter %s", optarg);
146 usec_t timeout; local
158 timeout = now(CLOCK_MONOTONIC) + arg_timeout;
160 timeout = 0;
162 r = ask_password_auto(arg_message, arg_icon, arg_id, arg_keyname, timeout, arg_flags, &l);
/systemd/src/journal-remote/
H A Djournal-upload.h34 uint64_t timeout; member in struct:Uploader
/systemd/src/libsystemd/sd-login/
H A Dtest-login.c233 usec_t timeout, nw; local
239 assert_se(sd_login_monitor_get_timeout(m, &timeout) >= 0);
244 timeout == (uint64_t) -1 ? -1 :
245 timeout > nw ? (int) ((timeout - nw) / 1000) :
/systemd/src/network/
H A Dnetworkd-wait-online-manager.c268 int manager_new(Manager **ret, char **interfaces, char **ignore, usec_t timeout) { argument
288 if (timeout > 0) {
291 usec = now(clock_boottime_or_monotonic()) + timeout;
/systemd/src/test/
H A Dtest-execute.c42 usec_t timeout = 2 * USEC_PER_SEC; local
59 if (ts + timeout < n) {
60 log_error("Test timeout when testing %s", unit->id);
H A Dtest-path.c80 usec_t timeout = 2 * USEC_PER_SEC; local
109 /* But we timeout if the service has not been started in the allocated time */
111 if (ts + timeout < n) {
112 log_error("Test timeout when testing %s", unit->id);
/systemd/src/core/
H A Dscope.c346 static int scope_get_timeout(Unit *u, usec_t *timeout) { argument
360 *timeout = t;
556 [SCOPE_FAILURE_TIMEOUT] = "timeout",
H A Dautomount.c394 param.timeout.timeout = (usec + USEC_PER_SEC - 1) / USEC_PER_SEC;
672 usec_t timeout; local
679 timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC);
682 r = sd_event_source_set_time(a->expire_event_source, timeout);
692 CLOCK_MONOTONIC, timeout, 0,
H A Dbusname.c975 static int busname_get_timeout(Unit *u, usec_t *timeout) { argument
989 *timeout = t;
1005 [BUSNAME_FAILURE_TIMEOUT] = "timeout",
H A Djob.c1130 log_debug_errno(r, "Failed to restart timeout for job: %m");
1132 (void) sd_event_source_set_description(j->timer_event_source, "job-timeout");
1166 int job_get_timeout(Job *j, usec_t *timeout) { argument
1188 *timeout = MIN(x, y);
1228 [JOB_TIMEOUT] = "timeout",
H A Dswap.c1397 static int swap_get_timeout(Unit *u, usec_t *timeout) { argument
1411 *timeout = t;
1440 [SWAP_FAILURE_TIMEOUT] = "timeout",
/systemd/src/fstab-generator/
H A Dfstab-generator.c146 _cleanup_free_ char *timeout = NULL; local
151 r = fstab_filter_options(opts, "x-systemd.idle-timeout\0", NULL, &timeout, NULL);
157 r = parse_sec(timeout, &u);
159 log_warning("Failed to parse timeout for %s, ignoring: %s", where, timeout);
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-internal.h41 usec_t timeout; member in struct:reply_callback
H A Dsd-netlink.c301 if (c->timeout > n)
334 if (c->timeout != 0)
502 if (x->timeout != 0 && y->timeout == 0)
505 if (x->timeout == 0 && y->timeout != 0)
508 if (x->timeout < y->timeout)
511 if (x->timeout > y->timeout)
602 usec_t timeout; local
[all...]
/systemd/src/shared/linux/
H A Dauto_dev-ioctl.h60 __u64 timeout; member in struct:args_timeout
111 struct args_timeout timeout; member in union:autofs_dev_ioctl::__anon267
154 /* Expiry timeout */
/systemd/src/basic/
H A Dterminal-util.c365 usec_t timeout) {
385 if (timeout != USEC_INFINITY)
389 notify = inotify_init1(IN_CLOEXEC | (timeout != USEC_INFINITY ? IN_NONBLOCK : 0));
452 if (timeout != USEC_INFINITY) {
456 if (ts + timeout < n) {
461 r = fd_wait_for_event(fd, POLLIN, ts + timeout - n);
360 acquire_terminal( const char *name, bool fail, bool force, bool ignore_tiocstty_eperm, usec_t timeout) argument
H A Dutil.c81 static int do_execute(char **directories, usec_t timeout, char *argv[]) { argument
173 if (timeout != USEC_INFINITY)
174 alarm((timeout + USEC_PER_SEC - 1) / USEC_PER_SEC);
192 void execute_directories(const char* const* directories, usec_t timeout, char *argv[]) { argument
204 * for them to finish. Optionally a timeout is applied. If a file
214 r = do_execute(dirs, timeout, argv);
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c141 p = strjoin(arg_dest, "/dev-mapper-", e, ".device.d/50-job-timeout-sec-0.conf", NULL);
384 usec_t timeout) {
435 (unsigned long long)timeout / USEC_PER_SEC);
376 add_automount( const char *id, const char *what, const char *where, const char *fstype, bool rw, const char *options, const char *description, usec_t timeout) argument
/systemd/src/libsystemd/sd-bus/
H A Dbus-message.h140 usec_t timeout; member in struct:sd_bus_message
194 int bus_message_seal(sd_bus_message *m, uint64_t serial, usec_t timeout);
/systemd/src/libsystemd-network/
H A Dsd-dhcp6-client.c1011 usec_t timeout, time_now; local
1064 timeout = client_timeout_compute_random(be32toh(client->lease->ia.lifetime_t1) * USEC_PER_SEC);
1067 format_timespan(time_string, FORMAT_TIMESPAN_MAX, timeout, USEC_PER_SEC));
1071 clock_boottime_or_monotonic(), time_now + timeout,
1082 r = sd_event_source_set_description(client->lease->ia.timeout_t1, "dhcp6-t1-timeout");
1086 timeout = client_timeout_compute_random(be32toh(client->lease->ia.lifetime_t2) * USEC_PER_SEC);
1089 format_timespan(time_string, FORMAT_TIMESPAN_MAX, timeout, USEC_PER_SEC));
1093 clock_boottime_or_monotonic(), time_now + timeout,
1104 r = sd_event_source_set_description(client->lease->ia.timeout_t2, "dhcp6-t2-timeout");
1127 r = sd_event_source_set_description(client->timeout_resend, "dhcp6-resend-timeout");
[all...]
H A Dsd-ndisc.c84 sd_event_source *timeout; member in struct:sd_ndisc
218 nd->timeout = sd_event_source_unref(nd->timeout);
359 /* if router advertisment prefix valid timeout is zero, the timeout
566 nd->timeout = sd_event_source_unref(nd->timeout);
610 nd->timeout = sd_event_source_unref(nd->timeout);
631 r = sd_event_add_time(nd->event, &nd->timeout, clock_boottime_or_monotoni
[all...]

Completed in 63 milliseconds

12