usb_alloc_streams and usb_free_streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sarah:

The programming interface for usb_alloc_streams() and 
usb_free_streams() seems a little strange:

	The functions accept a pointer to a usb_interface structure,
	but they immediately convert it to a pointer to a usb_device.
	Why not just take the usb_device pointer as an argument to
	begin with?

	Both routines take a mem_flags argument.  Why is it needed
	in usb_free_streams()?  The xhci_free_streams() routine doesn't
	use it.

These shortcomings ought to be fixed.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux