🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #966

Re: mmap() system call

#966
From: James Symon
Date: Wed, 03 Oct 1990 13:07
20 lines
1220 bytes
In article <5994@ge-dab.GE.COM>, coleman@sundae9.DAB.GE.COM (Richard Coleman) writes:
> 
> I was looking at the system call mmap().  I not sure what
> the purpose of this system call is.  Could someone help.
> 

Besides regular files, the file that you map to your program`s data
space can be some device. The call to mmap() will use the mmap routine
from the device driver. This method is often used with custom hardware
to allow direct access to device registers through program variables.
With root permission you can memory map directly to bus addresses, at
least on Suns, using the various address spaces such as vme24d16. If
you have Sun documentation look at the document about writing device
drivers. I`ve also seen a book about writing UNIX device drivers that
can help you understand mmap().

Jim Symon
symon@radonc.unc.edu
symon@cs.unc.edu
(919) 966-7710
Technical Details
Message-ID: <16485@thorin.cs.unc.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!apple!rutgers!mcnc!thorin!aesop!symon
References: <5994@ge-dab.GE.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!apple!rutgers!mcnc!thorin!aesop!symon
From: symon@aesop.cs.unc.edu (James Symon)
Newsgroups: comp.unix.programmer
Subject: Re: mmap() system call
Message-ID: <16485@thorin.cs.unc.edu>
Date: 3 Oct 90 13:07:46 GMT
References: <5994@ge-dab.GE.COM>
Sender: news@thorin.cs.unc.edu
Lines: 20