FatFS
FF_DIR::obj
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FF_DIR::obj
FF_DIR::obj field
Syntax
Show:
Summary
Declaration
from
ff.h:235
FFOBJID
obj
;
Examples
References
from
examples
Code
Location
Referrer
FFOBJID
obj
;
/* Object identifier */
ff.h:235
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:1708
dir_sdi()
clst
=
dp
->
obj
.
sclust
;
/* Table start cluster (0:root) */
ff.c:1715
dir_sdi()
if
(
FF_FS_EXFAT
)
dp
->
obj
.
stat
=
0
;
/* exFAT: Root dir has an FAT chain */
ff.c:1718
dir_sdi()
clst
=
get_fat
(
&
dp
->
obj
,
clst
)
;
/* Get next cluster */
ff.c:1728
dir_sdi()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:1756
dir_next()
clst
=
get_fat
(
&
dp
->
obj
,
dp
->
clust
)
;
/* Get next cluster */
ff.c:1773
dir_next()
clst
=
create_chain
(
&
dp
->
obj
,
dp
->
clust
)
;
/* Allocate a cluster */
ff.c:1781
dir_next()
if
(
FF_FS_EXFAT
)
dp
->
obj
.
stat
|=
4
;
/* exFAT: The directory has been stretched */
ff.c:1786
dir_next()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:1818
dir_alloc()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:2317
dir_read()
dp
->
obj
.
attr
=
attr
=
dp
->
dir
[
DIR_Attr
]
&
AM_MASK
;
/* Get attribute */
ff.c:2347
dir_read()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:2394
dir_find()
dp
->
obj
.
attr
=
a
=
dp
->
dir
[
DIR_Attr
]
&
AM_MASK
;
ff.c:2432
dir_find()
dp
->
obj
.
attr
=
dp
->
dir
[
DIR_Attr
]
&
AM_MASK
;
ff.c:2453
dir_find()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:2475
dir_register()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:2581
dir_remove()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:2631
get_fileinfo()
p
=
*
path
;
lfn
=
dp
->
obj
.
fs
->
lfnbuf
;
di
=
0
;
ff.c:2867
create_name()
FATFS
*
fs
=
dp
->
obj
.
fs
;
ff.c:3063
follow_path()
dp
->
obj
.
sclust
=
0
;
/* Start from the root directory */
ff.c:3073
follow_path()
if
(
!
(
dp
->
obj
.
attr
&
AM_DIR
)
)
{
/* It is not a sub-directory and cannot follow */
ff.c:3116
follow_path()
dp
->
obj
.
sclust
=
ld_clust
(
fs
,
fs
->
win
+
dp
->
dptr
%
SS
(
fs
)
)
;
/* Open next directory */
ff.c:3128
follow_path()
dj
.
obj
.
fs
=
fs
;
ff.c:3753
f_open()
if
(
dj
.
obj
.
attr
&
(
AM_RDO
|
AM_DIR
)
)
{
/* Cannot overwrite it (R/O or FF_DIR) */
ff.c:3780
f_open()
res
=
remove_chain
(
&
dj
.
obj
,
cl
,
0
)
;
ff.c:3817
f_open()
if
(
dj
.
obj
.
attr
&
AM_DIR
)
{
/* File open against a directory */
ff.c:3828
f_open()
if
(
(
mode
&
FA_WRITE
)
&&
(
dj
.
obj
.
attr
&
AM_RDO
)
)
{
/* Write mode open against R/O file */
ff.c:3831
f_open()
dp
->
obj
.
fs
=
fs
;
ff.c:4653
f_opendir()
if
(
dp
->
obj
.
attr
&
AM_DIR
)
{
/* This object is a sub-directory */
ff.c:4658
f_opendir()
dp
->
obj
.
sclust
=
ld_clust
(
fs
,
dp
->
dir
)
;
/* Get object allocation info */
ff.c:4668
f_opendir()
dp
->
obj
.
id
=
fs
->
id
;
ff.c:4675
f_opendir()
if
(
res
!=
FR_OK
)
dp
->
obj
.
fs
=
0
;
/* Invalidate the directory object if function failed */
ff.c:4692
f_opendir()
res
=
validate
(
&
dp
->
obj
,
&
fs
)
;
/* Check validity of the file object */
ff.c:4712
f_closedir()
dp
->
obj
.
fs
=
0
;
/* Invalidate directory object */
ff.c:4718
f_closedir()
res
=
validate
(
&
dp
->
obj
,
&
fs
)
;
/* Check validity of the directory object */
ff.c:4744
f_readdir()
res
=
mount_volume
(
&
path
,
&
dj
.
obj
.
fs
,
0
)
;
ff.c:4833
f_stat()
INIT_NAMBUF
(
dj
.
obj
.
fs
)
;
ff.c:4835
f_stat()
LEAVE_FF
(
dj
.
obj
.
fs
,
res
)
;
ff.c:4847
f_stat()
dj
.
obj
.
fs
=
fs
;
ff.c:5020
f_unlink()
if
(
dj
.
obj
.
attr
&
AM_RDO
)
{
ff.c:5033
f_unlink()
if
(
dj
.
obj
.
attr
&
AM_DIR
)
{
/* Is it a sub-directory? */
ff.c:5048
f_unlink()
sdj
.
obj
.
fs
=
fs
;
/* Open the sub-directory */
ff.c:5055
f_unlink()
sdj
.
obj
.
sclust
=
dclst
;
ff.c:5056
f_unlink()
res
=
remove_chain
(
&
dj
.
obj
,
dclst
,
0
)
;
ff.c:5078
f_unlink()
dj
.
obj
.
fs
=
fs
;
ff.c:5111
f_mkdir()
fs
->
win
[
SZDIRE
+
1
]
=
'.'
;
pcl
=
dj
.
obj
.
sclust
;
ff.c:5136
f_mkdir()
djo
.
obj
.
fs
=
fs
;
ff.c:5197
f_rename()
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()
dj
.
obj
.
fs
=
fs
;
ff.c:5305
f_chmod()
dj
.
obj
.
fs
=
fs
;
ff.c:5351
f_utime()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FF_DIR::obj
is read by 19 functions:
All items filtered out
FF_DIR::obj
dir_sdi()
dir_next()
dir_alloc()
dir_read()
dir_find()
dir_register()
dir_remove()
get_fileinfo()
create_name()
follow_path()
f_open()
f_opendir()
f_closedir()
f_stat()
f_unlink()
f_mkdir()
f_rename()
f_chmod()
f_utime()
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