AK> paul@dawa.demon.co.uk (Paul Flinders) writes:
>> Would it work if you create a scratch file, open it, unlink it,
>> fill it to the right size with zeros and then map it with a shared
>> mapping?
AK> Yes, but you don't even need to fill it with zeros. Just use
AK> ftruncate(fd, length). This has the advantage that unused blocks
AK> won't be allocated.
Would it be possible to do that automagically in the C library when a
user program asks for a shared anonymous mapping?
Benny
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/