summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDmitry Torokhov2019-06-11 00:36:58 +0200
committerGreg Kroah-Hartman2019-06-18 08:44:09 +0200
commit6d101f24f1dd41ef6eff3d7f175417ce27a3055a (patch)
tree94a5166a6b2f0a73a83cdcf7e0f741881cfc00bb /crypto
parentusb: host: xhci-tegra: Fix Wunused-const-variable (diff)
downloadkernel-qcow2-linux-6d101f24f1dd41ef6eff3d7f175417ce27a3055a.tar.gz
kernel-qcow2-linux-6d101f24f1dd41ef6eff3d7f175417ce27a3055a.tar.xz
kernel-qcow2-linux-6d101f24f1dd41ef6eff3d7f175417ce27a3055a.zip
USB: add usbfs ioctl to retrieve the connection parameters
Recently usfbs gained availability to retrieve device speed, but there is sill no way to determine the bus number or list of ports the device is connected to when using usbfs. While this information can be obtained from sysfs, not all environments allow sysfs access. In a jailed environment a program might be simply given an opened file descriptor to usbfs device, and it is really important that all data can be gathered from said file descriptor. This patch introduces a new ioctl, USBDEVFS_CONNINFO_EX, which return extended connection information for the device, including the bus number, address, port list and speed. The API allows kernel to extend amount of data returned by the ioctl and userspace has an option of adjusting the amount of data it is willing to consume. A new capability, USBDEVFS_CAP_CONNINFO_EX, is introduced to help userspace in determining whether the kernel supports this new ioctl. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions