端点是USB设备的唯一可识别部分,其是主机和设备之间的通信流的终点。
管道,就是一个USB主机和USB设备端点之间的数据传输的通道。
站在主机的角度,它的目的是设备的某个端点。
而管道这算是主机和端点之间的连线。
这里我们先看一下管道在usb里的定义
/*
* For various legacy reasons, Linux has a small cookie that's paired with
* a struct usb_device to identify an endpoint queue. Queue characteristics
* are defined by the endpoint's descriptor. This cookie is called a "pipe",
* an unsigned int encoded as:
*
* - direction: bit 7 (0 = Host-to-Device [Out],
* 1 = Device-to-Host [In] ...
* like endpoint bEndpointAddress)
* - device address: bits 8-14 ... bit positions known to uhci-hcd
* - endpoint: bits 15-18 ... bit positions known to uhci-hcd
* - pipe type: bits 30-31 (00 = isoc