ESP-IDF
s_ram_descriptor
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
s_ram_descriptor
s_ram_descriptor variable
Syntax
Show:
Summary
Declaration
from
esp_himem.c:75
static
ramblock_t
*
s_ram_descriptor
=
NULL
;
Examples
References
from
examples
Code
Location
Referrer
static
ramblock_t
*
s_ram_descriptor
=
NULL
;
esp_himem.c:75
if
(
!
s_ram_descriptor
[
i
]
.
is_alloced
)
{
esp_himem.c:125
esp_himem_get_free_size()
ESP_RETURN_ON_FALSE
(
s_ram_descriptor
==
NULL
,
,
TAG
,
"already initialized"
)
;
//Looks weird; last arg is empty so it expands to 'return ;'
esp_himem.c:143
esp_himem_init()
s_ram_descriptor
=
calloc
(
s_ramblockcnt
,
sizeof
(
ramblock_t
)
)
;
esp_himem.c:154
esp_himem_init()
if
(
s_ram_descriptor
==
NULL
||
s_range_descriptor
==
NULL
)
{
esp_himem.c:156
esp_himem_init()
free
(
s_ram_descriptor
)
;
esp_himem.c:158
esp_himem_init()
if
(
!
s_ram_descriptor
[
i
]
.
is_alloced
)
{
esp_himem.c:173
allocate_blocks()
s_ram_descriptor
[
blocks_out
[
i
]
]
.
is_alloced
=
true
;
esp_himem.c:181
allocate_blocks()
assert
(
s_ram_descriptor
[
blocks_out
[
i
]
]
.
is_mapped
==
false
)
;
esp_himem.c:182
allocate_blocks()
ESP_RETURN_ON_FALSE
(
!
s_ram_descriptor
[
handle
->
block
[
i
]
]
.
is_mapped
,
ESP_ERR_INVALID_ARG
,
TAG
,
"block in range still mapped"
)
;
esp_himem.c:227
esp_himem_free()
s_ram_descriptor
[
handle
->
block
[
i
]
]
.
is_alloced
=
false
;
esp_himem.c:232
esp_himem_free()
ESP_RETURN_ON_FALSE
(
s_ram_descriptor
!=
NULL
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Himem not available!"
)
;
esp_himem.c:244
esp_himem_alloc_map_range()
ESP_RETURN_ON_FALSE
(
s_ram_descriptor
!=
NULL
,
ESP_ERR_INVALID_STATE
,
TAG
,
"Himem not available!"
)
;
esp_himem.c:304
esp_himem_map()
ESP_RETURN_ON_FALSE
(
!
s_ram_descriptor
[
handle
->
block
[
i
+
ram_block
]
]
.
is_mapped
,
ESP_ERR_INVALID_STATE
,
TAG
,
"ram already mapped"
)
;
esp_himem.c:315
esp_himem_map()
s_ram_descriptor
[
handle
->
block
[
i
+
ram_block
]
]
.
is_mapped
=
1
;
esp_himem.c:323
esp_himem_map()
s_ram_descriptor
[
ramblock
]
.
is_mapped
=
0
;
esp_himem.c:353
esp_himem_unmap()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
s_ram_descriptor
is written by 1 function and is read by 7 functions:
esp_himem_init()
All items filtered out
s_ram_descriptor
esp_himem_get_free_size()
esp_himem_init()
allocate_blocks()
esp_himem_free()
esp_himem_alloc_map_range()
esp_himem_map()
esp_himem_unmap()
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