anonymous memory mapping

Fabiano Sidler fabianosidler at gmail.com
Mon Mar 20 17:14:44 EST 2006


2006/3/14, Fabiano Sidler <fabianosidler at gmail.com>:
> 2006/3/14, Peter Hansen <peter at engcorp.com>:
> > (As for me, I have no idea what the question is about, so this is the
> > most help I can give.)
>
> Ok, sorry! I wanted to do this:
>
> --- snip ---
> from mmap import mmap, MAP_ANONYMOUS
> mm = mmap(-1, 1024, MAP_ANONYMOUS)
> --- snap ---
>
> But I got an EnvironmentError, "[Errno 22] Invalid argument" (on
> Linux2.6, btw.). The reason why I want to use anonymous mapping is
> that it only allocates the memory it actually uses.

Hello? Nobody out there who can answer this question?

Greetings,
F. Sidler



More information about the Python-list mailing list