🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmers
1 messages
1 total messages Started by Elisabeth Freeman Thu, 28 Jan 1993 02:00
question about using mmap
#4
Author: Elisabeth Freeman
Date: Thu, 28 Jan 1993 02:00
21 lines
1158 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads