On Sun, Sep 14, 2003, Alan Stern <[EMAIL PROTECTED]> wrote:
> In core/config.c, the descriptor parsing routines store class- and 
> vendor-specific descriptors for configurations, interfaces, and endpoints 
> using various "extra" pointers.  The memory for these "extra" descriptors 
> is separately allocated, and the descriptor contents are copied to the new 
> memory areas.  However, the original copies are still present, stored in 
> the area pointed to by the "rawdescriptor" fields.
> 
> Is there any reason for allocating separate copies of the extra
> descriptors?  Or would it be okay to change the code so that the "extra"  
> pointers just point to a region within the raw descriptors?

I think the original reasoning when I wrote that code was that the extra
descriptors wouldn't necessary be contiguous, but thinking about it now,
I don't think that could ever happen.

I think you're right, it could easily be converted to just point to a
location in rawdescriptors.

JE



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to