HeapBufMP_Params Struct Reference

HeapBufMP_Params Struct Reference

Structure defining parameters for the HeapBufMP module. More...

#include <HeapBufMP.h>

Data Fields

String name
UInt16 regionId
SizeT blockSize
UInt numBlocks
SizeT align
Bool exact
GateMP_Handle gate

Detailed Description

Structure defining parameters for the HeapBufMP module.


Field Documentation

Name of this instance.

The name (if not NULL) must be unique among all HeapBufMP instances in the entire system. When creating a new heap, it is necessary to supply an instance name.

Shared region ID

The index corresponding to the shared region from which shared memory will be allocated.

Size (in MAUs) of each block.

HeapBufMP will round the blockSize up to the nearest multiple of the alignment, so the actual blockSize may be larger. When creating a HeapBufMP dynamically, this needs to be taken into account to determine the proper buffer size to pass in.

Required parameter.

The default size of the blocks is 0 MAUs.

Number of fixed-size blocks.

This is a required parameter for all new HeapBufMP instances.

Alignment (in MAUs) of each block.

The alignment must be a power of 2. If the value 0 is specified, the value will be changed to meet minimum structure alignment requirements and the cache alignment size of the region in which the heap will be placed. Therefore, the actual alignment may be larger.

The default alignment is 0.

Use exact matching

Setting this flag will allow allocation only if the requested size is equal to (rather than less than or equal to) the buffer's block size.

GateMP used for critical region management of the shared memory

Using the default value of NULL will result in use of the GateMP system gate for context protection.


The documentation for this struct was generated from the following file:

Copyright 2010, Texas Instruments Incorporated
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值