FatFs
unlock_fs()
is only used within FatFs.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
FatFs
unlock_fs()
unlock_fs() function
Syntax
from
ff.c:750
static
void
unlock_fs
(
FATFS
*
fs
,
FRESULT
res
)
;
Arguments
fs
res
References
Location
Referrer
Text
ff.c:751
void
unlock_fs
(
ff.c:3230
validate()
unlock_fs
(
obj
->
fs
,
FR_OK
)
;
ff.c:3298
f_mount()
LEAVE_FF
(
fs
,
res
)
;
ff.c:3331
f_open()
INIT_NAMBUF
(
fs
)
;
ff.c:3501
f_open()
LEAVE_FF
(
fs
,
res
)
;
ff.c:3528
f_read()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
/* Check validity */
ff.c:3529
f_read()
if
(
!
(
fp
->
flag
&
FA_READ
)
)
LEAVE_FF
(
fs
,
FR_DENIED
)
;
/* Check access mode */
ff.c:3550
f_read()
if
(
clst
<
2
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3551
f_read()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3555
f_read()
if
(
!
sect
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3562
f_read()
if
(
disk_read
(
fs
->
drv
,
rbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3581
f_read()
if
(
disk_write
(
fs
->
drv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3585
f_read()
if
(
disk_read
(
fs
->
drv
,
fp
->
buf
,
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:3600
f_read()
LEAVE_FF
(
fs
,
FR_OK
)
;
ff.c:3627
f_write()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
/* Check validity */
ff.c:3628
f_write()
if
(
!
(
fp
->
flag
&
FA_WRITE
)
)
LEAVE_FF
(
fs
,
FR_DENIED
)
;
/* Check access mode */
ff.c:3656
f_write()
if
(
clst
==
1
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3657
f_write()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3665
f_write()
if
(
disk_write
(
fs
->
drv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3670
f_write()
if
(
!
sect
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:3677
f_write()
if
(
disk_write
(
fs
->
drv
,
wbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3703
f_write()
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3722
f_write()
LEAVE_FF
(
fs
,
FR_OK
)
;
ff.c:3750
f_sync()
if
(
disk_write
(
fs
->
drv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
LEAVE_FF
(
fs
,
FR_DISK_ERR
)
;
ff.c:3801
f_sync()
LEAVE_FF
(
fs
,
res
)
;
ff.c:3835
f_close()
unlock_fs
(
fs
,
FR_OK
)
;
/* Unlock volume */
ff.c:4021
f_lseek()
if
(
res
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
ff.c:4036
f_lseek()
if
(
cl
<=
1
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4037
f_lseek()
if
(
cl
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4056
f_lseek()
if
(
!
dsc
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4062
f_lseek()
if
(
disk_write
(
fs
->
drv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4066
f_lseek()
if
(
disk_read
(
fs
->
drv
,
fp
->
buf
,
dsc
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Load current sector */
ff.c:4097
f_lseek()
if
(
clst
==
1
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4098
f_lseek()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4122
f_lseek()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4123
f_lseek()
if
(
clst
<=
1
||
clst
>=
fs
->
n_fatent
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4129
f_lseek()
if
(
!
nsect
)
ABORT
(
fs
,
FR_INT_ERR
)
;
ff.c:4142
f_lseek()
if
(
disk_write
(
fs
->
drv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4146
f_lseek()
if
(
disk_read
(
fs
->
drv
,
fp
->
buf
,
nsect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:4152
f_lseek()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4180
f_opendir()
INIT_NAMBUF
(
fs
)
;
ff.c:4222
f_opendir()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4252
f_closedir()
unlock_fs
(
fs
,
FR_OK
)
;
/* Unlock volume */
ff.c:4280
f_readdir()
INIT_NAMBUF
(
fs
)
;
ff.c:4291
f_readdir()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4366
f_stat()
INIT_NAMBUF
(
dj
.
obj
.
fs
)
;
ff.c:4378
f_stat()
LEAVE_FF
(
dj
.
obj
.
fs
,
res
)
;
ff.c:4465
f_getfree()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4485
f_truncate()
if
(
res
!=
FR_OK
||
(
res
=
(
FRESULT
)
fp
->
err
)
!=
FR_OK
)
LEAVE_FF
(
fs
,
res
)
;
ff.c:4486
f_truncate()
if
(
!
(
fp
->
flag
&
FA_WRITE
)
)
LEAVE_FF
(
fs
,
FR_DENIED
)
;
/* Check access mode */
ff.c:4512
f_truncate()
if
(
res
!=
FR_OK
)
ABORT
(
fs
,
res
)
;
ff.c:4515
f_truncate()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4543
f_unlink()
INIT_NAMBUF
(
fs
)
;
ff.c:4610
f_unlink()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4637
f_mkdir()
INIT_NAMBUF
(
fs
)
;
ff.c:4707
f_mkdir()
LEAVE_FF
(
fs
,
res
)
;
ff.c:4734
f_rename()
INIT_NAMBUF
(
fs
)
;
ff.c:4810
f_rename()
LEAVE_FF
(
fs
,
res
)
;
Call Tree
Functions calling
unlock_fs()
Functions called by
unlock_fs()
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()
all items filtered out
unlock_fs()
ff_rel_grant()
all items filtered out
Data read by
unlock_fs()
FRESULT::FR_INVALID_DRIVE
FRESULT::FR_NOT_ENABLED
FRESULT::FR_TIMEOUT
FATFS::sobj
unlock_fs()::fs
unlock_fs()::res
all items filtered out
unlock_fs()