Re: Need to allocate memory always in interrupt handler which MUST succeed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 Oct 2006, Jiri Kosina 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 

Ouch, this of course had to read kmalloc(GFP_ATOMIC), sorry.

-- 
Jiri Kosina

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux