home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.misc
- Path: sparky!uunet!sun-barr!ames!xn.ll.mit.edu!ll.mit.edu!tadams
- From: tadams@ll.mit.edu ( Tony Adams)
- Subject: providing mmap() functionality through ioctl()
- Message-ID: <1992Jul31.013142.15149@ll.mit.edu>
- Originator: tadams@ll.mit.edu ( Tony Adams)
- Sender: news@ll.mit.edu
- Organization: MIT Lincoln Laboratory
- Date: Fri, 31 Jul 92 01:31:42 GMT
- Lines: 21
-
-
- System: Sun-3E, SunOS 4.1.1
-
- How does one do the equivalent of what mmap() does through a driver
- ioctl() interface? we have a device on the VME bus we wish to
- be able to access directly from the user application.
- There is an example in the SunOS writing device drivers tutorial
- (page 203, fbmapin()). however it is not clear to me how to
- select the virtual address to pass through the ioctl().
-
- in the application, something like:
-
- pick virtual address which (how? something > sbrk(0)?)
- ioctl(fd,MAPREQ,va)
-
- an outline of the kernel routines that should be called would
- be helpful.
-
-
- thanks for any assistance.
-
-