ESP-IDF
spiffs_object_truncate()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
spiffs_object_truncate()
spiffs_object_truncate() function
Syntax
Show:
Summary
Declaration
Definition
from
spiffs_nucleus.h:733
s32_t
spiffs_object_truncate
(
spiffs_fd
*
fd
,
u32_t
new_len
,
u8_t
remove_object
)
;
Implemented in
spiffs_nucleus.c:1739
Arguments
Argument
Declared as
fd
spiffs_fd
*
new_len
u32_t
remove_object
u8_t
Related Functions
Found 15 other functions taking a
spiffs_fd
argument:
Function
spiffs_object_update_index_hdr()
spiffs_fd_get()
spiffs_page_index_check()
spiffs_object_open_by_page()
spiffs_fd_find_new()
spiffs_populate_ix_map()
spiffs_hydro_write()
spiffs_page_data_check()
spiffs_object_read()
spiffs_cache_page_get_by_fd()
spiffs_object_append()
spiffs_object_modify()
spiffs_cache_page_allocate_by_fd()
spiffs_update_ix_map()
spiffs_object_open_by_id()
Examples
References
from
examples
Code
Location
Referrer
s32_t
spiffs_object_truncate
(
spiffs_nucleus.c:1739
s32_t
spiffs_object_truncate
(
spiffs_nucleus.h:733
res
=
spiffs_object_truncate
(
fd
,
0
,
0
)
;
spiffs_hydrogen.c:275
SPIFFS_open()
res
=
spiffs_object_truncate
(
fd
,
0
,
0
)
;
spiffs_hydrogen.c:308
SPIFFS_open_by_dirent()
res
=
spiffs_object_truncate
(
fd
,
0
,
0
)
;
spiffs_hydrogen.c:355
SPIFFS_open_by_page()
res
=
spiffs_object_truncate
(
fd
,
0
,
1
)
;
spiffs_hydrogen.c:681
SPIFFS_remove()
res
=
spiffs_object_truncate
(
fd
,
0
,
1
)
;
spiffs_hydrogen.c:717
SPIFFS_fremove()
res
=
spiffs_object_truncate
(
fd
,
new_size
,
0
)
;
spiffs_hydrogen.c:757
SPIFFS_ftruncate()
Call Tree
from
examples
spiffs_object_truncate()
is called by 6 functions and calls 12 functions:
SPIFFS_open()
SPIFFS_open_by_dirent()
SPIFFS_open_by_page()
SPIFFS_remove()
SPIFFS_fremove()
SPIFFS_ftruncate()
All items filtered out
spiffs_object_truncate()
spiffs_obj_lu_find_id_and_span()
spiffs_page_allocate_data()
spiffs_page_move()
spiffs_page_delete()
spiffs_object_update_index_hdr()
spiffs_cb_object_event()
spiffs_phys_rd()
spiffs_phys_wr()
spiffs_phys_cpy()
spiffs_gc_check()
spiffs_page_index_check()
spiffs_page_data_check()
All items filtered out
Data Use
from
examples
spiffs_object_truncate()
reads 13 variables and writes 7 variables:
spiffs_config::phys_addr
spiffs_config::log_page_size
spiffs_t::cfg
spiffs_t::work
spiffs_fd::fs
spiffs_fd::file_nbr
spiffs_fd::obj_id
spiffs_fd::size
spiffs_fd::objix_hdr_pix
spiffs_page_header::span_ix
spiffs_page_header::flags
spiffs_page_object_ix_header::p_hdr
spiffs_page_object_ix::p_hdr
All items filtered out
spiffs_object_truncate()
spiffs_fd::size
spiffs_fd::cursor_objix_pix
spiffs_fd::cursor_objix_spix
spiffs_fd::offset
spiffs_page_header::obj_id
spiffs_page_header::span_ix
spiffs_page_header::flags
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