All of lore.kernel.org
 help / color / mirror / Atom feed
* Memory management questions
@ 2004-06-12 19:02 Tyler
  2004-06-13 13:55 ` Sean Neakums
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler @ 2004-06-12 19:02 UTC (permalink / raw)
  To: linux-mm

Hi all,

I've always thinked that paging or virtual memory was practical to avoid 
memory fragmentation. I thinked that you can map contiguous virtual 
pages to non contiguous physical page frames.
But let's take a look at the macros __va(x) and __pa(x) :
#define __pa(x) ((unsigned long)x-PAGE_OFFSET)
#define __va(x) ((unsigned long)x+PAGE_OFFSET)
PAGE_OFFSET is a constant. For me, this means that virtual contiguous 
adresses have to be mapped to contiguous physical adresses. Am I wrong ?:)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

end of thread, other threads:[~2004-06-13 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-12 19:02 Memory management questions Tyler
2004-06-13 13:55 ` Sean Neakums

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.