FatFS
f_lseek()
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
f_lseek()
f_lseek() function
Syntax
Show:
Summary
Declaration
Definition
from
ff.h:316
FRESULT
f_lseek
(
FIL
*
fp
,
FSIZE_t
ofs
)
;
Implemented in
ff.c:4474
Arguments
Argument
fp
ofs
Related Functions
Found 14 other functions taking a
FIL
argument:
Function
f_close()
f_open()
f_write()
f_read()
f_truncate()
f_sync()
f_expand()
f_write_zero_mem()
test_contiguous_file()
f_forward()
f_putc()
f_puts()
f_printf()
f_gets()
Examples
References
from
examples
Code
Location
Referrer
FRESULT
f_lseek
(
ff.c:4474
FRESULT
f_lseek
(
FIL
*
fp
,
FSIZE_t
ofs
)
;
/* Move file pointer of the file object */
ff.h:316
if
(
(
res
=
f_lseek
(
file
,
f_size
(
file
)
)
)
!=
FR_OK
)
{
vfs_fat.c:444
vfs_fat_write()
FRESULT
f_res
=
f_lseek
(
file
,
offset
)
;
vfs_fat.c:506
vfs_fat_pread()
f_res
=
f_lseek
(
file
,
prev_pos
)
;
vfs_fat.c:524
vfs_fat_pread()
FRESULT
f_res
=
f_lseek
(
file
,
offset
)
;
vfs_fat.c:546
vfs_fat_pwrite()
f_res
=
f_lseek
(
file
,
prev_pos
)
;
vfs_fat.c:568
vfs_fat_pwrite()
FRESULT
res
=
f_lseek
(
file
,
new_pos
)
;
vfs_fat.c:654
vfs_fat_lseek()
res
=
f_lseek
(
file
,
length
)
;
vfs_fat.c:1164
vfs_fat_truncate()
res
=
f_lseek
(
file
,
sz
)
;
// go to the previous end of file
vfs_fat.c:1170
vfs_fat_truncate()
res
=
f_lseek
(
file
,
seek_ptr_pos
)
;
// return to the original position
vfs_fat.c:1196
vfs_fat_truncate()
res
=
f_lseek
(
file
,
length
)
;
vfs_fat.c:1273
vfs_fat_ftruncate()
res
=
f_lseek
(
file
,
sz
)
;
// go to the previous end of file
vfs_fat.c:1279
vfs_fat_ftruncate()
res
=
f_lseek
(
file
,
seek_ptr_pos
)
;
// return to the original position
vfs_fat.c:1304
vfs_fat_ftruncate()
fr
=
f_rewind
(
fp
)
;
/* Validates and prepares the file */
vfs_fat.c:1452
test_contiguous_file()
fr
=
f_lseek
(
fp
,
f_tell
(
fp
)
+
step
)
;
/* Advances file pointer a cluster */
vfs_fat.c:1465
test_contiguous_file()
Call Tree
from
examples
f_lseek()
is called by 7 functions and calls 7 functions:
vfs_fat_write()
vfs_fat_pread()
vfs_fat_pwrite()
vfs_fat_lseek()
vfs_fat_truncate()
vfs_fat_ftruncate()
test_contiguous_file()
All items filtered out
f_lseek()
ff_disk_read()
ff_disk_write()
validate()
clst2sect()
get_fat()
unlock_volume()
create_chain()
All items filtered out
Data Use
from
examples
f_lseek()
reads 17 variables and writes 7 variables:
FFOBJID::objsize
FIL::obj
FIL::flag
FIL::err
FIL::fptr
FIL::clust
FIL::sect
FIL::buf
FRESULT::FR_OK
FRESULT::FR_DISK_ERR
FRESULT::FR_INT_ERR
FATFS::pdrv
FATFS::csize
FATFS::ssize
FATFS::n_fatent
FFOBJID::sclust
DRESULT::RES_OK
All items filtered out
f_lseek()
FFOBJID::objsize
FIL::flag
FIL::err
FIL::fptr
FIL::clust
FIL::sect
FFOBJID::sclust
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out