Am Freitag, 7. Oktober 2005 09:14 schrieb Savita H. Neelannava:
> Hi All,
>
> In my USB driver impementation i need to allocate large amount of memory
> dynamically (10M). This i need to do as soon as i get data from USb device in
> call back function or in tasklets, both run in interrupt context.I can't use
> kmalloc(GFP_ATOMIC) or get_free_pages(GFP_ATOMIC) since they are limited in
> size. i cant use vmalloc() which intern use kmalloc(GFP_KERNEL). Is there any
> way to achieve this huge memory allocation in interrupt context? or it it not
> at all possible?
You can use a workqueue and schedule work on it from interrupt.
Directly it is impossible.
HTH
Oliver
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel