Lines Matching refs:ioctl
73 The ioctl API
76 All conforming drivers also support an ioctl API.
78 Pinging the watchdog using an ioctl:
80 All drivers that have an ioctl interface support at least one ioctl,
81 KEEPALIVE. This ioctl does exactly the same thing as a write to the
86 ioctl(fd, WDIOC_KEEPALIVE, 0);
90 the argument to the ioctl is ignored.
96 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
110 current timeout using the GETTIMEOUT ioctl::
112 ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
125 ioctl(fd, WDIOC_SETPRETIMEOUT, &pretimeout);
135 ioctl(fd, WDIOC_GETPRETIMEOUT, &timeout);
144 before the system will reboot. The WDIOC_GETTIMELEFT is the ioctl
147 ioctl(fd, WDIOC_GETTIMELEFT, &timeleft);
155 the reason for the last reboot of the system. The GETSUPPORT ioctl is
159 ioctl(fd, WDIOC_GETSUPPORT, &ident);
242 ioctl(fd, WDIOC_GETSTATUS, &flags);
246 ioctl(fd, WDIOC_GETBOOTSTATUS, &flags);
251 Some drivers can measure the temperature using the GETTEMP ioctl. The
255 ioctl(fd, WDIOC_GETTEMP, &temperature);
257 Finally the SETOPTIONS ioctl can be used to control some aspects of
261 ioctl(fd, WDIOC_SETOPTIONS, &options);