Re: Whether memory allocated by kmalloc/get_free_pages is swappable ?

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

 



On 13/04/07, yogeshwar sonawane <yogyas@xxxxxxxxx> wrote:
Hi all,

I have one doubt, whether memory allocated by
kmalloc()/get_free_pages() is swappable? Both these functions allocate
physical memory. The physical addresses can be given to any peripheral
device to do dma on these buffers. So these buffers has to reside in
memory always.
OR
is there any need to lock the pages of the buffer returned by
kmalloc/get_free_pages to make it reside in main memory forever?


Kernel memory is not swapable.


--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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