Compute resource manager
Compute resource manager API
VTCM query API

Functions

static int HAP_compute_res_query_VTCM (unsigned int application_id, unsigned int *total_block_size, compute_res_vtcm_page_t *total_block_layout, unsigned int *avail_block_size, compute_res_vtcm_page_t *avail_block_layout)
 

Detailed Description

Function Documentation

◆ HAP_compute_res_query_VTCM()

static int HAP_compute_res_query_VTCM ( unsigned int  application_id,
unsigned int *  total_block_size,
compute_res_vtcm_page_t total_block_layout,
unsigned int *  avail_block_size,
compute_res_vtcm_page_t avail_block_layout 
)
inlinestatic

Returns the total and available VTCM sizes and page layouts for the given application type.

Supported starting with Lahaina.

Parameters
[in]application_idApplication ID used to specify the VTCM partition.
[out]total_block_sizeTotal VTCM size assigned for this application type.
[out]total_block_layoutTotal VTCM size (total_block_size) represented in pages.
[out]avail_block_sizeLargest contiguous memory chunk available in VTCM for this application type.
[out]avail_block_layoutAvailable block size (avail_block_size) represented in pages.
Returns
0 upon success.
Nonzero upon failure.
HAP_COMPUTE_RES_NOT_SUPPORTED when not supported.