summaryrefslogtreecommitdiff
path: root/static/freebsd/man9/vm_map_check_protection.9 4.html
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:43 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:43 -0400
commitac5e55f5f2af5b92794c2aded46c6bae85b5f5ed (patch)
tree9367490586c84cba28652e443e3166d66c33b0d9 /static/freebsd/man9/vm_map_check_protection.9 4.html
parent253e67c8b3a72b3a4757fdbc5845297628db0a4a (diff)
docs: Added All FreeBSD Manuals
Diffstat (limited to 'static/freebsd/man9/vm_map_check_protection.9 4.html')
-rw-r--r--static/freebsd/man9/vm_map_check_protection.9 4.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/static/freebsd/man9/vm_map_check_protection.9 4.html b/static/freebsd/man9/vm_map_check_protection.9 4.html
new file mode 100644
index 00000000..bce222b6
--- /dev/null
+++ b/static/freebsd/man9/vm_map_check_protection.9 4.html
@@ -0,0 +1,70 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">VM_MAP_CHECK_PROTECTION(9)</td>
+ <td class="head-vol">Kernel Developer's Manual</td>
+ <td class="head-rtitle">VM_MAP_CHECK_PROTECTION(9)</td>
+ </tr>
+</table>
+<div class="manual-text">
+<section class="Sh">
+<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<p class="Pp"><code class="Nm">vm_map_check_protection</code> &#x2014;
+ <span class="Nd">check memory protection for a vm_map</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp"><code class="In">#include
+ &lt;<a class="In">sys/param.h</a>&gt;</code>
+ <br/>
+ <code class="In">#include &lt;<a class="In">vm/vm.h</a>&gt;</code>
+ <br/>
+ <code class="In">#include &lt;<a class="In">vm/vm_map.h</a>&gt;</code></p>
+<p class="Pp"><var class="Ft">boolean_t</var>
+ <br/>
+ <code class="Fn">vm_map_check_protection</code>(<var class="Fa">vm_map_t
+ map</var>, <var class="Fa">vm_offset_t start</var>,
+ <var class="Fa">vm_offset_t end</var>, <var class="Fa">vm_prot_t
+ protection</var>);</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The
+ <a class="permalink" href="#vm_map_check_protection"><code class="Fn" id="vm_map_check_protection">vm_map_check_protection</code></a>()
+ function asserts that the target <var class="Fa">map</var> allows the
+ specified privilege <var class="Fa">protection</var> over the entire address
+ range from <var class="Fa">start</var> to <var class="Fa">end</var>. The
+ region MUST be contiguous; no holes are allowed.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="IMPLEMENTATION_NOTES"><a class="permalink" href="#IMPLEMENTATION_NOTES">IMPLEMENTATION
+ NOTES</a></h1>
+<p class="Pp">This code does not and SHOULD not check whether the contents of
+ the region are accessible. For example, a small file may be mapped into an
+ address space which is significantly larger in size.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+ VALUES</a></h1>
+<p class="Pp">The <code class="Fn">vm_map_check_protection</code>() function
+ returns TRUE if the privilege is allowed; if it is not allowed, or if any
+ other error occurred, the value FALSE is returned.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+ ALSO</a></h1>
+<p class="Pp"><a class="Xr">munmap(2)</a>, <a class="Xr">vm_map(9)</a>,
+ <a class="Xr">vm_map_protect(9)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<p class="Pp">This manual page was written by <span class="An">Bruce M
+ Simpson</span>
+ &lt;<a class="Mt" href="mailto:bms@spc.org">bms@spc.org</a>&gt;.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">July 19, 2003</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>