[lkml]   [2001]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [OT] Wrapping memory.
> I would like to have a 64 KBarray (of char), that's trivial, however what
> I would like is for the last 4 KB [yes thankfully this is exactly one
> page... (assume i386)] to reference the same physical memory as the first
> four.

Yep you can do that.

> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.061 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site