vmalloc, kmalloc and in_irq() & in_softirq()

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

 




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?

In Rusty's Unreliable Kernel Hacking Guide, I only found the different
semantics of the functions but not the remark on where they must not
be called.

Thanks for any help and explanation.  

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