CopyPipe
Returns the pipe for the specified endpoint address.
Declaration
virtual kern_return_t CopyPipe(uint8_t address, IOUSBHostPipe **pipe);Parameters
- address:
The address of the pipe you want. Get the address for a specific pipe from the Bendpointaddress field of the appropriate Iousbendpointdescriptor structure.
- pipe:
A variable in which to store the Iousbhostpipe object. It’s your responsibility to release this object when you finish using it.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.
Discussion
If the specified pipe doesn’t exist yet, but is part of the interface, this method creates the pipe before returning it.