From 412917e1b6196fb5c50869f8963d9bc1105b094d Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 8 May 2002 15:27:21 +0000 Subject: Added comment git-svn-id: svn://svn.rockbox.org/rockbox/trunk@519 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firmware/common/file.c') diff --git a/firmware/common/file.c b/firmware/common/file.c index a5d9443aeb..9d18c613bf 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -24,6 +24,15 @@ #include "dir.h" #include "debug.h" +/* + These functions provide a roughly POSIX-compatible file IO API. + + Since the fat32 driver only manages sectors, we maintain a one-sector + cache for each open file. This way we can provide byte access without + having to re-read the sector each time. + The penalty is the RAM used for the cache and slightly more complex code. +*/ + #define MAX_OPEN_FILES 4 struct filedesc { -- cgit v1.2.3