Functions | |
struct fat_fs_struct * | fat_open (struct partition_struct *partition) |
Opens a FAT filesystem. | |
void | fat_close (struct fat_fs_struct *fs) |
Closes a FAT filesystem. | |
offset_t | fat_get_fs_size (const struct fat_fs_struct *fs) |
Returns the amount of total storage capacity of the filesystem in bytes. | |
offset_t | fat_get_fs_free (const struct fat_fs_struct *fs) |
Returns the amount of free storage capacity on the filesystem in bytes. | |
uint8_t | fat_get_fs_free_32_callback (uint8_t *buffer, offset_t offset, void *p) |
Callback function used for counting free clusters in a FAT32. |
void fat_close | ( | struct fat_fs_struct * | fs | ) |
Closes a FAT filesystem.
When this function returns, the given filesystem descriptor will be invalid.
[in] | fs | The filesystem to close. |
offset_t fat_get_fs_free | ( | const struct fat_fs_struct * | fs | ) |
Returns the amount of free storage capacity on the filesystem in bytes.
[in] | fs | The filesystem on which to operate. |
offset_t fat_get_fs_size | ( | const struct fat_fs_struct * | fs | ) |
Returns the amount of total storage capacity of the filesystem in bytes.
[in] | fs | The filesystem on which to operate. |
struct fat_fs_struct* fat_open | ( | struct partition_struct * | partition | ) | [read] |
Opens a FAT filesystem.
[in] | partition | Discriptor of partition on which the filesystem resides. |