Re: mmap(.., .., PROT_READ, MAP_PRIVATE, .., ..) functionality question

From: Hugh Dickins (hugh@veritas.com)
Date: Fri Mar 07 2003 - 05:20:12 EST


On Thu, 6 Mar 2003, Steven Schaefer wrote:
>
> Doesn't mmap(), mind you with PROT_READ and MAP_PRIVATE, first copy the
> contents of the file into the swap space and then when the data is accessed
> into physical RAM before the CPU can get to it?

No, it does not copy the contents of the file into swap space.

Hugh

-
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 Mar 07 2003 - 22:00:36 EST