Re: [RFC] Moving from pipes to usb_host_endpoint pointers

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Wed, 18 Jul 2007, Oliver Neukum wrote:

> > Am Mittwoch 18 Juli 2007 schrieb Alan Stern:
> >  int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
> >  {
> > -       int                     pipe, temp, max;
> > -       struct usb_device       *dev;
> > -       int                     is_out;
> > +       int                             xfertype, max;
> > +       struct usb_device               *dev;
> > +       struct usb_host_endpoint        *ep;
> > +       int                             is_out;
> 
> This is a bit odd. Using a pointer the direction info should be included.

I don't understand.  Included where?

> Or you could use endpoint numbers, which would remove some issues
> with enummeration.

That's essentially the same as using a pipe, since some of the bits in 
a pipe _are_ the endpoint number.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.