<p>The disk_initialize function initializes the storage device.</p>
<pre>
DSTATUS disk_initialize (
BYTE <spanclass="arg">pdrv</span><spanclass="c">/* [IN] Physical drive number */</span>
);
</pre>
</div>
<divclass="para arg">
<h4>Parameter</h4>
<dlclass="par">
<dt>pdrv</dt>
<dd>Physical drive number to identify the target device.</dd>
</dl>
</div>
<divclass="para ret">
<h4>Return Values</h4>
<p>This function returns a disk status as the result. For details of the disk status, refer to the <ahref="dstat.html">disk_status()</a> function.</p>
</div>
<divclass="para desc">
<h4>Description</h4>
<p>This function initializes a storage device and put it ready to generic read/write data. When the function succeeded, <tt>STA_NOINIT</tt> flag in the return value is cleared.</p>
<p><em>Application program MUST NOT call this function, or FAT structure on the volume can be broken. To re-initialize the file system, use <tt>f_mount()</tt> function instead.</em> This function is called at volume mount process by FatFs module to manage the media change.</p>