Messages in this thread |  | | Date | Wed, 21 May 2025 16:34:53 +0300 | | Subject | Re: [PATCH v3 1/2] USB: core: add a memory pool to urb caching host-controller private data | | From | Mathias Nyman <> |
| |
On 21.5.2025 16.23, David Wang wrote:
>> Won't this still allocate a lot of unnecessary memory for the roothub urbs? >> i.e. the ones queued with rh_urb_enqueue(hcd, urb). >> The host drivers don't use the urb->hcpriv of those URBs. >> > The mempool slot is alloced on demand when hcd request private data with its urb. > If a urb is ever used by hcd and the hcd requests private data with it, a memory would be alloced > and this memory will not be released until the urb is destroyed.
Ok, thanks for the clarification. Roothubs URBs should be fine then.
Thanks Mathias
|  |