diff options
Diffstat (limited to 'static/freebsd/man9/vslock.9 4.html')
| -rw-r--r-- | static/freebsd/man9/vslock.9 4.html | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/static/freebsd/man9/vslock.9 4.html b/static/freebsd/man9/vslock.9 4.html deleted file mode 100644 index 348a61d9..00000000 --- a/static/freebsd/man9/vslock.9 4.html +++ /dev/null @@ -1,79 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">VSLOCK(9)</td> - <td class="head-vol">Kernel Developer's Manual</td> - <td class="head-rtitle">VSLOCK(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">vslock</code>, <code class="Nm">vsunlock</code> - — <span class="Nd">lock/unlock user space addresses in - memory</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 - <<a class="In">sys/param.h</a>></code> - <br/> - <code class="In">#include <<a class="In">sys/proc.h</a>></code> - <br/> - <code class="In">#include <<a class="In">vm/vm.h</a>></code> - <br/> - <code class="In">#include <<a class="In">vm/vm_extern.h</a>></code></p> -<p class="Pp"><var class="Ft">int</var> - <br/> - <code class="Fn">vslock</code>(<var class="Fa" style="white-space: nowrap;">void - *addr</var>, <var class="Fa" style="white-space: nowrap;">size_t - len</var>);</p> -<p class="Pp"><var class="Ft">void</var> - <br/> - <code class="Fn">vsunlock</code>(<var class="Fa" style="white-space: nowrap;">void - *addr</var>, <var class="Fa" style="white-space: nowrap;">size_t - len</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="#vslock"><code class="Fn" id="vslock">vslock</code></a>() - and - <a class="permalink" href="#vsunlock"><code class="Fn" id="vsunlock">vsunlock</code></a>() - functions respectively lock and unlock a range of addresses belonging to the - currently running process into memory. The actual amount of memory locked is - a multiple of the machine's page size. The starting page number is computed - by truncating <var class="Fa">addr</var> to the nearest preceding page - boundary, and by rounding up <var class="Fa">addr +</var> - <var class="Fa">len</var> to the next page boundary. The process context to - use for this operation is taken from the global variable - <var class="Va">curproc</var>.</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">vslock</code>() function will return 0 on - success, otherwise it will return one of the errors listed below.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1> -<p class="Pp">The <code class="Fn">vslock</code>() function will fail if:</p> -<dl class="Bl-tag"> - <dt id="EINVAL">[<a class="permalink" href="#EINVAL"><code class="Er">EINVAL</code></a>]</dt> - <dd>The <var class="Fa">addr</var> and <var class="Fa">len</var> parameters - specify a memory range that wraps around the end of the machine address - space.</dd> - <dt id="ENOMEM">[<a class="permalink" href="#ENOMEM"><code class="Er">ENOMEM</code></a>]</dt> - <dd>The size of the specified address range exceeds the system limit on locked - memory.</dd> - <dt id="EFAULT">[<a class="permalink" href="#EFAULT"><code class="Er">EFAULT</code></a>]</dt> - <dd>Some portion of the indicated address range is not allocated. There was an - error faulting/mapping a page.</dd> -</dl> -</section> -</div> -<table class="foot"> - <tr> - <td class="foot-date">August 29, 2012</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
