From: drew@ophelia.cs.colorado.edu (Drew Eckhardt) Subject: Re: I can't get mmap to work Date: Tue, 28 Jul 1992 21:19:27 GMT
In article <SHARMAN.92Jul28002859@sharman.Software.Mitel.COM> sharman@Software.Mitel.COM (Richard Sharman) writes:
>I was trying to use "mmap", and am having problems.
>
>I have a simple example, below, which attempts to use mmap on a file,
>and simply prints the value returned. I looked in the source
>(linux/mm/mmap.c) and it seemed that the address has to be a valid
>address in the data space, at a multiple of 0x1000, and the length
>also has to be a multiple of that.
The current Linux mmap(2) syscall was created so that we could run the
X386 Xserver, so it's a minimal implementation. It can mmap() /dev/mem,
no other files.