Re: __get_free_pages problem

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

 



On Sat, Feb 28, 2004 at 05:26:44PM +0000, pankaj chauhan wrote:
> 
> hi all , 
> 
> i have a machine with 256Mb of RAM.
> 
> i am using __get_free_pages{order 9} to get 2Mb memory
> ( want it to be continous) in a module. i am accessing
> this memory in interrupt context..
> 
> my system crashes down when i access this memory  in
> interrupt context. during allocation i check that if
> __get_free_pages fails ( pointer returned is NULL) , i
> return an error.so i hope i am using memory in the
> interrupt context only if __get_free_pages succeeded.
> 
> plz tell me what may be possible problem 
> 
> Rgds,
> pankaj
> 
>

It's not so clear if you alloc this memory during interrupt contex,
if so, you must specify as gfp_mask GFP_ATOMIC to tell kernel not to sleep.

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