beautypg.com

Function smt387fs_sync – Sundance SMT387-FS User Manual

Page 20

background image

Function smt387fs_sync

Synopsis

int smt387fs_sync ();

Definition

Synchronizes the state of all open files’ data and metadata by flushing any buffered
data for the file and re-writing the file’s directory entry. In addition, halts all operations
on all files until all modified data has been written to the hard disk. This function is
implicitly called by smt387fs_deinit; therefore, most user applications will have no
need to call smt387fs_sync directly.

Synchronization

Thread safe.

Error Conditions

Always returns FS_OK.

Page 20