Hi ,
 
Thanks for ur input.
but i didnt get the meaning of workqueue, do u mean taskqueues or tasklets ?
as far as they are concerned , i think they also run in interrupt context? can 
u plz clear this?
 
Thanks
Savita

________________________________

From: Oliver Neukum [mailto:[EMAIL PROTECTED]
Sent: Fri 10/7/2005 2:28 PM
To: linux-usb-devel@lists.sourceforge.net
Cc: Savita H. Neelannava
Subject: Re: [linux-usb-devel] vmalloc interrupt context!



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

SPAN Systems Corporation, Bangalore.
"Steering Progress, Together"

--------------------------------------------------------------------------------
This email message and any attachments is confidential and intended only for 
the use of an individual or entity named above and may contain information that 
is privileged, confidential or exempt from disclosure under applicable law. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this email is strictly prohibited. If you have 
received this email in error, please notify us immediately by return email or 
[EMAIL PROTECTED] and destroy the original message. Opinions, conclusions, and 
other information in this message that do not relate to the official business 
of SPAN, shall be understood to be neither given nor endorsed by SPAN.



**************************************************************
Scanned by  MailScan Anti-Virus and Content Security Software.
Visit http://www.mwti.net for more info on eScan and MailScan.
**************************************************************







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

Reply via email to