system/drivers/fatfs/sector.c
/*
 * SyncBuf();
 *
 * Flush all dirty blocks out to disk.  Intended to be called by the handler task
 * in response to a periodic timer of several seconds.
 */
SyncBuf();
Flush all dirty blocks out to disk.  Intended to be called by the handler task
in response to a periodic timer of several seconds.
SyncBuf () ; Flush all dirty blocks out to disk . Intended to be called by the handler task in response to a periodic timer of several seconds .
void SyncCache (struct Cache *cache)
{
	struct Blk *blk;
	while ((blk = LIST_HEAD (&cache->dirty_list)) != NULL)
	{
		blk->dirty = false;
		LIST_REM_HEAD (&cache->dirty_list, dirty_entry);
		BufWriteSector (cache, blk, BUF_IMMED);
	}
}
void SyncCache ( struct Cache * cache ) { struct Blk * blk ; while ( ( blk = LIST_HEAD ( & cache -> dirty_list ) ) != NULL ) { blk -> dirty = false ; LIST_REM_HEAD ( & cache -> dirty_list , dirty_entry ) ; BufWriteSector ( cache , blk , BUF_IMMED ) ; } }
SyncBuf();
 Flush all dirty blocks out to disk.
SyncBuf () ; Flush all dirty blocks out to disk .