public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [OT] Wrapping memory.
@ 2001-12-01 22:03 Maciej Zenczykowski
  2001-12-01 22:24 ` Alan Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Maciej Zenczykowski @ 2001-12-01 22:03 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I have a pseudo-on-topic question:

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.

I.e. 16 4KB pages referencing physical 4 KB pages number 0..14, 0.

Is this at all possible? If so, how would I do this in user space (and
could it be done without root priv?)?

Thanks a lot,

Maciej Zenczykowski.

P.S. Yes, this is necessary, otherwise I have to give up on 32-bit access
(switch to 8-bit) and include mod 60KB in every memory access (very random
and I don't think I could predict when no to do this...]


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-12-04 21:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-01 22:03 [OT] Wrapping memory Maciej Zenczykowski
2001-12-01 22:24 ` Alan Cox
2001-12-02  1:52   ` Benjamin LaHaise
2001-12-02 10:24     ` Christoph Rohland
2001-12-02 17:53   ` David Woodhouse
2001-12-03  7:44     ` Christoph Rohland
2001-12-03  9:11     ` David Woodhouse
2001-12-04 10:40       ` Russell King
2001-12-04 16:39         ` Jamie Lokier
2001-12-04 21:03           ` Russell King
2001-12-04 10:45       ` David Woodhouse
2001-12-04 10:59         ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox