Re: [OT] Wrapping memory.

Christoph Rohland (cr@sap.com)
02 Dec 2001 11:24:56 +0100


Hi Benjamin,

On Sat, 1 Dec 2001, Benjamin LaHaise wrote:
>> mmap will do what you need. Create a 60K object on disk and mmap it
>> at the base address and then 60K further on for 4K.
>
> And try to use /dev/shm/ first...

If you can live with glibc >= 2.2 and kernel 2.4 you should use
shm_open, shm_unlink for object creation and deletion.

Greetings
Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/