On Thu, 12 Oct 2006, pradeep singh wrote: > > I need to allocate some 256 bytes of memory in the interrupt handler > > each time when I get the interrupt. Size varies from 8 bytes to 256 > > bytes. There are various options such as (a) kmalloc(GFP_ATOMIC), > GFP_ATOMIC .... may sleep. try other flags available to kmalloc in > interrupt context. No, kmalloc(GFP_KERNEL) can't sleep. It can of course fail to allocate the requested amount of memory, but it will not sleep. -- Jiri Kosina -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/