FreeRTOS
pvPortMalloc()
is only used within FreeRTOS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Raspberry Pi Pico SDK and Examples
FreeRTOS
pvPortMalloc()
pvPortMalloc() function
Syntax
Show:
Summary
Declaration
Definition
from
portable.h:181
void
*
pvPortMalloc
(
size_t
xWantedSize
)
;
Implemented in
heap_4.c:173
Arguments
Argument
xWantedSize
Examples
References
from
examples
Code
Location
Referrer
void
*
pvPortMalloc
(
size_t
xWantedSize
)
heap_4.c:173
void
*
pvPortMalloc
(
size_t
xWantedSize
)
PRIVILEGED_FUNCTION
;
portable.h:181
pxEventBits
=
(
EventGroup_t
*
)
pvPortMalloc
(
sizeof
(
EventGroup_t
)
)
;
event_groups.c:154
xEventGroupCreate()
pv
=
pvPortMalloc
(
xNum
*
xSize
)
;
heap_4.c:438
pvPortCalloc()
pxNewQueue
=
(
Queue_t
*
)
pvPortMalloc
(
sizeof
(
Queue_t
)
+
xQueueSizeInBytes
)
;
queue.c:526
xQueueGenericCreate()
pvAllocatedMemory
=
pvPortMalloc
(
xBufferSizeBytes
+
sizeof
(
StreamBuffer_t
)
)
;
stream_buffer.c:385
xStreamBufferGenericCreate()
pxStack
=
pvPortMallocStack
(
(
(
(
size_t
)
uxStackDepth
)
*
sizeof
(
StackType_t
)
)
)
;
tasks.c:1672
prvCreateTask()
pxNewTCB
=
(
TCB_t
*
)
pvPortMalloc
(
sizeof
(
TCB_t
)
)
;
tasks.c:1680
prvCreateTask()
pxNewTimer
=
(
Timer_t
*
)
pvPortMalloc
(
sizeof
(
Timer_t
)
)
;
timers.c:349
xTimerCreate()
Call Tree
from
examples
pvPortMalloc()
is called by 6 functions and calls 4 functions:
pvPortCalloc()
xEventGroupCreate()
xQueueGenericCreate()
xStreamBufferGenericCreate()
prvCreateTask()
xTimerCreate()
All items filtered out
pvPortMalloc()
vTaskSuspendAll()
xTaskResumeAll()
prvHeapInit()
__assert_func()
All items filtered out
Data Use
from
examples
pvPortMalloc()
reads 9 variables and writes 5 variables:
A_BLOCK_LINK::pxNextFreeBlock
A_BLOCK_LINK::xBlockSize
xHeapStructSize
xStart
pxEnd
xFreeBytesRemaining
xMinimumEverFreeBytesRemaining
xNumberOfSuccessfulAllocations
ucHeap
All items filtered out
pvPortMalloc()
A_BLOCK_LINK::pxNextFreeBlock
A_BLOCK_LINK::xBlockSize
xFreeBytesRemaining
xMinimumEverFreeBytesRemaining
xNumberOfSuccessfulAllocations
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