svn commit: r358946 - stable/9/sys/compat/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Mar 13 09:15:15 UTC 2020
Author: hselasky
Date: Fri Mar 13 09:15:13 2020
New Revision: 358946
URL: https://svnweb.freebsd.org/changeset/base/358946
Log:
MFC r358838:
Add support for the device statistics IOCTL, needed by the coming
linux_libusb upgrade.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/compat/linux/linux_ioctl.c
stable/9/sys/compat/linux/linux_ioctl.h
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/9/sys/compat/linux/linux_ioctl.c Fri Mar 13 09:14:05 2020 (r358945)
+++ stable/9/sys/compat/linux/linux_ioctl.c Fri Mar 13 09:15:13 2020 (r358946)
@@ -3408,6 +3408,9 @@ linux_ioctl_fbsd_usb(struct thread *td, struct linux_i
case FBSD_LUSB_GET_POWER_USAGE:
args->cmd = USB_GET_POWER_USAGE;
break;
+ case FBSD_LUSB_DEVICESTATS:
+ args->cmd = USB_DEVICESTATS;
+ break;
default:
error = ENOIOCTL;
}
Modified: stable/9/sys/compat/linux/linux_ioctl.h
==============================================================================
--- stable/9/sys/compat/linux/linux_ioctl.h Fri Mar 13 09:14:05 2020 (r358945)
+++ stable/9/sys/compat/linux/linux_ioctl.h Fri Mar 13 09:15:13 2020 (r358946)
@@ -747,8 +747,9 @@ int linux_ifname(struct ifnet *, char *, size_t);
#define FBSD_LUSB_FS_OPEN_STREAM 0xffdf
#define FBSD_LUSB_GET_DEV_PORT_PATH 0xffde
#define FBSD_LUSB_GET_POWER_USAGE 0xffdd
+#define FBSD_LUSB_DEVICESTATS 0xffdc
#define FBSD_LUSB_MAX 0xffff
-#define FBSD_LUSB_MIN 0xffdd
+#define FBSD_LUSB_MIN 0xffdc
#endif /* !_LINUX_IOCTL_H_ */
More information about the svn-src-stable-9
mailing list