Re: What's the reason that /dev/mem can't map unreserved RAM?

From: Andrew Morton (akpm@digeo.com)
Date: Thu Apr 17 2003 - 15:45:12 EST


Hugh Dickins <hugh@veritas.com> wrote:
>
> I did start out on eliminating PageReserved a few months ago,
> but was persuaded to delay that until 2.7. When that's done,
> you will be able to mmap /dev/mem properly.

I think we can almost do it now. Just a few things like get_user_pages(),
ptrace and core dumping may need to be taught about VM_RESERVED.

Or we could simply change mmap_mem() to set VM_IO if any of the pages aren't
valid. That's probably an accurate reflection of what the app is trying to
do, too.

-
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 : Wed Apr 23 2003 - 22:00:22 EST