diff options
| author | Yuxin Zhou <[email protected]> | 2022-01-29 00:24:03 +0000 |
|---|---|---|
| committer | Yuxin Zhou <[email protected]> | 2022-01-29 00:24:03 +0000 |
| commit | f7f0957188d48ec5278107dc8fbd2de747fda1b8 (patch) | |
| tree | fee9f4baf5a6a8bb944c5de8ad10fda300027d26 /common_modules/module_manager/src/txm_module_manager_object_allocate.c | |
| parent | b216ceb25e2b6ae1ea83c1ae91d114a6fc2fc4ec (diff) | |
Release 6.1.10
Diffstat (limited to 'common_modules/module_manager/src/txm_module_manager_object_allocate.c')
| -rw-r--r-- | common_modules/module_manager/src/txm_module_manager_object_allocate.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common_modules/module_manager/src/txm_module_manager_object_allocate.c b/common_modules/module_manager/src/txm_module_manager_object_allocate.c index 829dbb1f..0482fbcf 100644 --- a/common_modules/module_manager/src/txm_module_manager_object_allocate.c +++ b/common_modules/module_manager/src/txm_module_manager_object_allocate.c @@ -28,7 +28,7 @@ /* */ /* FUNCTION RELEASE */ /* */ -/* _txm_module_manager_object_allocate PORTABLE C */ +/* _txm_module_manager_object_allocate PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ @@ -36,16 +36,16 @@ /* */ /* DESCRIPTION */ /* */ -/* This function allocates memory for an object from the memory pool */ -/* supplied to txm_module_manager_initialize. */ +/* This function allocates memory for an object from the memory pool */ +/* supplied to txm_module_manager_initialize. */ /* */ /* INPUT */ /* */ -/* object_ptr Destination of object pointer on */ -/* successful allocation */ -/* object_size Size in bytes of the object to be */ -/* allocated */ -/* module_instance The module instance that the */ +/* object_ptr Destination of object pointer on */ +/* successful allocation */ +/* object_size Size in bytes of the object to be */ +/* allocated */ +/* module_instance The module instance that the */ /* object belongs to */ /* */ /* OUTPUT */ @@ -66,7 +66,7 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 09-30-2020 Scott Larson Initial Version 6.1 */ +/* 09-30-2020 Scott Larson Initial Version 6.1 */ /* */ /**************************************************************************/ UINT _txm_module_manager_object_allocate(VOID **object_ptr_ptr, ULONG object_size, TXM_MODULE_INSTANCE *module_instance) @@ -98,7 +98,7 @@ UINT return_value; /* Allocate the object requested by the module - adding an extra ULONG in order to store the module instance pointer. */ - return_value = (ULONG) _txe_byte_allocate(&_txm_module_manager_object_pool, (VOID **) &object_ptr, + return_value = (ULONG) _txe_byte_allocate(&_txm_module_manager_object_pool, (VOID **) &object_ptr, (ULONG) (object_size + sizeof(TXM_MODULE_ALLOCATED_OBJECT)), TX_NO_WAIT); /* Determine if the request was successful. */ |
