2 * Decode struct sg_req_info.
4 * Copyright (c) 2017-2018 Dmitry V. Levin <ldv@altlinux.org>
7 * SPDX-License-Identifier: LGPL-2.1-or-later
14 # include DEF_MPERS_TYPE(struct_sg_req_info)
18 typedef struct sg_req_info struct_sg_req_info;
20 #endif /* HAVE_SCSI_SG_H */
26 MPERS_PRINTER_DECL(int, decode_sg_req_info,
27 struct tcb *const tcp, const kernel_ulong_t arg)
29 struct_sg_req_info info;
35 if (!umove_or_printaddr(tcp, arg, &info)) {
36 tprintf("{req_state=%hhd"
47 printaddr(ptr_to_kulong(info.usr_ptr));
48 tprintf(", duration=%u}", info.duration);
51 return RVAL_IOCTL_DECODED;
54 #endif /* HAVE_SCSI_SG_H */