svn commit: r358941 - stable/10/sys/compat/linux

Hans Petter Selasky hselasky at FreeBSD.org
Fri Mar 13 08:57:24 UTC 2020


Author: hselasky
Date: Fri Mar 13 08:57:22 2020
New Revision: 358941
URL: https://svnweb.freebsd.org/changeset/base/358941

Log:
  MFC r358838:
  Add support for the device statistics IOCTL, needed by the coming
  linux_libusb upgrade.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/10/sys/compat/linux/linux_ioctl.c
  stable/10/sys/compat/linux/linux_ioctl.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/10/sys/compat/linux/linux_ioctl.c	Fri Mar 13 08:56:46 2020	(r358940)
+++ stable/10/sys/compat/linux/linux_ioctl.c	Fri Mar 13 08:57:22 2020	(r358941)
@@ -3555,6 +3555,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/10/sys/compat/linux/linux_ioctl.h
==============================================================================
--- stable/10/sys/compat/linux/linux_ioctl.h	Fri Mar 13 08:56:46 2020	(r358940)
+++ stable/10/sys/compat/linux/linux_ioctl.h	Fri Mar 13 08:57:22 2020	(r358941)
@@ -740,9 +740,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-10 mailing list