FatFS
FFOBJID::sclust
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (5/5)...
FatFS
ESP-IDF
lwIP
FreeRTOS
cJSON
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FFOBJID::sclust
FFOBJID::sclust field
Syntax
Show:
Summary
Declaration
from
ff.h:189
DWORD
sclust
;
Examples
References
from
examples
Code
Location
Referrer
DWORD
sclust
;
/* Object data start cluster (0:no cluster or root directory) */
ff.h:189
clst
=
dp
->
obj
.
sclust
;
/* Table start cluster (0:root) */
ff.c:1715
dir_sdi()
dp
->
obj
.
sclust
=
0
;
/* Start from the root directory */
ff.c:3073
follow_path()
dp
->
obj
.
sclust
=
ld_clust
(
fs
,
fs
->
win
+
dp
->
dptr
%
SS
(
fs
)
)
;
/* Open next directory */
ff.c:3128
follow_path()
fp
->
obj
.
sclust
=
ld_clust
(
fs
,
dj
.
dir
)
;
/* Get object allocation info */
ff.c:3868
f_open()
clst
=
fp
->
obj
.
sclust
;
/* Follow the cluster chain */
ff.c:3899
f_open()
clst
=
fp
->
obj
.
sclust
;
/* Follow cluster chain from the origin */
ff.c:3979
f_read()
clst
=
fp
->
obj
.
sclust
;
/* Follow from the origin */
ff.c:4081
f_write()
if
(
fp
->
obj
.
sclust
==
0
)
fp
->
obj
.
sclust
=
clst
;
/* Set start cluster if the first write */
ff.c:4099
f_write()
st_clust
(
fp
->
obj
.
fs
,
dir
,
fp
->
obj
.
sclust
)
;
/* Update file allocation information */
ff.c:4229
f_sync()
clst
=
fp
->
obj
.
sclust
;
/* start from the first cluster */
ff.c:4569
f_lseek()
fp
->
obj
.
sclust
=
clst
;
ff.c:4575
f_lseek()
dp
->
obj
.
sclust
=
ld_clust
(
fs
,
dp
->
dir
)
;
/* Get object allocation info */
ff.c:4668
f_opendir()
res
=
remove_chain
(
&
fp
->
obj
,
fp
->
obj
.
sclust
,
0
)
;
ff.c:4968
f_truncate()
fp
->
obj
.
sclust
=
0
;
ff.c:4969
f_truncate()
sdj
.
obj
.
sclust
=
dclst
;
ff.c:5056
f_unlink()
fs
->
win
[
SZDIRE
+
1
]
=
'.'
;
pcl
=
dj
.
obj
.
sclust
;
ff.c:5136
f_mkdir()
res
=
(
djn
.
obj
.
sclust
==
djo
.
obj
.
sclust
&&
djn
.
dptr
==
djo
.
dptr
)
?
FR_NO_FILE
:
FR_EXIST
;
ff.c:5238
f_rename()
if
(
(
dir
[
DIR_Attr
]
&
AM_DIR
)
&&
djo
.
obj
.
sclust
!=
djn
.
obj
.
sclust
)
{
/* Update .. entry in the sub-directory if needed */
ff.c:5248
f_rename()
st_clust
(
fs
,
dir
,
djn
.
obj
.
sclust
)
;
ff.c:5257
f_rename()
fp
->
obj
.
sclust
=
scl
;
/* Update object allocation information */
ff.c:5679
f_expand()
clst
=
fp
->
obj
.
sclust
-
1
;
/* A cluster leading the first cluster for first test */
vfs_fat.c:1462
test_contiguous_file()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FFOBJID::sclust
is written by 8 functions and is read by 10 functions:
follow_path()
f_open()
f_write()
f_lseek()
f_opendir()
f_truncate()
f_unlink()
f_expand()
All items filtered out
FFOBJID::sclust
dir_sdi()
f_open()
f_read()
f_write()
f_sync()
f_lseek()
f_truncate()
f_mkdir()
f_rename()
test_contiguous_file()
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