Re: kmalloc freeze

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

 



Dear Ravi,

MegaTHX for Your answer!

On 11 Sep 2002 at 12:52, Ravi wrote:

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

Okay! I have two more questions.

1. Can I use the page I allocated by using __alloc_bootmem() function 
later on? Or should I free the allocated chunk as soon as the normal 
caching system is functional (after copying to the original content :-).

2. How can I detect if the normal memory caching method is available?

TIA && Good byte!
--
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