| 303 | | ////////////////////////////////////////////////////////////////////////////////// |
| 304 | | // The following function accesses the Fat-Cache and returns in the "value" |
| 305 | | // argument the content of the FAT slot identified by the "cluster" argument. |
| 306 | | // It loads the missing cluster from block device into cache in case of miss. |
| 307 | | // It returns 0 on success. |
| 308 | | // It returns 1 on error. |
| 309 | | ////////////////////////////////////////////////////////////////////////////////// |
| 310 | | |
| 311 | | static unsigned int _get_fat_entry( unsigned int cluster, |
| 312 | | unsigned int* value ); |
| 313 | | |
| 314 | | ////////////////////////////////////////////////////////////////////////////////// |
| 315 | | // The following function writes a new "value" in the Fat-Cache, in the slot |
| 316 | | // identified by the "cluster" argument. |
| 317 | | // It loads the missing cluster from block device into cache in case of miss. |
| 318 | | // It returns 0 on success, |
| 319 | | // It returns 1 on error. |
| 320 | | ////////////////////////////////////////////////////////////////////////////////// |
| 321 | | |
| 322 | | static unsigned int _set_fat_entry( unsigned int cluster, |
| 323 | | unsigned int value ); |
| | 303 | === __unsigned int '''_get_fat_entry'''( unsigned int cluster , unsigned int* value )__ === |
| | 304 | This function accesses the Fat-Cache and returns in the <value> argument the content of the FAT slot identified by the <cluster> argument. It loads the missing cluster from block device in the Fat-Cache in case of miss. It returns 0 on success. It returns 1 on error. |
| | 305 | |
| | 306 | === __unsigned int '''_set_fat_entry'''( unsigned int cluster , unsigned int value )__ === |
| | 307 | This function writes a new <value> in the Fat-Cache, in the slot identified by the <cluster> argument. |
| | 308 | It loads the missing cluster from block device in the Fat-Cache in case of miss. |
| | 309 | It returns 0 on success, It returns 1 on error. |