亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? c-filesys3.html

?? this about vxworks operations systems
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Local File Systems   </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-filesys.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-filesys2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-filesys4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="85629">4.3  &nbsp;&nbsp;RT-11-Compatible File System: rt11Fs</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85630"> </a>VxWorks provides the file system rt11Fs, which is compatible with the RT-11 file system. It is provided primarily for compatibility with earlier versions of VxWorks. Normally, the dosFs file system is the preferred choice, because it offers such enhancements as optional contiguous file allocation, flexible file naming, and so on.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/warning.gif"></td><td><hr><div class="CalloutCell"><a name="86678"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b></a>The rt11Fs file system is considered obsolescent. In a future release of VxWorks, rt11Fs may not be supported.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85641">4.3.1  &nbsp;&nbsp;Disk Organization</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85643"> </a>The rtllFs file system uses a simple disk organization. Although this simplicity results in some loss of flexibility, rt11Fs is suitable for many real-time applications.</p><dd><p class="Body"><a name="85645"> </a>The rt11Fs file system maintains only <i class="term">contiguous files</i>. A contiguous file consists of a series of disk sectors that are consecutive. Contiguous files are well-suited to real-time applications because little time is spent locating specific portions of a file. The disadvantage of using contiguous files exclusively is that a disk can gradually become fragmented, reducing the efficiency of the disk space allocation.</p><dd><p class="Body"><a name="85646"> </a>The rt11Fs disk format uses a single directory to describe all files on the disk. The size of this directory is limited to a fixed number of directory entries. Along with regular files, unused areas of the disk are also described by special directory entries. These special entries are used to keep track of individual sections of free space on the disk.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85647">4.3.2  &nbsp;&nbsp;Initializing the rt11Fs File System</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85649"> </a>Before any other operations can be performed, the rt11Fs file system library, <b class="library">rt11FsLib</b>, must be initialized by calling <b class="routine"><i class="routine">rt11FsInit</i></b><b>(&nbsp;)</b>. This routine takes a single parameter, the maximum number of rt11Fs file descriptors that can be open at one time. This count is used to allocate a set of descriptors; a descriptor is used each time a file or an rt11Fs device is opened.</p><dd><p class="Body"><a name="85652"> </a>The <b class="routine"><i class="routine">rt11FsInit</i></b><b>(&nbsp;)</b> routine also makes an entry for the rt11Fs file system in the I/O system driver table (with <b class="routine"><i class="routine">iosDrvInstall</i></b><b>(&nbsp;)</b>). This entry specifies entry points for the rt11Fs file operations and is used for all devices that use the rt11Fs file system. The driver number assigned to the rt11Fs file systems is placed in a global variable <b class="symbol_lc">rt11FsDrvNum</b>.</p><dd><p class="Body"><a name="85654"> </a>The <b class="routine"><i class="routine">rt11FsInit</i></b><b>(&nbsp;)</b> routine is normally called by the <b class="routine"><i class="routine">usrRoot</i></b><b>(&nbsp;)</b> task after starting the VxWorks system. To use this initialization, make sure <b class="symbol_UC">INCLUDE_RT11FS</b> is selected for inclusion in the project facility VxWorks view, and set <b class="symbol_UC">NUM_RT11FS_FILES</b> to the desired maximum open file count in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Params</font></b> tab of the properties window.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85658">4.3.3  &nbsp;&nbsp;Initializing a Device for Use with rt11Fs</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85660"> </a>After the rt11Fs file system is initialized, the next step is to create one or more devices. Devices are created by the device driver's device creation routine (<i class="textVariable">xx</i><b class="routine"><i class="routine">DevCreate</i></b><b>(&nbsp;)</b>). The driver routine returns a pointer to a block device descriptor structure (<b class="symbol_UC">BLK_DEV</b>). The <b class="symbol_UC">BLK_DEV</b> structure describes the physical aspects of the device and specifies the routines in the device driver that a file system can call. For more information about block devices, see <a href="c-iosys9.html#85946"><i class="title">3.9.4&nbsp;Block Devices</i></a>.</p><dd><p class="Body"><a name="85665"> </a>Immediately after its creation, the block device has neither a name nor a file system associated with it. To initialize a block device for use with rt11Fs, the already-created block device must be associated with rt11Fs and must have a name assigned to it. This is done with <b class="routine"><i class="routine">rt11FsDevInit</i></b><b>(&nbsp;)</b>. Its parameters are:</p></dl><dl class="margin"><p class="listspace"><ul class="Dash" type="circle"><li><a name="85667"> </a>the name to be used to identify the device</li></ul></p><p class="listspace"><ul class="Dash" type="circle"><li><a name="85668"> </a>a pointer to the <b class="symbol_UC">BLK_DEV</b> structure</li></ul></p><p class="listspace"><ul class="Dash" type="circle"><li><a name="85669"> </a>a boolean value indicating whether the disk uses standard RT-11 skew and interleave</li></ul></p><p class="listspace"><ul class="Dash" type="circle"><li><a name="85670"> </a>the number of entries to be used in the disk directory (in some cases, the actual number used is greater than the number specified)</li></ul></p><p class="listspace"><ul class="Dash" type="circle"><li><a name="85671"> </a>a boolean value indicating whether this disk is subject to being changed without notification to the file system</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="85672"> </a>For example:</p></dl><dl class="margin"><dd><pre class="Code"><b><a name="85673">RT_VOL_DESC&nbsp;&nbsp;*pVolDesc; pVolDesc&nbsp;=&nbsp;rt11FsDevInit&nbsp;("DEV1:",&nbsp;pBlkDev,&nbsp;rtFmt,&nbsp;nEntries,&nbsp;changeNoWarn);</a></b></pre></dl><dl class="margin"><dd><p class="Body"><a name="85674"> </a>The <b class="routine"><i class="routine">rt11FsDevInit</i></b><b>(&nbsp;)</b> call assigns the specified name to the device and enters the device in the I/O system device table (with <b class="routine"><i class="routine">iosDevAdd</i></b><b>(&nbsp;)</b>). It also allocates and initializes the file system's volume descriptor for the device. It returns a pointer to the volume descriptor to the caller; this pointer is used to identify the volume during some file system calls.</p><dd><p class="Body"><a name="85676"> </a>Note that initializing the device for use with the rt11Fs file system does not format the disk, nor does it initialize the rt11Fs disk directory. These are done using <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> with the functions <b class="symbol_UC">FIODISKFORMAT</b> and <b class="symbol_UC">FIODISKINIT</b>, respectively.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85680">4.3.4  &nbsp;&nbsp;Mounting Volumes</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85682"> </a>A disk volume is <i class="term">mounted</i> automatically, generally during the first <b class="routine"><i class="routine">open</i></b><b>(&nbsp;)</b> or <b class="routine"><i class="routine">creat</i></b><b>(&nbsp;)</b> for a file or directory on the disk. (Certain <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> functions also cause the disk to be mounted.) When a disk is mounted, the directory data is read it.</p><dd><p class="Body"><a name="87151"> </a>Automatic mounting reoccurs on the first file access following a ready-change operation (see <a href="c-filesys3.html#85711"><i class="title">4.3.8&nbsp;Changing Disks</i></a>) or periodically if the disk is defined during the <b class="routine"><i class="routine">rt11FsDevInit</i></b><b>(&nbsp;)</b> call with the <b class="symbol_lc">changeNoWarn</b> parameter set to TRUE. Automatic mounting does not occur when a disk is opened in raw mode. For more information, see <a href="c-filesys3.html#85697"><i class="title">4.3.6&nbsp;Opening the Whole Device (Raw Mode)</i></a>.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="87162"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION:  </font></b></a>Because device names are recognized by the I/O system using simple substring matching, file systems should not use a slash (<b>/</b>) alone as a name; unexpected results may occur.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="87168">4.3.5  &nbsp;&nbsp;File I/O</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85692"> </a>Files on an rt11Fs file system device are created, deleted, written, and read using the standard VxWorks I/O routines: <b class="routine"><i class="routine">creat</i></b><b>(&nbsp;)</b>, <b class="routine"><i class="routine">remove</i></b><b>(&nbsp;)</b>, <b class="routine"><i class="routine">write</i></b><b>(&nbsp;)</b>, and <b class="routine"><i class="routine">read</i></b><b>(&nbsp;)</b>. The size of an rt11Fs file is determined during its initial <b class="routine"><i class="routine">open</i></b><b>(&nbsp;)</b> or <b class="routine"><i class="routine">creat</i></b><b>(&nbsp;)</b>. Once closed, additional space cannot be allocated to the file. For more information, see <a href="c-iosys3.html#83659"><i class="title">3.3&nbsp;Basic I/O</i></a>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85697">4.3.6  &nbsp;&nbsp;Opening the Whole Device (Raw Mode)</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85699"> </a>It is possible to open an entire rt11Fs volume by specifying only the device name during the <b class="routine"><i class="routine">open</i></b><b>(&nbsp;)</b> or <b class="routine"><i class="routine">creat</i></b><b>(&nbsp;)</b> call. A file descriptor is returned, as when opening a regular file; however, operations on that file descriptor affect the entire device. Opening the entire volume in this manner is called <i class="term">raw mode</i>.</p><dd><p class="Body"><a name="85701"> </a>The most common reason for opening the entire device is to obtain a file descriptor to perform an <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> function that does not pertain to an individual file. An example is the <b class="symbol_UC">FIOSQUEEZE</b> function, which combines fragmented free space across the entire volume.</p><dd><p class="Body"><a name="85702"> </a>When a disk is initialized with an rt11Fs directory, open the device in raw mode. The <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> function <b class="symbol_UC">FIODISKINIT</b> performs the initialization.</p><dd><p class="Body"><a name="85703"> </a>A disk can be read or written in raw mode. In this case, the entire disk area is treated much like a single large file. No directory entry is made to describe any data written using raw mode, and care must be taken to avoid overwriting the regular rt11Fs directory at the beginning of the disk. This type of I/O is also provided by <b class="library">rawFsLib</b>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85705">4.3.7  &nbsp;&nbsp;Reclaiming Fragmented Free Disk Space</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85707"> </a>As previously mentioned, the contiguous file allocation scheme used by the rt11Fs file system can gradually result in disk fragmentation. In this situation, the available free space on the disk is scattered in a number of small chunks. This reduces the ability of the system to create new files.</p><dd><p class="Body"><a name="85709"> </a>To correct this condition, <b class="library">rt11FsLib</b> includes the <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> function <b class="symbol_UC">FIOSQUEEZE</b>. This routine moves files so that the free space is combined at the end of the disk. When you call <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> with <b class="symbol_UC">FIOSQUEEZE</b>, it is critical that there be no open files on the device. With large disks, this call may require considerable time to execute.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85711">4.3.8  &nbsp;&nbsp;Changing Disks</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85713"> </a>To increase performance, rt11Fs keeps copies of directory entries for each volume in memory. While this greatly speeds up access to files, it requires that <b class="library">rt11FsLib</b> be notified when removable disks are changed (for example, when floppies are swapped). This notification is provided by the ready-change mechanism.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85715">Announcing Disk Changes with Ready-Change</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85717"> </a>A change in ready-status is interpreted by <b class="library">rt11FsLib</b> to mean that the disk must be remounted during the next I/O operation. There are three ways to announce a ready-change:</p></dl><dl class="margin"><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85719"> </a>By calling <b class="routine"><i class="routine">rt11FsReadyChange</i></b><b>(&nbsp;)</b> directly.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85721"> </a>By calling <b class="routine"><i class="routine">ioctl</i></b><b>(&nbsp;)</b> with <b class="symbol_UC">FIODISKCHANGE</b>.</li></ul></p><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85722"> </a>By having the device driver set the <b class="symbol_lc">bd_readyChanged</b> field in the <b class="symbol_UC">BLK_DEV</b> structure to TRUE; this has the same effect as notifying <b class="library">rt11FsLib</b> directly.</li></ul>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆91在线看| 久久国产精品一区二区| 日韩免费视频一区二区| www.欧美精品一二区| 免费精品视频在线| 亚洲免费观看高清完整| 精品国产第一区二区三区观看体验 | 中文字幕视频一区| 精品国产一区二区在线观看| 91行情网站电视在线观看高清版| 国产精品996| 欧美撒尿777hd撒尿| 国产盗摄一区二区| 美女mm1313爽爽久久久蜜臀| 亚洲国产成人tv| 亚洲视频 欧洲视频| 国产日韩精品久久久| 精品国产sm最大网站免费看| 欧美日韩一区久久| 欧美丝袜自拍制服另类| av男人天堂一区| 成人三级伦理片| 国产精品一区久久久久| 精品亚洲国内自在自线福利| 日韩综合一区二区| 午夜精品一区在线观看| 亚洲国产日韩一级| 亚洲一二三区在线观看| 亚洲精品成人在线| 亚洲综合免费观看高清在线观看| 国产精品狼人久久影院观看方式| 久久久久久麻豆| 精品99999| 亚洲精品在线电影| 久久婷婷国产综合精品青草| 欧美mv和日韩mv国产网站| 欧美一级免费观看| 3d动漫精品啪啪| 欧美一级黄色片| 日韩欧美一级二级| 精品黑人一区二区三区久久| 欧美电视剧免费全集观看| 亚洲国产va精品久久久不卡综合 | 极品少妇xxxx精品少妇| 国内外成人在线视频| 狠狠色丁香婷婷综合久久片| 久久电影网站中文字幕| 国产乱子伦一区二区三区国色天香| 激情欧美日韩一区二区| 国产99精品国产| 99久久精品国产一区二区三区 | 国产一区二区伦理片| 国产精品12区| 91色婷婷久久久久合中文| 一本一道久久a久久精品| 欧美在线你懂得| 91精品久久久久久久91蜜桃| 精品国产免费一区二区三区四区| 2017欧美狠狠色| 国产精品久久久久久久岛一牛影视| 自拍视频在线观看一区二区| 一区二区日韩av| 久久精品国产色蜜蜜麻豆| 国产xxx精品视频大全| 色综合久久久久久久久| 5566中文字幕一区二区电影| 久久亚洲精品国产精品紫薇| 中文字幕在线不卡| 亚洲福利一区二区三区| 国产在线一区二区综合免费视频| 成人av网站免费观看| 欧美另类一区二区三区| 精品国产电影一区二区| 亚洲欧美日韩电影| 久久精品噜噜噜成人av农村| 国产69精品久久99不卡| 色狠狠综合天天综合综合| 日韩午夜激情免费电影| 中文字幕欧美日本乱码一线二线 | 成人手机在线视频| 欧美三级电影精品| 中文字幕第一页久久| 亚洲综合色在线| 国产+成+人+亚洲欧洲自线| 欧洲视频一区二区| 久久久天堂av| 亚洲高清三级视频| 不卡一区在线观看| 欧美一级欧美三级在线观看 | 亚洲久本草在线中文字幕| 免费在线欧美视频| 色综合天天综合网天天看片| 精品国产一区二区精华| 亚洲影院免费观看| 国产福利一区在线| 欧美一区二区大片| 一区二区三区在线视频播放| 国产久卡久卡久卡久卡视频精品| 欧美人牲a欧美精品| 亚洲欧美综合网| 国产成人亚洲精品青草天美| 欧美精品三级日韩久久| 日韩理论片网站| 国产成人综合在线观看| 91麻豆精品国产无毒不卡在线观看 | 国产一区二区按摩在线观看| 色综合久久中文综合久久牛| 国产拍欧美日韩视频二区| 免费在线视频一区| 欧美日韩精品一区二区三区蜜桃| 亚洲三级免费观看| 东方aⅴ免费观看久久av| 日韩久久精品一区| 日韩国产精品91| 日本乱人伦一区| 中文字幕一区二区三区在线不卡| 国产精品一级片| 精品国产sm最大网站免费看| 日本美女视频一区二区| 欧美在线不卡视频| 亚洲美女在线一区| 97久久精品人人澡人人爽| 亚洲国产精品高清| 国产成a人无v码亚洲福利| 精品国产乱子伦一区| 美女网站在线免费欧美精品| 7777精品伊人久久久大香线蕉完整版 | 日韩中文字幕1| 欧美精选午夜久久久乱码6080| 亚洲精品国产a久久久久久| 色综合咪咪久久| 亚洲女女做受ⅹxx高潮| 99久久伊人久久99| 日韩一区欧美一区| 91黄色激情网站| 午夜精品久久久久久久久久久| 欧美亚洲动漫制服丝袜| 亚洲一区在线观看免费观看电影高清| 91官网在线观看| 亚洲国产欧美在线| 在线不卡欧美精品一区二区三区| 亚洲成人精品一区| 这里只有精品免费| 九九**精品视频免费播放| 精品国产91乱码一区二区三区 | 欧美日韩色一区| 日韩中文字幕不卡| 欧美白人最猛性xxxxx69交| 久久精品免费看| 国产日韩欧美a| 一本色道**综合亚洲精品蜜桃冫| 一区二区三区美女| 欧美日韩国产首页在线观看| 日本中文字幕不卡| 亚洲精品一区二区三区精华液| 国产成人精品亚洲日本在线桃色| 中文字幕精品—区二区四季| 91免费版pro下载短视频| 一级做a爱片久久| 日韩欧美中文一区| 国产a区久久久| 一区二区三区毛片| 精品卡一卡二卡三卡四在线| 成人午夜在线播放| 婷婷久久综合九色综合伊人色| 久久亚洲二区三区| 色婷婷综合久久久久中文| 日韩电影在线一区二区三区| 精品少妇一区二区三区| 99精品视频一区| 免费高清成人在线| 综合欧美一区二区三区| 91精品国产一区二区三区蜜臀| 国产一区二区女| 亚洲国产精品一区二区久久恐怖片 | 日韩美女主播在线视频一区二区三区| 国产成人在线视频网址| 一区二区三区成人| 欧美精品一区在线观看| 日本久久电影网| 国产一区二区三区黄视频| 亚洲在线免费播放| 日本一区二区免费在线观看视频 | 亚洲精品国产a| 26uuu国产在线精品一区二区| 一本色道久久加勒比精品 | 99精品视频中文字幕| 美腿丝袜亚洲色图| 亚洲精选免费视频| 国产亚洲一区二区三区四区| 欧美三级三级三级爽爽爽| 国产成人一级电影| 日日嗨av一区二区三区四区| 中文字幕字幕中文在线中不卡视频| 日韩欧美国产电影| 91成人免费电影| 成人av一区二区三区| 国产主播一区二区| 日本va欧美va欧美va精品| 一区二区在线免费观看|