diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-08 15:27:21 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-08 15:27:21 +0000 |
commit | 412917e1b6196fb5c50869f8963d9bc1105b094d (patch) | |
tree | e607ceb635450accbac940366a0c379604e96983 /firmware | |
parent | 1c3217909b444b86f87f976925f05ac05555cc6d (diff) | |
download | rockbox-412917e1b6196fb5c50869f8963d9bc1105b094d.tar.gz rockbox-412917e1b6196fb5c50869f8963d9bc1105b094d.zip |
Added comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@519 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/file.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |