FatFS
s_ctx
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
s_ctx
s_ctx variable
Syntax
Show:
Summary
Declaration
from
vfs_fat_spiflash.c:24
static
vfs_fat_spiflash_ctx_t
*
s_ctx
[
FF_VOLUMES
]
=
{
}
;
Examples
References
from
examples
Code
Location
Referrer
static
vfs_fat_spiflash_ctx_t
*
s_ctx
[
FF_VOLUMES
]
=
{
}
;
vfs_fat_spiflash.c:24
p_ctx
=
s_ctx
[
i
]
;
vfs_fat_spiflash.c:32
s_get_context_id_by_label()
p_ctx
=
s_ctx
[
i
]
;
vfs_fat_spiflash.c:51
s_get_context_id_by_wl_handle()
if
(
!
s_ctx
[
i
]
)
{
vfs_fat_spiflash.c:65
s_get_unused_context_id()
return
s_ctx
[
id
]
;
vfs_fat_spiflash.c:76
get_vfs_fat_spiflash_ctx()
s_ctx
[
ctx_id
]
=
ctx
;
vfs_fat_spiflash.c:189
esp_vfs_fat_spiflash_mount_rw_wl()
free
(
s_ctx
[
id
]
)
;
vfs_fat_spiflash.c:225
esp_vfs_fat_spiflash_unmount_rw_wl()
s_ctx
[
id
]
=
NULL
;
vfs_fat_spiflash.c:226
esp_vfs_fat_spiflash_unmount_rw_wl()
if
(
s_ctx
[
id
]
->
flags
&
FORMATTED_DURING_LAST_MOUNT
)
{
vfs_fat_spiflash.c:256
esp_vfs_fat_spiflash_format_cfg_rw_wl()
s_ctx
[
id
]
->
mount_config
=
*
cfg
;
vfs_fat_spiflash.c:264
esp_vfs_fat_spiflash_format_cfg_rw_wl()
temp_handle
=
s_ctx
[
id
]
->
wlhandle
;
vfs_fat_spiflash.c:266
esp_vfs_fat_spiflash_format_cfg_rw_wl()
char
drv
[
3
]
=
{
(
char
)
(
'0'
+
s_ctx
[
id
]
->
pdrv
)
,
':'
,
0
}
;
vfs_fat_spiflash.c:271
esp_vfs_fat_spiflash_format_cfg_rw_wl()
size_t
alloc_unit_size
=
esp_vfs_fat_get_allocation_unit_size
(
CONFIG_WL_SECTOR_SIZE
,
s_ctx
[
id
]
->
mount_config
.
allocation_unit_size
)
;
vfs_fat_spiflash.c:282
esp_vfs_fat_spiflash_format_cfg_rw_wl()
const
MKFS_PARM
opt
=
{
(
BYTE
)
(
FM_ANY
|
FM_SFD
)
,
(
s_ctx
[
id
]
->
mount_config
.
use_one_fat
?
1
:
2
)
,
0
,
(
sec_num
<=
MIN_REQ_SEC
?
root_dir_entries
:
0
)
,
alloc_unit_size
}
;
vfs_fat_spiflash.c:290
esp_vfs_fat_spiflash_format_cfg_rw_wl()
esp_err_t
err
=
s_f_mount_rw
(
s_ctx
[
id
]
->
fs
,
drv
,
&
s_ctx
[
id
]
->
mount_config
,
NULL
,
sec_num
)
;
vfs_fat_spiflash.c:298
esp_vfs_fat_spiflash_format_cfg_rw_wl()
esp_vfs_fat_spiflash_unmount_rw_wl
(
base_path
,
s_ctx
[
id
]
->
wlhandle
)
;
vfs_fat_spiflash.c:304
esp_vfs_fat_spiflash_format_cfg_rw_wl()
ff_diskio_unregister
(
s_ctx
[
id
]
->
pdrv
)
;
vfs_fat_spiflash.c:309
esp_vfs_fat_spiflash_format_cfg_rw_wl()
ff_diskio_clear_pdrv_wl
(
s_ctx
[
id
]
->
wlhandle
)
;
vfs_fat_spiflash.c:310
esp_vfs_fat_spiflash_format_cfg_rw_wl()
wl_unmount
(
s_ctx
[
id
]
->
wlhandle
)
;
vfs_fat_spiflash.c:311
esp_vfs_fat_spiflash_format_cfg_rw_wl()
free
(
s_ctx
[
id
]
)
;
vfs_fat_spiflash.c:313
esp_vfs_fat_spiflash_format_cfg_rw_wl()
s_ctx
[
id
]
=
NULL
;
vfs_fat_spiflash.c:314
esp_vfs_fat_spiflash_format_cfg_rw_wl()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
s_ctx
is read by 7 functions:
All items filtered out
s_ctx
s_get_context_id_by_label()
s_get_context_id_by_wl_handle()
s_get_unused_context_id()
get_vfs_fat_spiflash_ctx()
esp_vfs_fat_spiflash_mount_rw_wl()
esp_vfs_fat_spiflash_unmount_rw_wl()
esp_vfs_fat_spiflash_format_cfg_rw_wl()
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