FatFS
create_chain()
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (5/5)...
FatFS
diskio
port
src
diskio.h
ff.c
FatFs
Fsid
ExCvt
ld_word()
ld_dword()
st_word()
st_dword()
dbc_1st()
dbc_2nd()
lock_volume()
unlock_volume()
sync_window()
move_window()
sync_fs()
clst2sect()
get_fat()
put_fat()
remove_chain()
create_chain()
dir_clear()
dir_sdi()
dir_next()
dir_alloc()
ld_clust()
st_clust()
dir_read()
dir_find()
dir_register()
dir_remove()
get_fileinfo()
create_name()
follow_path()
get_ldnumber()
check_fs()
find_volume()
mount_volume()
validate()
f_mount()
f_open()
f_read()
f_write()
f_sync()
f_close()
f_lseek()
f_opendir()
f_closedir()
f_readdir()
f_stat()
f_getfree()
f_truncate()
f_unlink()
f_mkdir()
f_rename()
f_chmod()
f_utime()
f_expand()
create_partition()
f_mkfs()
f_fdisk()
ff.h
ffconf.h
ffunicode.c
vfs
ESP-IDF
lwIP
FreeRTOS
cJSON
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
create_chain()
create_chain() function
Syntax
Show:
Summary
Declaration
from
ff.c:1529
static
DWORD
create_chain
(
FFOBJID
*
obj
,
DWORD
clst
)
;
Arguments
Argument
Declared as
obj
FFOBJID
*
clst
DWORD
Related Functions
Found 3 other functions taking a
FFOBJID
argument:
Function
get_fat()
validate()
remove_chain()
Examples
References
from
examples
Code
Location
Referrer
static
DWORD
create_chain
(
/* 0:No free cluster, 1:Internal error, 0xFFFFFFFF:Disk error, >=2:New cluster# */
ff.c:1529
clst
=
create_chain
(
&
dp
->
obj
,
dp
->
clust
)
;
/* Allocate a cluster */
ff.c:1781
dir_next()
clst
=
create_chain
(
&
fp
->
obj
,
0
)
;
/* create a new cluster chain */
ff.c:4083
f_write()
clst
=
create_chain
(
&
fp
->
obj
,
fp
->
clust
)
;
/* Follow or stretch cluster chain on the FAT */
ff.c:4092
f_write()
clst
=
create_chain
(
&
fp
->
obj
,
0
)
;
ff.c:4572
f_lseek()
clst
=
create_chain
(
&
fp
->
obj
,
clst
)
;
/* Follow chain with forceed stretch */
ff.c:4589
f_lseek()
dcl
=
create_chain
(
&
sobj
,
0
)
;
/* Allocate a cluster for the new directory */
ff.c:5120
f_mkdir()
Call Tree
from
examples
create_chain()
is called by 4 functions and calls 2 functions:
dir_next()
f_write()
f_lseek()
f_mkdir()
All items filtered out
create_chain()
get_fat()
put_fat()
All items filtered out
Data Use
from
examples
create_chain()
reads 7 variables and writes 3 variables:
FRESULT::FR_OK
FRESULT::FR_DISK_ERR
FATFS::fsi_flag
FATFS::last_clst
FATFS::free_clst
FATFS::n_fatent
FFOBJID::fs
All items filtered out
create_chain()
FATFS::fsi_flag
FATFS::last_clst
FATFS::free_clst
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