home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6899 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!stanford.edu!agate!boulder!ophelia!drew
  3. From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: I can't get mmap to work
  5. Message-ID: <1992Jul28.211927.899@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: ophelia.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <SHARMAN.92Jul28002859@sharman.Software.Mitel.COM>
  10. Date: Tue, 28 Jul 1992 21:19:27 GMT
  11. Lines: 12
  12.  
  13. In article <SHARMAN.92Jul28002859@sharman.Software.Mitel.COM> sharman@Software.Mitel.COM (Richard Sharman) writes:
  14. >I was trying to use "mmap", and am having problems.
  15. >
  16. >I have a simple example, below, which attempts to use mmap on a file,
  17. >and simply prints the value returned.  I looked in the source
  18. >(linux/mm/mmap.c) and it seemed that the address has to be a valid
  19. >address in the data space, at a multiple of 0x1000, and the length
  20. >also has to be a multiple of that.
  21.  
  22. The current Linux mmap(2) syscall was created so that we could run the
  23. X386 Xserver, so it's a minimal implementation.  It can mmap() /dev/mem,
  24. no other files.
  25.