Article View: comp.sys.sun
Article #1369mmap() under SunOS 4.0
From: Andrew Arensburger
Date: Wed, 30 Aug 1989 19:53
Date: Wed, 30 Aug 1989 19:53
10 lines
1068 bytes
1068 bytes
Sun used to have a nice, well-behaved routine called 'mmap()', which took a block of memory, and mapped it to a device such as -- in my case -- a VMEbus. Sadly, they changed it with SunOS 4.0. Now, instead of returning an (integer) error code, it returns a pointer (or -1 in case of error. Aaarggghh!). It is unclear what the return value has to do with the pointer one has passed in, or indeed what the routine does, now. I need to map certain addresses on /dev/vme16 and /dev/vme24 to user memory. Does anyone have any experience with 'mmap()' under 4.0? How do I go about using it? (The manual page is particularly unclear).
Technical Details
Message-ID:
<1366@brazos.Rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request From: arensb@cvl.umd.edu (Andrew Arensburger) Newsgroups: comp.sys.sun Subject: mmap() under SunOS 4.0 Keywords: SunOS Message-ID: <1366@brazos.Rice.edu> Date: 30 Aug 89 19:53:57 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 10 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 114, message 14 of 15