phk malloc, was (Re: ptmalloc2)

Chris Pressey cpressey at catseye.mine.nu
Tue Feb 22 17:20:11 PST 2005


On Tue, 22 Feb 2005 19:08:17 -0500
Dan Melomedman <dan at xxxxxxxxxxxxxxxx> wrote:

> Finally, is mlock portable?

It appears to be part of IEEE 1003.1 (REALTIME), aka POSIX, which says:

"The mlock() function shall cause those whole pages containing any part
of the address space of the process starting at address addr and
continuing for len bytes to be memory-resident until unlocked or until
the process exits or execs another process image. [...] Memory residency
of unlocked pages is unspecified."

-Chris





More information about the Kernel mailing list