2 * Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
3 * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
4 * Copyright (c) 2016-2017 The strace developers.
7 * SPDX-License-Identifier: LGPL-2.1-or-later
14 fs_x_ioctl(struct tcb *const tcp, const unsigned int code,
15 const kernel_ulong_t arg)
19 /* First seen in linux-2.6.37 */
21 struct fstrim_range fstrim;
24 if (!umove_or_printaddr(tcp, arg, &fstrim))
25 tprintf("{start=%#" PRIx64
27 ", minlen=%#" PRIx64 "}",
28 (uint64_t) fstrim.start,
29 (uint64_t) fstrim.len,
30 (uint64_t) fstrim.minlen);
46 return RVAL_IOCTL_DECODED;