Re: mmap()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Fri, Jan 23, 2009 at 8:14 PM, niamathullah sharief
<shariefbe@xxxxxxxxxxx> wrote:
> Hello,
>
>    Actually what is mmap()?why it used?shall we write the program without
> that function?

by using mmap(), you can:
1. allocate memory without backing file (called anonymous mapping)

2. map all or some part of a file into process address space, thus you
access it by simply reading/writing to an address of process address
space.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux