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

📄 memdrvbuild.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/tornado/hutils/memdrvbuild.html - generated by refgen from memdrvbuild.c --> <title> memdrvbuild </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>Tornado Reference :  Tornado Utilities</i></a></p></blockquote><h1>memdrvbuild</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>memdrvbuild</strong> - filesystem builder for <b><a href="../../vxworks/ref/memDrv.html#top" >memDrv</a></b> </p></blockquote><h4>DESCRIPTION</h4><blockquote><p><p>The <b><a href="./memdrvbuild.html#top">memdrvbuild</a></b> utility is designed to be used in conjunction with the<b><i><a href="../../vxworks/ref/memDrv.html#memDrv" >memDrv</a></i>(&nbsp;)</b> memory file driver.  It packs files and directories into acompilable C file which can be built into VxWorks, and then mountedas a filesystem using <b><i><a href="../../vxworks/ref/memDrv.html#memDrv" >memDrv</a></i>(&nbsp;)</b>.<p><b><a href="./memdrvbuild.html#top">memdrvbuild</a></b> converts a directory hierarchy, and all of the filescontained within it, into a single C source file.  The individualfiles are converted into C data arrays containing the contents of thefiles (which may be in any format), along with administrative datadescribing the names and sizes of the files.  This constructed C filecan then be built into VxWorks in the normal way.<p>The generated C file also contains two function which can be called toregister or unregister all of the packed files and directories;they are mounted as a filesystem using <b><i><a href="../../vxworks/ref/memDrv.html#memDevCreateDir" >memDevCreateDir</a></i>(&nbsp;)</b>, and unmountedusing <b><i><a href="../../vxworks/ref/memDrv.html#memDevDelete" >memDevDelete</a></i>(&nbsp;)</b>. An include file is also generated, containinga declaration of this function.<p></blockquote><h4>USAGE</h4><blockquote><p>This utility is invoked as:<pre>    memdrvbuild [ -o filebase ] [ -m mount ] directory</pre>where:<dl><dt>-o filebase<dd>The base name for the generated .c and .h files.Defaults to the name of the source directory.<p><dt>-m mount<dd>The name ("mount point") under which directory will be mountedon the target.  Defaults to the name of the source directory.<p><dt>directory<dd>The source directory containing the files to be packedinto a <b><a href="../../vxworks/ref/memDrv.html#top" >memDrv</a></b> filesystem. </dl><p>The output C file contains two function, called memDrvAddFiles<i>mount</i>()and memDrvDeleteFiles<i>mount</i>(), where <i>mount</i> is the argument to the "-d"option, with non-alpha characters converted to <b>_</b>.This first function mounts the packed files using <b><i><a href="../../vxworks/ref/memDrv.html#memDevCreate" >memDevCreate</a></i>(&nbsp;)</b>. Thesecond function unmounts the packed files using <b><i><a href="../../vxworks/ref/memDrv.html#memDevDelete" >memDevDelete</a></i>(&nbsp;)</b>.The H file contains a declaration of those functions.<p>Each file will be mounted with the name "<i>mount</i>/<i>file</i>", where <i>file</i>is the pathname of the file below the indicated source directory.<p></blockquote><h4>EXAMPLE</h4><blockquote><p>Given a directory "docs", containing a number of files:<pre>    memdrvbuild -m /mem -o memFiles docs</pre>will produce 2 files, <b>memFiles.c</b> and <b>memFiles.h</b>.  <b>memFiles.c</b> willcontain the data for the packed files, plus two functions:<pre>    STATUS memDrvAddFiles_mem (void);    STATUS memDrvDeleteFiles_mem (void);</pre>When called, the first function will mount all of the contained files inthe filesystem under "/mem".  For example, the file "<b>docs/fred.html</b>"would be mounted as "<b>/mem/fred.html</b>". The second function will unmountall of the contained files in the filesystem under "/mem".<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./memdrvbuild.html#top">memdrvbuild</a></b></body></html>

⌨️ 快捷键说明

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