Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-13-2005, 09:59 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Montreal
Distribution: Fedora Core 3
Posts: 7

Rep: Reputation: 0
mmap function

Can anyone tell me what exactly does mmap do. Does it actually copy the file it is mapped with to the memory. And how is it different from read()
Old 06-14-2005, 04:23 AM   #2
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70

Rep: Reputation: 15
Mmap function basically allows programs to share memory with others. It sets up a segment of memory that can be read or written by 2 or more programs, if changes made by one program then it can be seen by others.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb and mmap dcfnef Programming 8 09-30-2005 10:25 AM
mmap() error FarAway Programming 3 03-30-2005 07:38 AM
using mmap AngryLlama Programming 1 02-09-2005 08:53 AM
kiobuf vs. mmap j4r0d Programming 8 01-10-2005 03:18 AM
can I use mmap with sockets? kanth Linux - Networking 0 02-28-2004 05:11 AM

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration