Re: kmalloc freeze

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

 




> >  If you have to allocate memory earlier, use the bootmem allocator
> > (alloc_bootmem()).
> 
> THX! If I need non-cached memory should I do something if I try to
> use the  alloc_bootmem() funciton? I mean allocating memory by
> __get_free_page() I have to set PAGE_NO_CACHE bit.

 I don't think you can do it. The only place where a flag like
PAGE_NO_CACHE is useful is in the page table entry. But the bootmem
allocator is used *before* page tables are set up.

-Ravi.

__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
--
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