[Top] [All Lists]

Re: kmalloc question

Subject: Re: kmalloc question
From: Alan Cox <>
Date: 05 Jun 2002 18:24:02 +0100
In-reply-to: <86048F07C015D311864100902760F1DD01B5EA6B@DLFW003A>
References: <86048F07C015D311864100902760F1DD01B5EA6B@DLFW003A>
On Wed, 2002-06-05 at 06:25, wrote:
> Hi.
> I always thought that it is save to use kmalloc in an interrupt handler as
> long as you use GFP_ATOMIC. 
> Now someone told me that it is not allowed to use these functions in any way
> in an interrupt.
> Can please someone clarify me here? 

GFP_ATOMIC is safe in an interrupt handler. You might get NULL back and
that it is your problem, but the kmalloc is safe

<Prev in Thread] Current Thread [Next in Thread>