Re: [OT] Wrapping memory.

From: Benjamin LaHaise (bcrl@redhat.com)
Date: Sat Dec 01 2001 - 20:52:48 EST


On Sat, Dec 01, 2001 at 10:24:58PM +0000, Alan Cox wrote:
> > Is this at all possible? If so, how would I do this in user space (and
> > could it be done without root priv?)?
>
> 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...

                -ben
-
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/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:18 EST