Home |
The ISO 9660 File System Structure The exFAT File System Structure RTFiles-32 in Embedded Applications RTFiles-32 Data Tables |
RTFiles-32 Data TablesRTFiles-32 needs memory to store information about currently available drives, open files, and for its buffers. By default, RTFiles-32 allocates enough space for up to eight open files, eight logical drives, and 32 sector buffers with 4096 bytes each. If CD-ROM support is required, an application must allocate buffers with a minumum size of 2048 bytes. To be able to mount disks with 4k sector size, buffers with at least 4k size are required. To change the data table configuration, include the following lines in one of the application's source files: #define RTF_BUFFER_SIZE 4096 #define RTF_MAX_DRIVES 8 #define RTF_MAX_FILES 8 #define RTF_MAX_BUFFERS 32 #include <Rtfdata.c> and edit the respective constants to match your needs. If any of the given symbols is not defined, RTFiles-32 will apply its respective default as displayed above. RTFiles-32 can only mount disks with a sector size <= RTF_BUFFER_SIZE. RTF_BUFFER_SIZE must not be small than 512 and must be a power or two. Example:The application will need to open up to 30 files simultaneously. At least two file handles should be reserved, because RTFiles-32 may need them internally. To improve performance with so many open files, the number of 4096 byte buffers is increased to 64: #define RTF_MAX_FILES 32 #define RTF_MAX_BUFFERS 64 #include <Rtfdata.c> To analyze an application's data needs, use functions RTFBufferInfo and RTFDumpFileTable. Function RTFAddBuffers can be used to dynamically increase the sector buffer cache size at run-time.
|