Creating custom pool allocators

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

How to create a custom allocator for pools

To implement a customized version of a DSP/BIOS or DSP/LINK Pool allocator, the following needs to be considered:

A good approach for writing a specific pool is to use an existing one for reference.

Refer for example at the DSPLink Shared Memory Allocator POOL (SMAPOOL) as an example implementation.

In DSP Link there are also documents which explain the architecture of the various modules.

Links

You can download DSP/Link form here: http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/link/index.html

Here you have also some FAQs on SMAPOOL:

More details on the BIOS POOL module

Regarding the POOL_Obj:

open: called during boot after the initFxn is called. It is passed the object and the parameters from the POOL_Obj
close: currently not called within BIOS
alloc: called within MSGQ_alloc()
free: called within MSGQ_free()
Note: open and alloc will return an Int status value that is either SYS_OK or some SYS_* error value; all other functions have a return type of Void and thus should always succeed.
Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox