home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / misc / 3407 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1002 b   |  33 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!sun-barr!ames!xn.ll.mit.edu!ll.mit.edu!tadams
  3. From: tadams@ll.mit.edu ( Tony Adams)
  4. Subject: providing mmap() functionality through ioctl()
  5. Message-ID: <1992Jul31.013142.15149@ll.mit.edu>
  6. Originator: tadams@ll.mit.edu ( Tony Adams)
  7. Sender: news@ll.mit.edu
  8. Organization: MIT Lincoln Laboratory
  9. Date: Fri, 31 Jul 92 01:31:42 GMT
  10. Lines: 21
  11.  
  12.  
  13. System: Sun-3E, SunOS 4.1.1
  14.  
  15. How does one do the equivalent of what mmap() does through a driver
  16. ioctl() interface? we have a device on the VME bus we wish to
  17. be able to access directly from the user application.
  18. There is an example in the SunOS writing device drivers tutorial
  19. (page 203, fbmapin()). however it is not clear to me how to
  20. select the virtual address to pass through the ioctl().
  21.  
  22. in the application, something like:
  23.  
  24.     pick virtual address which (how? something > sbrk(0)?)
  25.     ioctl(fd,MAPREQ,va)
  26.  
  27. an outline of the kernel routines that should be called would
  28. be helpful.
  29.  
  30.  
  31. thanks for any assistance.
  32.  
  33.