This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-10-06 00:00:00 +00:00
parent 3a14df76dc
commit 8b0b9c6127

View File

@@ -21491,7 +21491,7 @@ echo 1 > /proc/sys/vm/overcommit_memory
<p>Basic <code>mmap</code> example, do the same as <a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/userland/c/malloc.c">userland/c/malloc.c</a>, but with <code>mmap</code>.</p>
</div>
<div class="paragraph">
<p>Example: userland/linux/mmap_anonymous.c[]</p>
<p>Example: <a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/userland/linux/mmap_anonymous.c">userland/linux/mmap_anonymous.c</a></p>
</div>
<div class="paragraph">
<p>In POSIX 7 mmap always maps to a file.</p>