On Fri, 7 Oct 2005, Savita H. Neelannava wrote: > 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?
Depending on how quickly and how frequently you need these large memory buffers, the best answer may be to pre-allocate them in your probe or open routine. Then they will always be available when the interrupt handler needs them. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel