mmanpxlib.html

来自「Vxworks API操作系统和驱动程序设计API。压缩的HTML文件」· HTML 代码 · 共 148 行

HTML
148
字号
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/mmanPxLib.html - generated by refgen from mmanPxLib.c --> <title> mmanPxLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference :  OS Libraries</i></a></p></blockquote><h1>mmanPxLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>mmanPxLib</strong> - memory management library (POSIX) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./mmanPxLib.html#mlockall">mlockall</a>(&nbsp;)</b>  -  lock all pages used by a process into memory (POSIX)<br><b><a href="./mmanPxLib.html#munlockall">munlockall</a>(&nbsp;)</b>  -  unlock all pages used by a process (POSIX)<br><b><a href="./mmanPxLib.html#mlock">mlock</a>(&nbsp;)</b>  -  lock specified pages into memory (POSIX)<br><b><a href="./mmanPxLib.html#munlock">munlock</a>(&nbsp;)</b>  -  unlock specified pages (POSIX)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains POSIX interfaces designed to lock and unlock memory pages,i.e., to control whether those pages may be swapped to secondary storage.Since VxWorks does not use swapping (all pages are always kept in memory), these routines have no real effect and simply return 0 (OK).<p><p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>sys/mman.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p>POSIX 1003.1b document<hr><a name="mlockall"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>mlockall(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>mlockall(&nbsp;)</strong> - lock all pages used by a process into memory (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int mlockall    (    int flags    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine guarantees that all pages used by a process are memory resident.In VxWorks, the <i>flags</i> argument is ignored, since all pages are memoryresident.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 (OK) always.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmanPxLib.html#top">mmanPxLib</a></b><hr><a name="munlockall"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>munlockall(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>munlockall(&nbsp;)</strong> - unlock all pages used by a process (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int munlockall (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine unlocks all pages used by a process from being memory resident.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 (OK) always.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmanPxLib.html#top">mmanPxLib</a></b><hr><a name="mlock"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>mlock(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>mlock(&nbsp;)</strong> - lock specified pages into memory (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int mlock    (    const void * addr,    size_t       len    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine guarantees that the specified pages are memory resident.In VxWorks, the <i>addr</i> and <i>len</i> arguments are ignored, since all pagesare memory resident.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 (OK) always.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmanPxLib.html#top">mmanPxLib</a></b><hr><a name="munlock"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries :  Routines</i></a></p></blockquote><h1>munlock(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>munlock(&nbsp;)</strong> - unlock specified pages (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int munlock    (    const void * addr,    size_t       len    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine unlocks specified pages from being memory resident.<p></blockquote><h4>RETURNS</h4><blockquote><p>0 (OK) always.<p></blockquote><h4>ERRNO</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./mmanPxLib.html#top">mmanPxLib</a></b></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?