Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Mmap
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== File-backed and anonymous == ''File-backed mapping'' maps an area of the process's [[virtual memory]] to files; that is, reading those areas of memory causes the file to be read. It is the default mapping type. ''Anonymous mapping'' maps an area of the process's virtual memory not backed by any file, made available via the <code>MAP_ANONYMOUS</code>/<code>MAP_ANON</code> flags. The contents are initialized to zero.<ref>{{cite web |url=https://pubs.opengroup.org/onlinepubs/9799919799/functions/mmap.html |title=mmap(2) - The Open Group Base Specifications Issue 8}}</ref> In this respect an anonymous mapping is similar to [[C dynamic memory allocation|malloc]], and is used in some malloc implementations for certain allocations, particularly large ones.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)