1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>VFSync(W)</title>
9</head>
10
11<body>
12
13<h1>VFSync(W)</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/vf.h&gt;
18
19typedef s32	VFErr;
20
21#define VF_NINVALIDATE		(0x0)
22#define VF_INVALIDATE		(0x1)
23
24extern VFErr VFSync( const char* drive, s32 mode );
25extern VFErr VFSyncW( const VFWchar* drive, s32 mode );
26</code></pre></dd></dl>
27
28<h2>Arguments</h2>
29<p>
30<TABLE border="1" >
31  <tr>
32<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>drive</EM></STRONG></CODE></TD>
33<TD width="520">The name of the drive to be configured.</TD>
34  </tr>
35  <tr>
36<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>mode</EM></STRONG></CODE></TD>
37<TD width="520">Mode.
38    <TABLE border="1" >
39     <tr>
40<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_INVALIDATE</EM></STRONG></CODE></TD>
41<TD width="320">Invalidate the cache.</TD>
42     </tr>
43     <tr>
44<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>VF_NINVALIDATE</EM></STRONG></CODE></TD>
45<TD width="320">Do not invalidate the cache.</TD>
46     </tr>
47    </TABLE>
48  </TD>
49  </tr>
50</TABLE>
51</p>
52
53<h2>Return Values</h2>
54<PRE>
55Returns zero for success.
56Otherwise, returns a <code><a href="./VFErr.html">VFErr</a></code> other than zero.
57</PRE>
58
59
60<H2>Description</H2>
61<p>
62Writes back all data in the cache of the specified drive to the media.<br>However, data in the cache that has not been updated is not written back.<br>Setting <CODE>FA_INVALIDATE</CODE> (Invalidate the cache) for the mode invalidates all cache data. Data stored on media is read into the cache buffer the next time this memory location is accessed.<br>
63</p>
64
65<h2>See Also</h2>
66<p>
67<code><a href="./VFFileSync.html">VFFileSync</a></code>
68</p>
69
70<H2>Revision History</H2>
71<p>2006/09/26 Release.</p>
72
73
74<hr><p>CONFIDENTIAL</p></body>
75</html>
76