Re: vmalloc, kmalloc and in_irq() & in_softirq()

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

 



--- Lukas Ruf <ruf@maremma.ch> wrote:
> 
> Dear all,
> 
> am I right that vmalloc() should not be called while a kernel
> module is
> in in_irq() or in_softirq() ?
> 
> My station crashes all the time :-)
> 
> To be sure that I do not run in such a problem, I must use
> kmalloc(,GFP_KERNEL) or kmalloc(, GFP_ATOMIC) ?  Which one?
> 

kmalloc(, GFP_ATOMIC).

See Rubini & Corbet online at
http://www.xml.com/ldd/chapter/book/ch07.html#t4

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
--
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