lkml.org 
[lkml]   [1999]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: (XFree86) mmap of /proc/XXX/mem


On Wed, 1 Dec 1999, Egbert Eich wrote:

> startup for each card that requests it. When a card wants to
> make a BIOS call its real mode image is mapped to address 0
> by mmapping /proc/self/mem. However I have reports mmapping
> /proc/XXX/mem was removed from later versions of the 2.3 branch.

In short: mmap on /proc/XXX/mem is bloody huge overkill. With
ill-specified semantics. If all you need is an alias on private data that
belongs to the same process - fine, but then it should be done in a
different way. If you want file-backed stuff - better yet, just mmap() it
twice. But mmap() on /proc/<pid>/mem was simply broken. It gave a
way to screw swapper. Badly.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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