2 * Copyright (c) 2019 The strace developers.
5 * SPDX-License-Identifier: LGPL-2.1-or-later
9 #include "print_fields.h"
11 #include <linux/watchdog.h>
13 #define XLAT_MACROS_ONLY
14 #include "xlat/watchdog_ioctl_cmds.h"
15 #undef XLAT_MACROS_ONLY
18 watchdog_ioctl(struct tcb *const tcp, const unsigned int code,
19 const kernel_ulong_t arg)
23 case WDIOC_GETBOOTSTATUS:
25 case WDIOC_GETTIMEOUT:
26 case WDIOC_GETPRETIMEOUT:
27 case WDIOC_GETTIMELEFT:
30 ATTRIBUTE_FALLTHROUGH;
31 case WDIOC_SETTIMEOUT:
32 case WDIOC_SETPRETIMEOUT:
34 printnum_int(tcp, arg, "%d");
38 * linux/watchdog.h says that this takes an int, but in
39 * practice the argument is ignored.
46 return RVAL_IOCTL_DECODED;