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

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

 



On Thu, Apr 25, 2002 at 06:01:34PM +0200, Lukas Ruf wrote:
> am I right that vmalloc() should not be called while a kernel module is
> in in_irq() or in_softirq() ?

This sounds familiar. :)

> My station crashes all the time :-)

I bet it does. :)

> To be sure that I do not run in such a problem, I must use
> kmalloc(,GFP_KERNEL) or kmalloc(, GFP_ATOMIC) ?  Which one?

GFP_ATOMIC. The chapter starting on page 208 of Linux Device Drivers,
2nd edition, describes the flags in wonderful detail. :)

-- 
http://sardonix.org/

Attachment: pgp00071.pgp
Description: PGP signature


[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