Re: patch to shift memory allocations to usb_alloc_urb ()

Hans Petter Selasky <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi Oliver!

What you're trying to do is what the HPS USB stack for FreeBSD has been doing 
for a while. See for example:

http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/ohci.c

Look at the function:

static usbd_status
ohci_xfer_setup(struct usbd_device *udev,
		u_int8_t iface_index,
		struct usbd_xfer **pxfer,
		const struct usbd_config *setup_start,
		const struct usbd_config *setup_end)

Maybe you want to take your approach one step further and allow allocation of 
multiple "URB" structures in the same go ?

--HPS

-------------------------------------------------------------------------
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.