⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmanpxlib.html

📁 vxworks相关论文
💻 HTML
字号:
<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.html"><i>VxWorks Reference Manual :  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><i><a href="./mmanPxLib.html#mlockall">mlockall</a></i>(&nbsp;)</b>  -  lock all pages used by a process into memory (POSIX)<br><b><i><a href="./mmanPxLib.html#munlockall">munlockall</a></i>(&nbsp;)</b>  -  unlock all pages used by a process (POSIX)<br><b><i><a href="./mmanPxLib.html#mlock">mlock</a></i>(&nbsp;)</b>  -  lock specified pages into memory (POSIX)<br><b><i><a href="./mmanPxLib.html#munlock">munlock</a></i>(&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><b><a href="./mmanPxLib.html#top">mmanPxLib</a></b>, POSIX 1003.1b document<hr><a name="mlockall"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>mlockall</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>mlockall</i>(&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.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>munlockall</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>munlockall</i>(&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.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>mlock</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>mlock</i>(&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.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>munlock</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>munlock</i>(&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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -