home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:6058 comp.unix.wizards:5659
- Path: sparky!uunet!gumby!yale!yale.edu!not-for-mail
- From: freeman-elisabeth@cs.yale.edu (Elisabeth Freeman)
- Newsgroups: comp.unix.programmer,comp.unix.wizards
- Subject: Using mmap()
- Date: 27 Jan 1993 21:02:03 -0500
- Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
- Lines: 24
- Distribution: usa
- Message-ID: <1k7eqrINN3dr@TEDDY.SYSTEMSY.CS.YALE.EDU>
- NNTP-Posting-Host: teddy.systemsy.cs.yale.edu
-
-
- I'm a bit confused about using mmap - it's not clear what "fd"
- in the man page refers to:
-
-
- caddr_t mmap(addr, len, prot, flags, fd, off)
- caddr_t addr;
- size_t len;
- int prot, flags, fd;
- off_t off;
-
- DESCRIPTION
- mmap() establishes a mapping between the process's address
- space at an address pa for len bytes to the memory object
- represented by fd at off for len bytes.
-
- What is this memory object pointed to by fd, and how do I define
- fd? I want to map some pages created by valloc() to another
- virtual address space. Can I use mmap() for this purpose?
-
- Beth Freeman
- freeman-elisabeth@cs.yale.edu
-
-
-