Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2020 15:56:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358838 - head/sys/compat/linux
Message-ID:  <202003101556.02AFunkf068264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Mar 10 15:56:49 2020
New Revision: 358838
URL: https://svnweb.freebsd.org/changeset/base/358838

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

Modified:
  head/sys/compat/linux/linux_ioctl.c
  head/sys/compat/linux/linux_ioctl.h

Modified: head/sys/compat/linux/linux_ioctl.c
==============================================================================
--- head/sys/compat/linux/linux_ioctl.c	Tue Mar 10 15:51:33 2020	(r358837)
+++ head/sys/compat/linux/linux_ioctl.c	Tue Mar 10 15:56:49 2020	(r358838)
@@ -3488,6 +3488,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: head/sys/compat/linux/linux_ioctl.h
==============================================================================
--- head/sys/compat/linux/linux_ioctl.h	Tue Mar 10 15:51:33 2020	(r358837)
+++ head/sys/compat/linux/linux_ioctl.h	Tue Mar 10 15:56:49 2020	(r358838)
@@ -743,9 +743,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003101556.02AFunkf068264>