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

📄 ntpassfslib.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/ntPassFsLib.html - generated by refgen from ntPassFsLib.c --> <title> ntPassFsLib </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>ntPassFsLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>ntPassFsLib</strong> - pass-through (to Windows NT) file system library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./ntPassFsLib.html#ntPassFsDevInit">ntPassFsDevInit</a></i>(&nbsp;)</b>  -  associate a device with ntPassFs file system functions<br><b><i><a href="./ntPassFsLib.html#ntPassFsInit">ntPassFsInit</a></i>(&nbsp;)</b>  -  prepare to use the ntPassFs library<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This module is only used with VxSim simulated versions of VxWorks.<p>This library provides services for file-oriented device drivers to usethe Windows NT file standard.  In general, the routines in this library are not to be called directly by users, but rather by the VxWorks I/O System.<p></blockquote><h4>INITIALIZING PASSFSLIB</h4><blockquote><p>Before any other routines in <b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b> can be used, the routine <b><i><a href="./ntPassFsLib.html#ntPassFsInit">ntPassFsInit</a></i>(&nbsp;)</b>must be called to initialize this library.The <b><i><a href="./ntPassFsLib.html#ntPassFsDevInit">ntPassFsDevInit</a></i>(&nbsp;)</b> routine associates a device name with the <b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b>functions.  The parameter expected by <b><i><a href="./ntPassFsLib.html#ntPassFsDevInit">ntPassFsDevInit</a></i>(&nbsp;)</b> is a pointer toa name string, to be used to identify the volume/device.  This will be part ofthe pathname for I/O operations which operate on the device.  Thisname will appear in the I/O system device table, which may be displayedusing the <b><i><a href="./iosShow.html#iosDevShow">iosDevShow</a></i>(&nbsp;)</b> routine.<p>As an example:<pre>    ntPassFsInit (1);    ntPassFsDevInit ("host:");</pre>After the <b><i><a href="./ntPassFsLib.html#ntPassFsDevInit">ntPassFsDevInit</a></i>(&nbsp;)</b> call has been made, when <b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b> receives a request from the I/O system, it calls the Windows NT I/O system to servicethe request.  Only one volume may be created.<p></blockquote><h4>READING DIRECTORY ENTRIES</h4><blockquote><p>Directories on a ntPassFs volume may be searched using the <b><i><a href="./dirLib.html#opendir">opendir</a></i>(&nbsp;)</b>,<b><i><a href="./dirLib.html#readdir">readdir</a></i>(&nbsp;)</b>, <b><i><a href="./dirLib.html#rewinddir">rewinddir</a></i>(&nbsp;)</b>, and <b><i><a href="./dirLib.html#closedir">closedir</a></i>(&nbsp;)</b> routines.  These calls allow thenames of files and sub-directories to be determined.<p>To obtain more detailed information about a specific file, use the <b><i><a href="./dirLib.html#fstat">fstat</a></i>(&nbsp;)</b>or <b><i><a href="./dirLib.html#stat">stat</a></i>(&nbsp;)</b> function.  Along with standard file information, the structureused by these routines also returns the file attribute byte from a ntPassFsdirectory entry.<p></blockquote><h4>FILE DATE AND TIME</h4><blockquote><p>Windows NT file date and time are passed through to VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>ntPassFsLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b>, <b><a href="./ioLib.html#top">ioLib</a></b>, <b><a href="./iosLib.html#top">iosLib</a></b>, <b><a href="./dirLib.html#top">dirLib</a></b>, <b><a href="./ramDrv.html#top">ramDrv</a></b><hr><a name="ntPassFsDevInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ntPassFsDevInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ntPassFsDevInit</i>(&nbsp;)</strong> - associate a device with ntPassFs file system functions</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void *ntPassFsDevInit    (    char * devName /* device name */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine associates the name <i>devName</i> with the file system and installs it in the I/O System's device table.  The driver number used whenthe device is added to the table is that which was assigned to thentPassFs library during <b><i><a href="./ntPassFsLib.html#ntPassFsInit">ntPassFsInit</a></i>(&nbsp;)</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>A pointer to the volume descriptor, or NULL if there is an error.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b><hr><a name="ntPassFsInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ntPassFsInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ntPassFsInit</i>(&nbsp;)</strong> - prepare to use the ntPassFs library</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS ntPassFsInit    (    int nPassfs /* number of ntPass-through file systems */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the ntPassFs library.  It must be called exactly once,before any other routines in the library.  The argument specifies the numberof ntPassFs devices that may be open at once.  This routine installs<b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b> as a driver in the I/O system driver table, allocates and sets up the necessary memory structures, and initializes semaphores.<p>Normally this routine is called from the root task, <b><i><a href="./usrConfig.html#usrRoot">usrRoot</a></i>(&nbsp;)</b>,in <b><i>usrConfig</i>(&nbsp;)</b>.  To enable this initialization, define <b>INCLUDE_PASSFS</b>in <b>configAll.h</b>.<p></blockquote><h4>NOTE</h4><blockquote><p>Maximum number of ntPass-through file systems is 1.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ntPassFsLib.html#top">ntPassFsLib</a></b></body></html>

⌨️ 快捷键说明

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