*BSD News Article 25556


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.uoregon.edu!cs.uoregon.edu!sgiblab!swrinde!gatech!usenet.ins.cwru.edu!eff!news.kei.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!usenet
From: Glen Schaff <glens@space.mit.edu>
Newsgroups: comp.unix.bsd
Subject: How do I set up a 2 Meg sharable area between device driver and user?
Date: 4 Jan 1994 15:21:05 GMT
Organization: MIT Center For Space Research
Lines: 12
Distribution: world
Message-ID: <2gc1h1$hns@senator-bedfellow.MIT.EDU>
NNTP-Posting-Host: ne80at6b-dyn-02.mit.edu
X-UserAgent: Nuntius v1.1.1d7
X-XXDate: Tue, 4 Jan 94 10:26:24 GMT

I am working on a SUN 4.1.1 architecture, and have been trying to set up
a 2 meg sharable memory region, that a user program can read, and my
device driver writes. (finding documentation for this is about as easy as
repairing the Hubble).  I believe this can be done using the mmap() dki
functions.  I would greatly appreciate information on how to define this
area, structure the driver routine that passes back the appropriate
pointers, and access' the area from the user program.


Thanks

Glen