Searched refs:watchdog_fd (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/shared/ |
D | watchdog.c | 19 static int watchdog_fd = -1; variable 46 if (watchdog_fd < 0) in get_watchdog_sysfs_path() 49 if (fstat(watchdog_fd, &st)) in get_watchdog_sysfs_path() 105 assert(watchdog_fd >= 0); in watchdog_set_enable() 107 if (ioctl(watchdog_fd, WDIOC_SETOPTIONS, &flags) < 0) { in watchdog_set_enable() 124 assert(watchdog_fd >= 0); in watchdog_get_timeout() 126 if (ioctl(watchdog_fd, WDIOC_GETTIMEOUT, &sec) < 0) in watchdog_get_timeout() 138 assert(watchdog_fd >= 0); in watchdog_set_timeout() 143 if (ioctl(watchdog_fd, WDIOC_SETTIMEOUT, &sec) < 0) in watchdog_set_timeout() 155 assert(watchdog_fd >= 0); in watchdog_get_pretimeout() [all …]
|
/systemd-251/src/libsystemd/sd-event/ |
D | sd-event.c | 97 int watchdog_fd; member 337 safe_close(e->watchdog_fd); in event_free() 375 .watchdog_fd = -1, in sd_event_new() 3776 assert(e->watchdog_fd >= 0); in arm_watchdog() 3789 return RET_NERRNO(timerfd_settime(e->watchdog_fd, TFD_TIMER_ABSTIME, &its, NULL)); in arm_watchdog() 3991 r = flush_timer(e, e->watchdog_fd, e->event_queue[i].events, NULL); in process_epoll() 4382 e->watchdog_fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK|TFD_CLOEXEC); in sd_event_set_watchdog() 4383 if (e->watchdog_fd < 0) in sd_event_set_watchdog() 4395 if (epoll_ctl(e->epoll_fd, EPOLL_CTL_ADD, e->watchdog_fd, &ev) < 0) { in sd_event_set_watchdog() 4401 if (e->watchdog_fd >= 0) { in sd_event_set_watchdog() [all …]
|