home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!stanford.edu!agate!boulder!ophelia!drew
- From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
- Subject: Re: I can't get mmap to work
- Message-ID: <1992Jul28.211927.899@colorado.edu>
- Sender: news@colorado.edu (The Daily Planet)
- Nntp-Posting-Host: ophelia.cs.colorado.edu
- Organization: University of Colorado at Boulder
- References: <SHARMAN.92Jul28002859@sharman.Software.Mitel.COM>
- Date: Tue, 28 Jul 1992 21:19:27 GMT
- Lines: 12
-
- 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.
-