Re: **** How to lock memory pages?

From: Richard B. Johnson
Date: Wed Jun 29 2005 - 11:59:29 EST


On Wed, 29 Jun 2005, Sreeni wrote:

Hi,

Is there a way to lock a particular portion of the memory pages during
kernel bootup? I want to re-use these pages when I load my
application. I *don't* wanna use the idea of reserving some physical
memory and using ioremap. I want something that kernel should be able
to manage this memory but I don't want any other application to use
this memory.

Thanks in advance
Sreeni
-

Wrong kind of kernel for this kind of use. The kernel dynamically
allocates/deallocates/pages of memory that it knows about. The only
way to do what you want, with a kernel designed for multi-tasking
multi-user applications use, is to reserve memory during boot.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.12 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/