MLOCK(2) Linux Programmer's Manual MLOCK(2)
NAME
mlock - disable paging for some parts of memory
SYNOPSIS
#include
int mlock(const void *addr, size_t len);
Keep in mind that this will only work for root (otherwise
jrandomluser could just gobble up all live pages and bring the machine
to a crawl). You'ld also probably need to use something like libgtop
to find out where your program is in memory (at least where your text
segments are in your address space).
--
Fletch | "If you find my answers frightening, __`'/|
">fletch@phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.