mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
This commit is contained in:
@@ -21499,6 +21499,9 @@ echo 1 > /proc/sys/vm/overcommit_memory
|
||||
<div class="paragraph">
|
||||
<p>If we add the MAP_ANONYMOUS Linux extension however, this is not required, and mmap can be used to allocate memory like malloc.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>Answers: <a href="https://stackoverflow.com/questions/4779188/how-to-use-mmap-to-allocate-a-memory-in-heap" class="bare">https://stackoverflow.com/questions/4779188/how-to-use-mmap-to-allocate-a-memory-in-heap</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect4">
|
||||
<h5 id="mmap-file"><a class="anchor" href="#mmap-file"></a><a class="link" href="#mmap-file">21.3.4.2. mmap file</a></h5>
|
||||
|
||||
Reference in New Issue
Block a user