svn commit: r358940 - stable/11/sys/compat/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Mar 13 08:56:48 UTC 2020
Author: hselasky
Date: Fri Mar 13 08:56:46 2020
New Revision: 358940
URL: https://svnweb.freebsd.org/changeset/base/358940
Log:
MFC r358838:
Add support for the device statistics IOCTL, needed by the coming
linux_libusb upgrade.
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linux/linux_ioctl.c
stable/11/sys/compat/linux/linux_ioctl.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/11/sys/compat/linux/linux_ioctl.c Fri Mar 13 08:56:10 2020 (r358939)
+++ stable/11/sys/compat/linux/linux_ioctl.c Fri Mar 13 08:56:46 2020 (r358940)
@@ -3635,6 +3635,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/11/sys/compat/linux/linux_ioctl.h
==============================================================================
--- stable/11/sys/compat/linux/linux_ioctl.h Fri Mar 13 08:56:10 2020 (r358939)
+++ stable/11/sys/compat/linux/linux_ioctl.h Fri Mar 13 08:56:46 2020 (r358940)
@@ -741,9 +741,10 @@
#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
/*
* Linux btrfs clone operation
More information about the svn-src-stable-11
mailing list