AzureMXChip/MXCHIPAZ3166/core/lib/threadx/common_modules/module_manager/src/txm_module_manager_object_pool_create.c
UINT  _txm_module_manager_object_pool_create(VOID *object_memory, ULONG object_memory_size)
{

    /* Create a byte pool for allocating RAM areas for modules.  */ 
    _tx_byte_pool_create(&_txm_module_manager_object_pool, "Module Manager Object Pool", object_memory, object_memory_size);

    /* Indicate the module manager object pool has been created.  */
    _txm_module_manager_object_pool_created =  TX_TRUE;
    
    /* Return success.  */
    return(TX_SUCCESS);
}
/**************************************************************************/
/*                                                                        */
/*  FUNCTION                                               RELEASE        */
/*                                                                        */
/*    txm_module_manager_object_pool_create               PORTABLE C      */
/*                                                           6.1          */
/*  AUTHOR                                                                */
/*                                                                        */
/*    Scott Larson, Microsoft Corporation                                 */
/*                                                                        */
/*  DESCRIPTION                                                           */
/*                                                                        */
/*    This function creates an object pool for the module manager,        */
/*    which is used by modules to allocate system resources outside       */
/*    the memory area of the module. This is especially useful in         */
/*    memory protection.                                                  */
/*                                                                        */
/*  INPUT                                                                 */
/*                                                                        */
/*    object_memory                     Object memory address             */
/*    object_memory_size                Size in bytes of memory area      */
/*                                                                        */
/*  OUTPUT                                                                */
/*                                                                        */
/*    status                            Completion status                 */
/*                                                                        */
/*  CALLS                                                                 */
/*                                                                        */
/*    _tx_byte_pool_create              Create module memory byte pool    */
/*                                                                        */
/*  CALLED BY                                                             */
/*                                                                        */
/*    Application code                                                    */
/*                                                                        */
/*  RELEASE HISTORY                                                       */
/*                                                                        */
/*    DATE              NAME                      DESCRIPTION             */
/*                                                                        */
/*  09-30-2020     Scott Larson             Initial Version 6.1           */
/*                                                                        */
/**************************************************************************/
FUNCTION                                               RELEASE

txm_module_manager_object_pool_create               PORTABLE C
6.1
AUTHOR

Scott Larson, Microsoft Corporation

DESCRIPTION

This function creates an object pool for the module manager,
which is used by modules to allocate system resources outside
the memory area of the module. This is especially useful in
memory protection.

INPUT

object_memory                     Object memory address
object_memory_size                Size in bytes of memory area

OUTPUT

status                            Completion status

CALLS

_tx_byte_pool_create              Create module memory byte pool

CALLED BY

Application code

RELEASE HISTORY

DATE              NAME                      DESCRIPTION

09-30-2020     Scott Larson             Initial Version 6.1
FUNCTION RELEASE txm_module_manager_object_pool_create PORTABLE C 6 . 1 AUTHOR Scott Larson Microsoft Corporation DESCRIPTION This function creates an object pool for the module manager which is used by modules to allocate system resources outside the memory area of the module . This is especially useful in memory protection . INPUT object_memory Object memory address object_memory_size Size in bytes of memory area OUTPUT status Completion status CALLS _tx_byte_pool_create Create module memory byte pool CALLED BY Application code RELEASE HISTORY DATE NAME DESCRIPTION 09 - 30 - 2020 Scott Larson Initial Version 6 . 1
UINT  _txm_module_manager_object_pool_create(VOID *object_memory, ULONG object_memory_size)
{
    _tx_byte_pool_create(&_txm_module_manager_object_pool, "Module Manager Object Pool", object_memory, object_memory_size);
    _txm_module_manager_object_pool_created =  TX_TRUE;
    return(TX_SUCCESS);
}
UINT _txm_module_manager_object_pool_create ( VOID * object_memory , ULONG object_memory_size ) { _tx_byte_pool_create ( & _txm_module_manager_object_pool , " " , object_memory , object_memory_size ) ; _txm_module_manager_object_pool_created = TX_TRUE ; return ( TX_SUCCESS ) ; }
FUNCTION                                               RELEASE
FUNCTION RELEASE
/* Create a byte pool for allocating RAM areas for modules.  */ /* Indicate the module manager object pool has been created.  */ /* Return success.  */