📄 flashmem.ax(2).toc6.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title><i class="i">tffsDevFormat</i>( ) Subroutines </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><a href="flashMem.aX%282%29.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="flashMem.aX%282%29.TOC5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="flashMem.aX%282%29.TOC7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h2 class="H1"><i><a name="4647"> <i class="i">tffsDevFormat</i>( ) </a></i></h2></font><h4 class="SH"><a name="4648"> </a>NAME </h4><dl class="margin"><dl class="margin"><dd><a name="4649"><div class="aX"><b class="routine"><i class="routine">tffsDevFormat</i></b><b>( )</b> - format a flash device for use with TrueFFS </div></a></dl></dl><h4 class="SH"><a name="4650"> </a>SYNOPSIS </h4><dl class="margin"><dl class="margin"><dd><pre class="Code"><b><a name="4652">STATUS tffsDevFormat ( int tffsDriveNo, /* TrueFFS drive number (0 - DRIVES-1) */ int arg /* pointer to tffsDevFormatParams structure */ )</a></b></pre></dl></dl><h4 class="SH"><a name="4657"> </a>DESCRIPTION </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="4658"> </a>This routine formats a flash device for use with TrueFFS. It takes two parameters, a drive number and a pointer to a device format structure. This structure describes how the volume should be formatted. The structure is defined in <b>dosformat.h</b>. The drive number is assigned in the order that the socket component for the device was registered.</p><dd><p class="Body"><a name="4659"> </a>The format process marks each erase unit with an Erase Unit Header (EUH) and creates the physical and virtual Block Allocation Maps (BAM) for the device. The erase units reserved for the "boot-image" are skipped and the first EUH is placed at number (boot-image length - 1). To write to the boot-image region, call <b><i>tffsBootImagePut</i></b><b>( )</b>. </p></dl></dl><h4 class="SH"><a name="4660"> </a>WARNING </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="4661"> </a>If any of the erase units in the boot-image region contains an erase unit header from a previous format call (this can happen if you reformat a flash device specifying a larger boot region) TrueFFS fails to mount the device. To fix this problem, use <b><i>tffsRawio</i></b><b>( )</b> to erase the problem erase units (thus removing the outdated EUH).</p><dd><p class="Body"><a name="4662"> </a>The macro <b>TFFS_STD_FORMAT_PARAMS</b> defines the default values used for formatting a flask disk device. If the second argument to this routine is zero, <b><i>tffsDevFormat</i></b><b>( )</b> uses these default values. </p></dl></dl><h4 class="SH"><a name="4663"> </a>RETURNS </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="4664"> </a>OK, or ERROR if it failed. </p></dl></dl><h4 class="SH"><a name="4665"> </a>SEE ALSO </h4><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="4666"> </a><b>tffsDrv</b> </p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a></a><a href="flashMem.aX%282%29.TOC.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="flashMem.aX%282%29.TOC5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="flashMem.aX%282%29.TOC7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -