FatFS
ff_memfree()
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
ff_memfree()
ff_memfree() function
Syntax
Show:
Summary
Declaration
Definition
from
ff.h:384
void
ff_memfree
(
void
*
mblock
)
;
Implemented in
ffsystem.c:31
Arguments
Argument
#0
Examples
References
from
examples
Code
Location
Referrer
void
ff_memfree
(
ffsystem.c:31
void
ff_memfree
(
void
*
mblock
)
;
/* Free memory block */
ff.h:384
void
ff_memfree
(
void
*
)
;
ffconf.h:357
ff_memfree
(
ibuf
)
;
ff.c:1684
dir_clear()
FREE_NAMBUF
(
)
;
ff.c:3924
f_open()
FREE_NAMBUF
(
)
;
ff.c:4689
f_opendir()
FREE_NAMBUF
(
)
;
ff.c:4757
f_readdir()
FREE_NAMBUF
(
)
;
ff.c:4844
f_stat()
FREE_NAMBUF
(
)
;
ff.c:5084
f_unlink()
FREE_NAMBUF
(
)
;
ff.c:5168
f_mkdir()
FREE_NAMBUF
(
)
;
ff.c:5273
f_rename()
FREE_NAMBUF
(
)
;
ff.c:5325
f_chmod()
FREE_NAMBUF
(
)
;
ff.c:5370
f_utime()
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Load MBR */
ff.c:5991
f_mkfs()
if
(
ld_word
(
buf
+
BS_55AA
)
!=
0xAA55
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if MBR is valid */
ff.c:5992
f_mkfs()
if
(
ipart
>
4
||
pte
[
PTE_System
]
==
0
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* No partition? */
ff.c:6019
f_mkfs()
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_COUNT
,
&
sz_vol
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6024
f_mkfs()
if
(
sz_vol
<
MIN_FAT12_SEC_VOL
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if volume size is >= MIN_FAT12_SEC_VOLs */
ff.c:6041
f_mkfs()
if
(
sz_vol
<
(
MIN_FAT12_SEC_VOL
+
1
)
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Check if volume size is >= (MIN_FAT12_SEC_VOL+1)s */
ff.c:6043
f_mkfs()
if
(
!
(
fsopt
&
FM_FAT
)
)
LEAVE_MKFS
(
FR_INVALID_PARAMETER
)
;
/* no-FAT? */
ff.c:6063
f_mkfs()
if
(
n_clst
<=
MAX_FAT16
||
n_clst
>
MAX_FAT32
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6243
f_mkfs()
if
(
sz_vol
<
b_data
+
pau
*
MIN_FAT12_DATA_SEC
-
b_vol
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Too small volume? */
ff.c:6275
f_mkfs()
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6280
f_mkfs()
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6292
f_mkfs()
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
ff.c:6296
f_mkfs()
if
(
fsty
==
FS_FAT12
&&
n_clst
>
MAX_FAT12
)
LEAVE_MKFS
(
FR_MKFS_ABORTED
)
;
/* Too many clusters for FAT12 */
ff.c:6299
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
b_vol
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it to the VBR sector */
ff.c:6343
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6372
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6382
f_mkfs()
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Read the MBR */
ff.c:6406
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it back to the MBR */
ff.c:6408
f_mkfs()
if
(
res
!=
FR_OK
)
LEAVE_MKFS
(
res
)
;
ff.c:6414
f_mkfs()
if
(
disk_ioctl
(
pdrv
,
CTRL_SYNC
,
0
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6418
f_mkfs()
LEAVE_MKFS
(
FR_OK
)
;
ff.c:6420
f_mkfs()
LEAVE_MKFS
(
res
)
;
ff.c:6454
f_fdisk()
ff_memfree
(
temp_file_path
)
;
vfs_fat.c:951
vfs_fat_readdir()
ff_memfree
(
buf
)
;
vfs_fat.c:1119
f_write_zero_mem()
Call Tree
from
examples
ff_memfree()
is called by 14 functions and calls 1 function:
dir_clear()
f_open()
f_opendir()
f_readdir()
f_stat()
f_unlink()
f_mkdir()
f_rename()
f_chmod()
f_utime()
f_mkfs()
f_fdisk()
vfs_fat_readdir()
f_write_zero_mem()
All items filtered out
ff_memfree()
free()
All items filtered out
Data Use
from
examples
All items filtered out
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