DocID026161 Rev 4
25/111
UM1743
Kernel description
110
The implemented functions in the file system interface to deal with the physical storage units
are summarized in
.
The full APIs functions set given by the file system interface are listed in
Table 1. File system interface: physical storage control functions
Function
Description
disk_initialize
Initialize disk drive
disk_read
Interface function for a logical page read
disk_write
Interface function for a logical page write
disk_status
Interface function for testing if unit is ready
disk_ioct
Control device dependent features
Table 2. File system interface APIs
Function
Description
f_mount
Register/Unregister a work area
f_open
Open/Create a file
f_close
Close a file
f_read
Read file
f_write
Write file
f_lseek
Move read/write pointer, Expand file size
f_truncate
Truncate file size
f_sync
Flush cached data
f_opendir
Open a directory
f_readdir
Read a directory item
f_getfree
Get free clusters
f_stat
Get file status
f_mkdir
Create a directory
f_unlink
Remove a file or directory
f_chmod
Change attribute
f_utime
Change timestamp
f_rename
Rename/Move a file or directory
f_mkfs
Create a file system on the drive
f_forward
Forward file data to the stream directly
f_chdir
Change current directory
f_chdrive
Change current drive
f_getcwd
Retrieve the current directory
f_gets
Read a string