Searched refs:watchdog_fd (Results 1 - 2 of 2) sorted by relevance

/systemd/src/shared/
H A Dwatchdog.c32 static int watchdog_fd = -1; variable
38 if (watchdog_fd < 0)
47 r = ioctl(watchdog_fd, WDIOC_SETOPTIONS, &flags);
55 r = ioctl(watchdog_fd, WDIOC_SETTIMEOUT, &sec);
63 r = ioctl(watchdog_fd, WDIOC_SETOPTIONS, &flags);
72 r = ioctl(watchdog_fd, WDIOC_KEEPALIVE, 0);
83 if (watchdog_fd >= 0)
86 watchdog_fd = open("/dev/watchdog", O_WRONLY|O_CLOEXEC);
87 if (watchdog_fd < 0)
90 if (ioctl(watchdog_fd, WDIOC_GETSUPPOR
[all...]
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c190 int watchdog_fd; member in struct:sd_event
406 safe_close(e->watchdog_fd);
437 e->watchdog_fd = e->epoll_fd = e->realtime.fd = e->boottime.fd = e->monotonic.fd = e->realtime_alarm.fd = e->boottime_alarm.fd = -1;
2409 assert(e->watchdog_fd >= 0);
2422 r = timerfd_settime(e->watchdog_fd, TFD_TIMER_ABSTIME, &its, NULL);
2536 r = flush_timer(e, e->watchdog_fd, ev_queue[i].events, NULL);
2850 e->watchdog_fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK|TFD_CLOEXEC);
2851 if (e->watchdog_fd < 0)
2861 r = epoll_ctl(e->epoll_fd, EPOLL_CTL_ADD, e->watchdog_fd, &ev);
2868 if (e->watchdog_fd >
[all...]

Completed in 47 milliseconds