4 cache_set
* scache_init(mass_dev
* dev
, int sectorSize
);
5 void scache_close(cache_set
* cache
);
6 void scache_kill(cache_set
* cache
); //dlanor: added for disconnection events (flush impossible)
7 int scache_allocSector(cache_set
* cache
, unsigned int sector
, void** buf
);
8 int scache_readSector(cache_set
* cache
, unsigned int sector
, void** buf
);
9 int scache_writeSector(cache_set
* cache
, unsigned int sector
);
10 int scache_flushSectors(cache_set
* cache
);
12 void scache_getStat(cache_set
* cache
, unsigned int* access
, unsigned int* hits
);