FreeRTOS + 0/2 examples
CodeScope will show references to pvPortMalloc() from the following samples and libraries:
 
Symbols
loading...
Files
loading...

pvPortMalloc() function

Syntax

void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
Implemented in heap_4.c:115

Arguments

xSize

Examples

pvPortMalloc() is referenced by 2 libraries and example projects.

References

LocationReferrerText
heap_3.c:58
void *pvPortMalloc( size_t xWantedSize )
heap_4.c:115
void *pvPortMalloc( size_t xWantedSize )
portable.h:163
void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
cmsis_os.c:891osPoolCreate()
thePool = pvPortMalloc(sizeof(os_pool_cb_t));
cmsis_os.c:900osPoolCreate()
thePool->markers = pvPortMalloc(pool_def->pool_sz);
cmsis_os.c:904osPoolCreate()
thePool->pool = pvPortMalloc(pool_def->pool_sz * itemSize);
cmsis_os.c:1177osMailCreate()
*(queue_def->cb) = pvPortMalloc(sizeof(struct os_mailQ_cb));
event_groups.c:162xEventGroupCreate()
pxEventBits = ( EventGroup_t * ) pvPortMalloc( sizeof( EventGroup_t ) ); /*lint !e9087 !e9079 see comment above. */
mpu_wrappers.c:903MPU_pvPortMalloc()
pvReturn = pvPortMalloc( xSize );
queue.c:390xQueueGenericCreate()
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
stream_buffer.c:258xStreamBufferGenericCreate()
pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */
tasks.c:696xTaskCreateRestricted()
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) );
tasks.c:773xTaskCreate()
pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
tasks.c:778xTaskCreate()
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
tasks.c:4419vTaskList()
pxTaskStatusArray = pvPortMalloc( uxCurrentNumberOfTasks * sizeof( TaskStatus_t ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation allocates a struct that has the alignment requirements of a pointer. */
timers.c:290xTimerCreate()
pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of Timer_t is always a pointer to the timer's mame. */

Call Tree

Data read by pvPortMalloc()
Data written by pvPortMalloc()
pvPortMalloc()::xWantedSize
pvPortMalloc()::pxBlock
pvPortMalloc()::pxPreviousBlock
pvPortMalloc()::pxNewBlockLink
pvPortMalloc()::pvReturn
all items filtered out
pvPortMalloc()
pvPortMalloc()::xWantedSize
pvPortMalloc()::pxBlock
pvPortMalloc()::pxPreviousBlock
pvPortMalloc()::pxNewBlockLink
pvPortMalloc()::pvReturn
all items filtered out
Type of pvPortMalloc()
pvPortMalloc()
all items filtered out