mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user