Messages in this thread | | | Date | Wed, 1 Dec 1999 16:50:58 -0500 (EST) | From | Alexander Viro <> | Subject | Re: (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/
| |