Lines Matching refs:ioctl
67 The ioctl API:
69 All conforming drivers also support an ioctl API.
71 Pinging the watchdog using an ioctl:
73 All drivers that have an ioctl interface support at least one ioctl,
74 KEEPALIVE. This ioctl does exactly the same thing as a write to the
79 ioctl(fd, WDIOC_KEEPALIVE, 0);
83 the argument to the ioctl is ignored.
88 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
95 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
102 current timeout using the GETTIMEOUT ioctl.
104 ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
116 ioctl(fd, WDIOC_SETPRETIMEOUT, &pretimeout);
126 ioctl(fd, WDIOC_GETPRETIMEOUT, &timeout);
134 before the system will reboot. The WDIOC_GETTIMELEFT is the ioctl
137 ioctl(fd, WDIOC_GETTIMELEFT, &timeleft);
144 the reason for the last reboot of the system. The GETSUPPORT ioctl is
148 ioctl(fd, WDIOC_GETSUPPORT, &ident);
209 ioctl(fd, WDIOC_GETSTATUS, &flags);
213 ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
218 Some drivers can measure the temperature using the GETTEMP ioctl. The
222 ioctl(fd, WDIOC_GETTEMP, &temperature);
224 Finally the SETOPTIONS ioctl can be used to control some aspects of
228 ioctl(fd, WDIOC_SETOPTIONS, &options);