summaryrefslogtreecommitdiff
path: root/common_modules
diff options
context:
space:
mode:
authorYuxin Zhou <[email protected]>2022-01-29 00:24:03 +0000
committerYuxin Zhou <[email protected]>2022-01-29 00:24:03 +0000
commitf7f0957188d48ec5278107dc8fbd2de747fda1b8 (patch)
treefee9f4baf5a6a8bb944c5de8ad10fda300027d26 /common_modules
parentb216ceb25e2b6ae1ea83c1ae91d114a6fc2fc4ec (diff)
Release 6.1.10
Diffstat (limited to 'common_modules')
-rw-r--r--common_modules/inc/txm_module.h42
-rw-r--r--common_modules/inc/txm_module_user_sample.h159
-rw-r--r--common_modules/module_lib/src/txm_block_allocate.c74
-rw-r--r--common_modules/module_lib/src/txm_block_pool_create.c82
-rw-r--r--common_modules/module_lib/src/txm_block_pool_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_block_pool_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_block_pool_performance_info_get.c80
-rw-r--r--common_modules/module_lib/src/txm_block_pool_performance_system_info_get.c76
-rw-r--r--common_modules/module_lib/src/txm_block_pool_prioritize.c62
-rw-r--r--common_modules/module_lib/src/txm_block_release.c64
-rw-r--r--common_modules/module_lib/src/txm_byte_allocate.c78
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_create.c80
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_performance_info_get.c94
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_performance_system_info_get.c90
-rw-r--r--common_modules/module_lib/src/txm_byte_pool_prioritize.c62
-rw-r--r--common_modules/module_lib/src/txm_byte_release.c66
-rw-r--r--common_modules/module_lib/src/txm_event_flags_create.c72
-rw-r--r--common_modules/module_lib/src/txm_event_flags_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_event_flags_get.c84
-rw-r--r--common_modules/module_lib/src/txm_event_flags_info_get.c84
-rw-r--r--common_modules/module_lib/src/txm_event_flags_performance_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_event_flags_performance_system_info_get.c76
-rw-r--r--common_modules/module_lib/src/txm_event_flags_set.c74
-rw-r--r--common_modules/module_lib/src/txm_event_flags_set_notify.c68
-rw-r--r--common_modules/module_lib/src/txm_module_application_request.c95
-rw-r--r--common_modules/module_lib/src/txm_module_callback_request_thread_entry.c138
-rw-r--r--common_modules/module_lib/src/txm_module_object_allocate.c26
-rw-r--r--common_modules/module_lib/src/txm_module_object_deallocate.c14
-rw-r--r--common_modules/module_lib/src/txm_module_object_pointer_get.c10
-rw-r--r--common_modules/module_lib/src/txm_module_object_pointer_get_extended.c10
-rw-r--r--common_modules/module_lib/src/txm_module_thread_system_suspend.c76
-rw-r--r--common_modules/module_lib/src/txm_mutex_create.c74
-rw-r--r--common_modules/module_lib/src/txm_mutex_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_mutex_get.c68
-rw-r--r--common_modules/module_lib/src/txm_mutex_info_get.c84
-rw-r--r--common_modules/module_lib/src/txm_mutex_performance_info_get.c86
-rw-r--r--common_modules/module_lib/src/txm_mutex_performance_system_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_mutex_prioritize.c62
-rw-r--r--common_modules/module_lib/src/txm_mutex_put.c64
-rw-r--r--common_modules/module_lib/src/txm_queue_create.c76
-rw-r--r--common_modules/module_lib/src/txm_queue_delete.c66
-rw-r--r--common_modules/module_lib/src/txm_queue_flush.c66
-rw-r--r--common_modules/module_lib/src/txm_queue_front_send.c72
-rw-r--r--common_modules/module_lib/src/txm_queue_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_queue_performance_info_get.c84
-rw-r--r--common_modules/module_lib/src/txm_queue_performance_system_info_get.c84
-rw-r--r--common_modules/module_lib/src/txm_queue_prioritize.c62
-rw-r--r--common_modules/module_lib/src/txm_queue_receive.c76
-rw-r--r--common_modules/module_lib/src/txm_queue_send.c72
-rw-r--r--common_modules/module_lib/src/txm_queue_send_notify.c68
-rw-r--r--common_modules/module_lib/src/txm_semaphore_ceiling_put.c70
-rw-r--r--common_modules/module_lib/src/txm_semaphore_create.c72
-rw-r--r--common_modules/module_lib/src/txm_semaphore_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_semaphore_get.c68
-rw-r--r--common_modules/module_lib/src/txm_semaphore_info_get.c82
-rw-r--r--common_modules/module_lib/src/txm_semaphore_performance_info_get.c78
-rw-r--r--common_modules/module_lib/src/txm_semaphore_performance_system_info_get.c74
-rw-r--r--common_modules/module_lib/src/txm_semaphore_prioritize.c62
-rw-r--r--common_modules/module_lib/src/txm_semaphore_put.c64
-rw-r--r--common_modules/module_lib/src/txm_semaphore_put_notify.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_create.c90
-rw-r--r--common_modules/module_lib/src/txm_thread_delete.c66
-rw-r--r--common_modules/module_lib/src/txm_thread_entry_exit_notify.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_identify.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_info_get.c88
-rw-r--r--common_modules/module_lib/src/txm_thread_interrupt_control.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_performance_info_get.c114
-rw-r--r--common_modules/module_lib/src/txm_thread_performance_system_info_get.c114
-rw-r--r--common_modules/module_lib/src/txm_thread_preemption_change.c74
-rw-r--r--common_modules/module_lib/src/txm_thread_priority_change.c74
-rw-r--r--common_modules/module_lib/src/txm_thread_relinquish.c64
-rw-r--r--common_modules/module_lib/src/txm_thread_reset.c66
-rw-r--r--common_modules/module_lib/src/txm_thread_resume.c64
-rw-r--r--common_modules/module_lib/src/txm_thread_sleep.c64
-rw-r--r--common_modules/module_lib/src/txm_thread_stack_error_notify.c72
-rw-r--r--common_modules/module_lib/src/txm_thread_suspend.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_terminate.c68
-rw-r--r--common_modules/module_lib/src/txm_thread_time_slice_change.c72
-rw-r--r--common_modules/module_lib/src/txm_thread_wait_abort.c64
-rw-r--r--common_modules/module_lib/src/txm_time_get.c64
-rw-r--r--common_modules/module_lib/src/txm_time_set.c64
-rw-r--r--common_modules/module_lib/src/txm_timer_activate.c68
-rw-r--r--common_modules/module_lib/src/txm_timer_change.c74
-rw-r--r--common_modules/module_lib/src/txm_timer_create.c82
-rw-r--r--common_modules/module_lib/src/txm_timer_deactivate.c66
-rw-r--r--common_modules/module_lib/src/txm_timer_delete.c68
-rw-r--r--common_modules/module_lib/src/txm_timer_info_get.c80
-rw-r--r--common_modules/module_lib/src/txm_timer_performance_info_get.c86
-rw-r--r--common_modules/module_lib/src/txm_timer_performance_system_info_get.c80
-rw-r--r--common_modules/module_lib/src/txm_trace_buffer_full_notify.c70
-rw-r--r--common_modules/module_lib/src/txm_trace_disable.c62
-rw-r--r--common_modules/module_lib/src/txm_trace_enable.c70
-rw-r--r--common_modules/module_lib/src/txm_trace_event_filter.c64
-rw-r--r--common_modules/module_lib/src/txm_trace_event_unfilter.c64
-rw-r--r--common_modules/module_lib/src/txm_trace_interrupt_control.c64
-rw-r--r--common_modules/module_lib/src/txm_trace_isr_enter_insert.c64
-rw-r--r--common_modules/module_lib/src/txm_trace_isr_exit_insert.c64
-rw-r--r--common_modules/module_lib/src/txm_trace_user_event_insert.c70
-rw-r--r--common_modules/module_manager/inc/txm_module_manager_dispatch.h200
-rw-r--r--common_modules/module_manager/src/txm_module_manager_application_request.c99
-rw-r--r--common_modules/module_manager/src/txm_module_manager_callback_request.c120
-rw-r--r--common_modules/module_manager/src/txm_module_manager_event_flags_notify_trampoline.c98
-rw-r--r--common_modules/module_manager/src/txm_module_manager_file_load.c2
-rw-r--r--common_modules/module_manager/src/txm_module_manager_in_place_load.c74
-rw-r--r--common_modules/module_manager/src/txm_module_manager_initialize.c90
-rw-r--r--common_modules/module_manager/src/txm_module_manager_internal_load.c170
-rw-r--r--common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c15
-rw-r--r--common_modules/module_manager/src/txm_module_manager_maximum_module_priority_set.c100
-rw-r--r--common_modules/module_manager/src/txm_module_manager_memory_load.c2
-rw-r--r--common_modules/module_manager/src/txm_module_manager_object_allocate.c20
-rw-r--r--common_modules/module_manager/src/txm_module_manager_object_deallocate.c34
-rw-r--r--common_modules/module_manager/src/txm_module_manager_object_pointer_get.c4
-rw-r--r--common_modules/module_manager/src/txm_module_manager_object_pointer_get_extended.c126
-rw-r--r--common_modules/module_manager/src/txm_module_manager_object_pool_create.c86
-rw-r--r--common_modules/module_manager/src/txm_module_manager_properties_get.c82
-rw-r--r--common_modules/module_manager/src/txm_module_manager_queue_notify_trampoline.c98
-rw-r--r--common_modules/module_manager/src/txm_module_manager_semaphore_notify_trampoline.c98
-rw-r--r--common_modules/module_manager/src/txm_module_manager_start.c40
-rw-r--r--common_modules/module_manager/src/txm_module_manager_thread_notify_trampoline.c106
-rw-r--r--common_modules/module_manager/src/txm_module_manager_thread_reset.c92
-rw-r--r--common_modules/module_manager/src/txm_module_manager_timer_notify_trampoline.c110
-rw-r--r--common_modules/module_manager/src/txm_module_manager_unload.c102
-rw-r--r--common_modules/module_manager/src/txm_module_manager_util.c358
125 files changed, 5130 insertions, 4434 deletions
diff --git a/common_modules/inc/txm_module.h b/common_modules/inc/txm_module.h
index aa9d2f92..90a35138 100644
--- a/common_modules/inc/txm_module.h
+++ b/common_modules/inc/txm_module.h
@@ -26,7 +26,7 @@
/* APPLICATION INTERFACE DEFINITION RELEASE */
/* */
/* txm_module.h PORTABLE C */
-/* 6.1.3 */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
@@ -44,6 +44,9 @@
/* 12-31-2020 Scott Larson Modified comment(s), added */
/* port-specific extension, */
/* resulting in version 6.1.3 */
+/* 01-31-2022 Scott Larson Modified comment(s), added */
+/* callback thread prototype, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
@@ -64,23 +67,23 @@
#ifdef TXM_MODULE_ENABLE_FILEX
#include "txm_module_filex.h"
-#endif
+#endif
#ifdef TXM_MODULE_ENABLE_GUIX
#include "txm_module_guix.h"
-#endif
+#endif
#ifdef TXM_MODULE_ENABLE_NETX
#include "txm_module_netx.h"
-#endif
+#endif
#ifdef TXM_MODULE_ENABLE_NETXDUO
#include "txm_module_netxduo.h"
-#endif
+#endif
#ifdef TXM_MODULE_ENABLE_USBX
#include "txm_module_usbx.h"
-#endif
+#endif
#ifdef FX_FILEX_PRESENT
@@ -157,7 +160,7 @@ extern "C" {
/* Define each module's callback queue depth. This is used to queue up incoming call back requests. */
#ifndef TXM_MODULE_CALLBACKS_QUEUE_DEPTH
-#define TXM_MODULE_CALLBACKS_QUEUE_DEPTH 8 /* Number queued callback requests. */
+#define TXM_MODULE_CALLBACKS_QUEUE_DEPTH 8 /* Number queued callback requests. */
#endif
@@ -367,7 +370,7 @@ typedef struct TXM_MODULE_PREAMBLE_STRUCT
ULONG txm_module_preamble_property_flags; /* Properties Bit Map */
ULONG txm_module_preamble_shell_entry_function; /* Module shell Entry Function */
ULONG txm_module_preamble_start_function; /* Module Thread Start Function */
- ULONG txm_module_preamble_stop_function; /* Module Thread Stop Function */
+ ULONG txm_module_preamble_stop_function; /* Module Thread Stop Function */
ULONG txm_module_preamble_start_stop_priority; /* Module Start/Stop Thread Priority */
ULONG txm_module_preamble_start_stop_stack_size; /* Module Start/Stop Thread Priority */
ULONG txm_module_preamble_callback_function; /* Module Callback Thread Function */
@@ -448,10 +451,10 @@ typedef struct TXM_MODULE_INSTANCE_STRUCT
VOID (*txm_module_instance_start_thread_entry)(ULONG);
VOID (*txm_module_instance_stop_thread_entry)(ULONG);
VOID (*txm_module_instance_callback_request_thread_entry)(ULONG);
-
+
/* Define the port extention to the module manager structure. */
TXM_MODULE_MANAGER_PORT_EXTENSION
-
+
TX_THREAD txm_module_instance_start_stop_thread;
TX_THREAD txm_module_instance_callback_request_thread;
TX_QUEUE txm_module_instance_callback_request_queue;
@@ -462,7 +465,7 @@ typedef struct TXM_MODULE_INSTANCE_STRUCT
ULONG txm_module_instance_callback_priority;
ULONG txm_module_instance_application_module_id;
UINT txm_module_instance_maximum_priority;
-
+
/* Define the head pointer of the list of objects allocated by the module. */
struct TXM_MODULE_ALLOCATED_OBJECT_STRUCT
*txm_module_instance_object_list_head;
@@ -470,11 +473,11 @@ typedef struct TXM_MODULE_INSTANCE_STRUCT
struct TXM_MODULE_INSTANCE_STRUCT
*txm_module_instance_loaded_next,
- *txm_module_instance_loaded_previous;
+ *txm_module_instance_loaded_previous;
} TXM_MODULE_INSTANCE;
-/* Determine if the thread entry info control block has an extension defined. If not, define the extension to
+/* Determine if the thread entry info control block has an extension defined. If not, define the extension to
whitespace. */
#ifndef TXM_MODULE_THREAD_ENTRY_INFO_USER_EXTENSION
@@ -482,9 +485,9 @@ typedef struct TXM_MODULE_INSTANCE_STRUCT
#endif
-/* Define the thread entry information structure. This structure is placed on the thread's stack such that the
+/* Define the thread entry information structure. This structure is placed on the thread's stack such that the
module's _txm_thread_shell_entry function does not need to access anything in the thread control block. */
-
+
typedef struct TXM_MODULE_THREAD_ENTRY_INFO_STRUCT
{
TX_THREAD *txm_module_thread_entry_info_thread;
@@ -516,7 +519,7 @@ typedef struct TXM_MODULE_ALLOCATED_OBJECT_STRUCT
} TXM_MODULE_ALLOCATED_OBJECT;
-/* Determine if module code is being compiled. If so, remap the ThreadX API to
+/* Determine if module code is being compiled. If so, remap the ThreadX API to
the module shell functions that will go through the module <-> module manager
interface. */
@@ -541,6 +544,7 @@ VOID _txm_module_thread_shell_entry(TX_THREAD *thread_ptr, TXM_MODULE_THREAD_EN
UINT _txm_module_thread_system_suspend(TX_THREAD *thread_ptr);
UINT _txm_module_application_request(ULONG request, ALIGN_TYPE param_1, ALIGN_TYPE param_2, ALIGN_TYPE param_3);
+VOID _txm_module_callback_request_thread_entry(ULONG id);
UINT _txm_module_object_allocate(VOID **object_ptr, ULONG object_size);
UINT _txm_module_object_deallocate(VOID *object_ptr);
UINT _txm_module_object_pointer_get(UINT object_type, CHAR *name, VOID **object_ptr);
@@ -574,7 +578,7 @@ VOID _txm_module_usbx_duo_callback_request(TXM_MODULE_CALLBACK_MESSAGE *callbac
/* Map the module manager APIs just in case this is being included from the module manager in the
resident portion of the application. */
-
+
#define txm_module_manager_initialize _txm_module_manager_initialize
#define txm_module_manager_absolute_load _txm_module_manager_absolute_load
#define txm_module_manager_in_place_load _txm_module_manager_in_place_load
@@ -615,7 +619,7 @@ UINT _txm_module_manager_file_load(TXM_MODULE_INSTANCE *module_instance, CHAR *
UINT _txm_module_manager_initialize(VOID *module_memory_start, ULONG module_memory_size);
UINT _txm_module_manager_absolute_load(TXM_MODULE_INSTANCE *module_instance, CHAR *name, VOID *module_location);
UINT _txm_module_manager_in_place_load(TXM_MODULE_INSTANCE *module_instance, CHAR *name, VOID *module_location);
-UINT _txm_module_manager_internal_load(TXM_MODULE_INSTANCE *module_instance, CHAR *name, VOID *module_location,
+UINT _txm_module_manager_internal_load(TXM_MODULE_INSTANCE *module_instance, CHAR *name, VOID *module_location,
ULONG code_size, VOID *code_allocation_ptr, ULONG code_allocation_size);
ALIGN_TYPE _txm_module_manager_kernel_dispatch(ULONG kernel_request, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE param_2);
UINT _txm_module_manager_object_allocate(VOID **object_ptr_ptr, ULONG object_size, TXM_MODULE_INSTANCE *module_instance);
@@ -628,7 +632,7 @@ UINT _txm_module_manager_memory_load(TXM_MODULE_INSTANCE *module_instance, CHAR
UINT _txm_module_manager_properties_get(TXM_MODULE_INSTANCE *module_instance, ULONG *module_properties_ptr);
UINT _txm_module_manager_start(TXM_MODULE_INSTANCE *module_instance);
UINT _txm_module_manager_stop(TXM_MODULE_INSTANCE *module_instance);
-UINT _txm_module_manager_thread_create(TX_THREAD *thread_ptr, CHAR *name, VOID (*shell_function)(TX_THREAD *, TXM_MODULE_INSTANCE *),
+UINT _txm_module_manager_thread_create(TX_THREAD *thread_ptr, CHAR *name, VOID (*shell_function)(TX_THREAD *, TXM_MODULE_INSTANCE *),
VOID (*entry_function)(ULONG), ULONG entry_input,
VOID *stack_start, ULONG stack_size, UINT priority, UINT preempt_threshold,
ULONG time_slice, UINT auto_start, UINT thread_control_block_size, TXM_MODULE_INSTANCE *module_instance);
diff --git a/common_modules/inc/txm_module_user_sample.h b/common_modules/inc/txm_module_user_sample.h
index 3587eea3..55b471a7 100644
--- a/common_modules/inc/txm_module_user_sample.h
+++ b/common_modules/inc/txm_module_user_sample.h
@@ -10,41 +10,44 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** User Specific */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** User Specific */
+/** */
+/**************************************************************************/
+/**************************************************************************/
-/**************************************************************************/
-/* */
-/* APPLICATION INTERFACE DEFINITION RELEASE */
-/* */
-/* txm_module_user.h PORTABLE C */
-/* 6.1 */
+/**************************************************************************/
+/* */
+/* APPLICATION INTERFACE DEFINITION RELEASE */
+/* */
+/* txm_module_user.h PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This file contains user defines for configuring the Module Manager */
-/* in specific ways. This file will have an effect only if the Module */
-/* Manager library is built with TXM_MODULE_INCLUDE_USER_DEFINE_FILE */
-/* defined. Note that all the defines in this file may also be made on */
-/* the command line when building Modules library and application */
-/* objects. */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This file contains user defines for configuring the Module Manager */
+/* in specific ways. This file will have an effect only if the Module */
+/* Manager library is built with TXM_MODULE_INCLUDE_USER_DEFINE_FILE */
+/* defined. Note that all the defines in this file may also be made on */
+/* the command line when building Modules library and application */
+/* objects. */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED defines, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
@@ -57,4 +60,106 @@
/* #define TXM_MODULE_KERNEL_STACK_SIZE 2048 */
+
+/* Uncomment any of these defines to prevent modules from being able to make that system call. */
+
+/* #define TXM_BLOCK_ALLOCATE_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_CREATE_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_DELETE_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BLOCK_POOL_PRIORITIZE_CALL_NOT_USED */
+/* #define TXM_BLOCK_RELEASE_CALL_NOT_USED */
+/* #define TXM_BYTE_ALLOCATE_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_CREATE_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_DELETE_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_BYTE_POOL_PRIORITIZE_CALL_NOT_USED */
+/* #define TXM_BYTE_RELEASE_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_CREATE_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_DELETE_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_GET_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_INFO_GET_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_SET_CALL_NOT_USED */
+/* #define TXM_EVENT_FLAGS_SET_NOTIFY_CALL_NOT_USED */
+/* #define TXM_MUTEX_CREATE_CALL_NOT_USED */
+/* #define TXM_MUTEX_DELETE_CALL_NOT_USED */
+/* #define TXM_MUTEX_GET_CALL_NOT_USED */
+/* #define TXM_MUTEX_INFO_GET_CALL_NOT_USED */
+/* #define TXM_MUTEX_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_MUTEX_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_MUTEX_PRIORITIZE_CALL_NOT_USED */
+/* #define TXM_MUTEX_PUT_CALL_NOT_USED */
+/* #define TXM_QUEUE_CREATE_CALL_NOT_USED */
+/* #define TXM_QUEUE_DELETE_CALL_NOT_USED */
+/* #define TXM_QUEUE_FLUSH_CALL_NOT_USED */
+/* #define TXM_QUEUE_FRONT_SEND_CALL_NOT_USED */
+/* #define TXM_QUEUE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_QUEUE_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_QUEUE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_QUEUE_PRIORITIZE_CALL_NOT_USED */
+/* #define TXM_QUEUE_RECEIVE_CALL_NOT_USED */
+/* #define TXM_QUEUE_SEND_CALL_NOT_USED */
+/* #define TXM_QUEUE_SEND_NOTIFY_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_CEILING_PUT_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_CREATE_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_DELETE_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_GET_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_PRIORITIZE_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_PUT_CALL_NOT_USED */
+/* #define TXM_SEMAPHORE_PUT_NOTIFY_CALL_NOT_USED */
+/* #define TXM_THREAD_CREATE_CALL_NOT_USED */
+/* #define TXM_THREAD_DELETE_CALL_NOT_USED */
+/* #define TXM_THREAD_ENTRY_EXIT_NOTIFY_CALL_NOT_USED */
+/* #define TXM_THREAD_IDENTIFY_CALL_NOT_USED */
+/* #define TXM_THREAD_INFO_GET_CALL_NOT_USED */
+/* #define TXM_THREAD_INTERRUPT_CONTROL_CALL_NOT_USED */
+/* #define TXM_THREAD_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_THREAD_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_THREAD_PREEMPTION_CHANGE_CALL_NOT_USED */
+/* #define TXM_THREAD_PRIORITY_CHANGE_CALL_NOT_USED */
+/* #define TXM_THREAD_RELINQUISH_CALL_NOT_USED */
+/* #define TXM_THREAD_RESET_CALL_NOT_USED */
+/* #define TXM_THREAD_RESUME_CALL_NOT_USED */
+/* #define TXM_THREAD_SLEEP_CALL_NOT_USED */
+/* #define TXM_THREAD_STACK_ERROR_NOTIFY_CALL_NOT_USED */
+/* #define TXM_THREAD_SUSPEND_CALL_NOT_USED */
+/* thread system suspend is needed in _txm_module_thread_shell_entry */
+/* #define TXM_THREAD_TERMINATE_CALL_NOT_USED */
+/* #define TXM_THREAD_TIME_SLICE_CHANGE_CALL_NOT_USED */
+/* #define TXM_THREAD_WAIT_ABORT_CALL_NOT_USED */
+/* #define TXM_TIME_GET_CALL_NOT_USED */
+/* #define TXM_TIME_SET_CALL_NOT_USED */
+/* #define TXM_TIMER_ACTIVATE_CALL_NOT_USED */
+/* #define TXM_TIMER_CHANGE_CALL_NOT_USED */
+/* #define TXM_TIMER_CREATE_CALL_NOT_USED */
+/* #define TXM_TIMER_DEACTIVATE_CALL_NOT_USED */
+/* #define TXM_TIMER_DELETE_CALL_NOT_USED */
+/* #define TXM_TIMER_INFO_GET_CALL_NOT_USED */
+/* #define TXM_TIMER_PERFORMANCE_INFO_GET_CALL_NOT_USED */
+/* #define TXM_TIMER_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED */
+/* #define TXM_TRACE_BUFFER_FULL_NOTIFY_CALL_NOT_USED */
+/* #define TXM_TRACE_DISABLE_CALL_NOT_USED */
+/* #define TXM_TRACE_ENABLE_CALL_NOT_USED */
+/* #define TXM_TRACE_EVENT_FILTER_CALL_NOT_USED */
+/* #define TXM_TRACE_EVENT_UNFILTER_CALL_NOT_USED */
+/* #define TXM_TRACE_INTERRUPT_CONTROL_CALL_NOT_USED */
+/* #define TXM_TRACE_ISR_ENTER_INSERT_CALL_NOT_USED */
+/* #define TXM_TRACE_ISR_EXIT_INSERT_CALL_NOT_USED */
+/* #define TXM_TRACE_USER_EVENT_INSERT_CALL_NOT_USED */
+/* #define TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED */
+/* #define TXM_MODULE_OBJECT_ALLOCATE_CALL_NOT_USED */
+/* #define TXM_MODULE_OBJECT_DEALLOCATE_CALL_NOT_USED */
+/* #define TXM_MODULE_OBJECT_POINTER_GET_CALL_NOT_USED */
+/* #define TXM_MODULE_OBJECT_POINTER_GET_EXTENDED_CALL_NOT_USED */
+
+
#endif
diff --git a/common_modules/module_lib/src/txm_block_allocate.c b/common_modules/module_lib/src/txm_block_allocate.c
index c3a8d92a..3a96d8eb 100644
--- a/common_modules/module_lib/src/txm_block_allocate.c
+++ b/common_modules/module_lib/src/txm_block_allocate.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_block_allocate PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_ALLOCATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_block_allocate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the allocate block memory */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* block_ptr Pointer to place allocated block */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the allocate block memory */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* block_ptr Pointer to place allocated block */
/* pointer */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid pool pointer */
-/* TX_PTR_ERROR Invalid destination pointer */
-/* TX_WAIT_ERROR Invalid wait option */
-/* status Actual Completion status */
-/* */
-/* CALLS */
-/* */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid pool pointer */
+/* TX_PTR_ERROR Invalid destination pointer */
+/* TX_WAIT_ERROR Invalid wait option */
+/* status Actual Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_allocate(TX_BLOCK_POOL *pool_ptr, VOID **block_ptr, ULONG wait_option)
@@ -78,3 +81,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_create.c b/common_modules/module_lib/src/txm_block_pool_create.c
index 5b550aaa..e1982e14 100644
--- a/common_modules/module_lib/src/txm_block_pool_create.c
+++ b/common_modules/module_lib/src/txm_block_pool_create.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_block_pool_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_block_pool_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the create block memory pool */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* name_ptr Pointer to block pool name */
-/* block_size Number of bytes in each block */
-/* pool_start Address of beginning of pool area */
-/* pool_size Number of bytes in the block pool */
-/* pool_control_block_size Size of block pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid pool pointer */
-/* TX_PTR_ERROR Invalid starting address */
-/* TX_SIZE_ERROR Invalid pool size */
-/* TX_CALLER_ERROR Invalid caller of pool */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the create block memory pool */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* name_ptr Pointer to block pool name */
+/* block_size Number of bytes in each block */
+/* pool_start Address of beginning of pool area */
+/* pool_size Number of bytes in the block pool */
+/* pool_control_block_size Size of block pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid pool pointer */
+/* TX_PTR_ERROR Invalid starting address */
+/* TX_SIZE_ERROR Invalid pool size */
+/* TX_CALLER_ERROR Invalid caller of pool */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_pool_create(TX_BLOCK_POOL *pool_ptr, CHAR *name_ptr, ULONG block_size, VOID *pool_start, ULONG pool_size, UINT pool_control_block_size)
@@ -87,3 +90,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_delete.c b/common_modules/module_lib/src/txm_block_pool_delete.c
index 89b1d064..9f803296 100644
--- a/common_modules/module_lib/src/txm_block_pool_delete.c
+++ b/common_modules/module_lib/src/txm_block_pool_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_block_pool_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_block_pool_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the delete block pool memory */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid memory block pool pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual delete function status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the delete block pool memory */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid memory block pool pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual delete function status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_pool_delete(TX_BLOCK_POOL *pool_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_info_get.c b/common_modules/module_lib/src/txm_block_pool_info_get.c
index f5a221b2..2cc52dbe 100644
--- a/common_modules/module_lib/src/txm_block_pool_info_get.c
+++ b/common_modules/module_lib/src/txm_block_pool_info_get.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_block_pool_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_block_pool_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the block pool information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to block pool control blk */
-/* name Destination for the pool name */
-/* available_blocks Number of free blocks in pool */
-/* total_blocks Total number of blocks in pool */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on block pool */
-/* suspended_count Destination for suspended count */
-/* next_pool Destination for pointer to next */
-/* block pool on the created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid block pool pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the block pool information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to block pool control blk */
+/* name Destination for the pool name */
+/* available_blocks Number of free blocks in pool */
+/* total_blocks Total number of blocks in pool */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on block pool */
+/* suspended_count Destination for suspended count */
+/* next_pool Destination for pointer to next */
+/* block pool on the created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid block pool pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_pool_info_get(TX_BLOCK_POOL *pool_ptr, CHAR **name, ULONG *available_blocks, ULONG *total_blocks, TX_THREAD **first_suspended, ULONG *suspended_count, TX_BLOCK_POOL **next_pool)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_performance_info_get.c b/common_modules/module_lib/src/txm_block_pool_performance_info_get.c
index 4d040bb1..b94aff3c 100644
--- a/common_modules/module_lib/src/txm_block_pool_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_block_pool_performance_info_get.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_block_pool_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_block_pool_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* block pool. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to block pool control blk */
-/* allocates Destination for the number of */
-/* allocations from this pool */
-/* releases Destination for the number of */
-/* blocks released back to pool */
-/* suspensions Destination for number of */
-/* suspensions on this pool */
-/* timeouts Destination for number of timeouts*/
-/* on this pool */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* block pool. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to block pool control blk */
+/* allocates Destination for the number of */
+/* allocations from this pool */
+/* releases Destination for the number of */
+/* blocks released back to pool */
+/* suspensions Destination for number of */
+/* suspensions on this pool */
+/* timeouts Destination for number of timeouts*/
+/* on this pool */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_block_pool_performance_info_get(TX_BLOCK_POOL *pool_ptr, ULONG *allocates, ULONG *releases, ULONG *suspensions, ULONG *timeouts)
@@ -85,3 +88,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_performance_system_info_get.c b/common_modules/module_lib/src/txm_block_pool_performance_system_info_get.c
index 0603a960..1c0da014 100644
--- a/common_modules/module_lib/src/txm_block_pool_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_block_pool_performance_system_info_get.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_block_pool_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_block_pool_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves block pool performance information. */
-/* */
-/* INPUT */
-/* */
-/* allocates Destination for the total number */
-/* of block allocations */
-/* releases Destination for the total number */
-/* of blocks released */
-/* suspensions Destination for the total number */
-/* of suspensions */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves block pool performance information. */
+/* */
+/* INPUT */
+/* */
+/* allocates Destination for the total number */
+/* of block allocations */
+/* releases Destination for the total number */
+/* of blocks released */
+/* suspensions Destination for the total number */
+/* of suspensions */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_block_pool_performance_system_info_get(ULONG *allocates, ULONG *releases, ULONG *suspensions, ULONG *timeouts)
@@ -82,3 +85,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_pool_prioritize.c b/common_modules/module_lib/src/txm_block_pool_prioritize.c
index 67b0b4a2..7799331a 100644
--- a/common_modules/module_lib/src/txm_block_pool_prioritize.c
+++ b/common_modules/module_lib/src/txm_block_pool_prioritize.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_block_pool_prioritize PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_POOL_PRIORITIZE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_block_pool_prioritize PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the block pool prioritize call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the block pool prioritize call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_pool_prioritize(TX_BLOCK_POOL *pool_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_block_release.c b/common_modules/module_lib/src/txm_block_release.c
index 370f8821..446f8d38 100644
--- a/common_modules/module_lib/src/txm_block_release.c
+++ b/common_modules/module_lib/src/txm_block_release.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_block_release PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BLOCK_RELEASE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_block_release PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the block release function call. */
-/* */
-/* INPUT */
-/* */
-/* block_ptr Pointer to memory block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_PTR_ERROR Invalid memory block pointer */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the block release function call. */
+/* */
+/* INPUT */
+/* */
+/* block_ptr Pointer to memory block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_PTR_ERROR Invalid memory block pointer */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_block_release(VOID *block_ptr)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_allocate.c b/common_modules/module_lib/src/txm_byte_allocate.c
index 193c7868..c1f4d8fe 100644
--- a/common_modules/module_lib/src/txm_byte_allocate.c
+++ b/common_modules/module_lib/src/txm_byte_allocate.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_byte_allocate PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_ALLOCATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_byte_allocate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in allocate bytes function call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* memory_ptr Pointer to place allocated bytes */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in allocate bytes function call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* memory_ptr Pointer to place allocated bytes */
/* pointer */
-/* memory_size Number of bytes to allocate */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid memory pool pointer */
-/* TX_PTR_ERROR Invalid destination pointer */
-/* TX_WAIT_ERROR Invalid wait option */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* TX_SIZE_ERROR Invalid size of memory request */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* memory_size Number of bytes to allocate */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid memory pool pointer */
+/* TX_PTR_ERROR Invalid destination pointer */
+/* TX_WAIT_ERROR Invalid wait option */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* TX_SIZE_ERROR Invalid size of memory request */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_allocate(TX_BYTE_POOL *pool_ptr, VOID **memory_ptr, ULONG memory_size, ULONG wait_option)
@@ -84,3 +87,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_create.c b/common_modules/module_lib/src/txm_byte_pool_create.c
index 170892ad..df5dd027 100644
--- a/common_modules/module_lib/src/txm_byte_pool_create.c
+++ b/common_modules/module_lib/src/txm_byte_pool_create.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_byte_pool_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_byte_pool_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the create byte pool memory */
-/* function. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* name_ptr Pointer to byte pool name */
-/* pool_start Address of beginning of pool area */
-/* pool_size Number of bytes in the byte pool */
-/* pool_control_block_size Size of byte pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid byte pool pointer */
-/* TX_PTR_ERROR Invalid pool starting address */
-/* TX_SIZE_ERROR Invalid pool size */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the create byte pool memory */
+/* function. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* name_ptr Pointer to byte pool name */
+/* pool_start Address of beginning of pool area */
+/* pool_size Number of bytes in the byte pool */
+/* pool_control_block_size Size of byte pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid byte pool pointer */
+/* TX_PTR_ERROR Invalid pool starting address */
+/* TX_SIZE_ERROR Invalid pool size */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_pool_create(TX_BYTE_POOL *pool_ptr, CHAR *name_ptr, VOID *pool_start, ULONG pool_size, UINT pool_control_block_size)
@@ -85,3 +88,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_delete.c b/common_modules/module_lib/src/txm_byte_pool_delete.c
index 3160fa91..1d75816c 100644
--- a/common_modules/module_lib/src/txm_byte_pool_delete.c
+++ b/common_modules/module_lib/src/txm_byte_pool_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_byte_pool_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_byte_pool_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the delete byte pool function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid pool pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the delete byte pool function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid pool pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_pool_delete(TX_BYTE_POOL *pool_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_info_get.c b/common_modules/module_lib/src/txm_byte_pool_info_get.c
index 29d246c7..240fb6b1 100644
--- a/common_modules/module_lib/src/txm_byte_pool_info_get.c
+++ b/common_modules/module_lib/src/txm_byte_pool_info_get.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_byte_pool_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_byte_pool_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the byte pool information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to byte pool control block*/
-/* name Destination for the pool name */
-/* available_bytes Number of free bytes in byte pool */
-/* fragments Number of fragments in byte pool */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on byte pool */
-/* suspended_count Destination for suspended count */
-/* next_pool Destination for pointer to next */
-/* byte pool on the created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_POOL_ERROR Invalid byte pool pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the byte pool information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to byte pool control block*/
+/* name Destination for the pool name */
+/* available_bytes Number of free bytes in byte pool */
+/* fragments Number of fragments in byte pool */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on byte pool */
+/* suspended_count Destination for suspended count */
+/* next_pool Destination for pointer to next */
+/* byte pool on the created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_POOL_ERROR Invalid byte pool pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_pool_info_get(TX_BYTE_POOL *pool_ptr, CHAR **name, ULONG *available_bytes, ULONG *fragments, TX_THREAD **first_suspended, ULONG *suspended_count, TX_BYTE_POOL **next_pool)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_performance_info_get.c b/common_modules/module_lib/src/txm_byte_pool_performance_info_get.c
index fde49fdb..9c1d1766 100644
--- a/common_modules/module_lib/src/txm_byte_pool_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_byte_pool_performance_info_get.c
@@ -22,59 +22,62 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_byte_pool_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_byte_pool_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* byte pool. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to byte pool control block*/
-/* allocates Destination for number of */
-/* allocates on this pool */
-/* releases Destination for number of */
-/* releases on this pool */
-/* fragments_searched Destination for number of */
-/* fragments searched during */
-/* allocation */
-/* merges Destination for number of adjacent*/
-/* free fragments merged */
-/* splits Destination for number of */
-/* fragments split during */
-/* allocation */
-/* suspensions Destination for number of */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* byte pool. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to byte pool control block*/
+/* allocates Destination for number of */
+/* allocates on this pool */
+/* releases Destination for number of */
+/* releases on this pool */
+/* fragments_searched Destination for number of */
+/* fragments searched during */
+/* allocation */
+/* merges Destination for number of adjacent*/
+/* free fragments merged */
+/* splits Destination for number of */
+/* fragments split during */
+/* allocation */
+/* suspensions Destination for number of */
/* suspensions on this pool */
-/* timeouts Destination for number of timeouts*/
-/* on this byte pool */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* timeouts Destination for number of timeouts*/
+/* on this byte pool */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_byte_pool_performance_info_get(TX_BYTE_POOL *pool_ptr, ULONG *allocates, ULONG *releases, ULONG *fragments_searched, ULONG *merges, ULONG *splits, ULONG *suspensions, ULONG *timeouts)
@@ -96,3 +99,4 @@ ALIGN_TYPE extra_parameters[6];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_performance_system_info_get.c b/common_modules/module_lib/src/txm_byte_pool_performance_system_info_get.c
index 3bceabfa..f1f57df5 100644
--- a/common_modules/module_lib/src/txm_byte_pool_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_byte_pool_performance_system_info_get.c
@@ -22,57 +22,60 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_byte_pool_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_byte_pool_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves byte pool performance information. */
-/* */
-/* INPUT */
-/* */
-/* allocates Destination for total number of */
-/* allocates */
-/* releases Destination for total number of */
-/* releases */
-/* fragments_searched Destination for total number of */
-/* fragments searched during */
-/* allocation */
-/* merges Destination for total number of */
-/* adjacent free fragments merged */
-/* splits Destination for total number of */
-/* fragments split during */
-/* allocation */
-/* suspensions Destination for total number of */
+/* DESCRIPTION */
+/* */
+/* This function retrieves byte pool performance information. */
+/* */
+/* INPUT */
+/* */
+/* allocates Destination for total number of */
+/* allocates */
+/* releases Destination for total number of */
+/* releases */
+/* fragments_searched Destination for total number of */
+/* fragments searched during */
+/* allocation */
+/* merges Destination for total number of */
+/* adjacent free fragments merged */
+/* splits Destination for total number of */
+/* fragments split during */
+/* allocation */
+/* suspensions Destination for total number of */
/* suspensions */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_byte_pool_performance_system_info_get(ULONG *allocates, ULONG *releases, ULONG *fragments_searched, ULONG *merges, ULONG *splits, ULONG *suspensions, ULONG *timeouts)
@@ -93,3 +96,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_pool_prioritize.c b/common_modules/module_lib/src/txm_byte_pool_prioritize.c
index 268a6f2f..a86eb409 100644
--- a/common_modules/module_lib/src/txm_byte_pool_prioritize.c
+++ b/common_modules/module_lib/src/txm_byte_pool_prioritize.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_byte_pool_prioritize PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_POOL_PRIORITIZE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_byte_pool_prioritize PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the byte pool prioritize call. */
-/* */
-/* INPUT */
-/* */
-/* pool_ptr Pointer to pool control block */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the byte pool prioritize call. */
+/* */
+/* INPUT */
+/* */
+/* pool_ptr Pointer to pool control block */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_pool_prioritize(TX_BYTE_POOL *pool_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_byte_release.c b/common_modules/module_lib/src/txm_byte_release.c
index 2dbb8998..c127f30b 100644
--- a/common_modules/module_lib/src/txm_byte_release.c
+++ b/common_modules/module_lib/src/txm_byte_release.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_byte_release PORTABLE C */
-/* 6.1 */
+#ifndef TXM_BYTE_RELEASE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_byte_release PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the release byte function call. */
-/* */
-/* INPUT */
-/* */
-/* memory_ptr Pointer to allocated memory */
-/* */
-/* OUTPUT */
-/* */
-/* TX_PTR_ERROR Invalid memory pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the release byte function call. */
+/* */
+/* INPUT */
+/* */
+/* memory_ptr Pointer to allocated memory */
+/* */
+/* OUTPUT */
+/* */
+/* TX_PTR_ERROR Invalid memory pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_byte_release(VOID *memory_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_create.c b/common_modules/module_lib/src/txm_event_flags_create.c
index cec86527..a8db0d0d 100644
--- a/common_modules/module_lib/src/txm_event_flags_create.c
+++ b/common_modules/module_lib/src/txm_event_flags_create.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the event flag creation function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to event flags group */
-/* control block */
-/* name_ptr Pointer to event flags name */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the event flag creation function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to event flags group */
+/* control block */
+/* name_ptr Pointer to event flags name */
/* event_control_block_size Size of event flags control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_GROUP_ERROR Invalid event flag group pointer */
-/* TX_CALLER_ERROR Invalid calling function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_GROUP_ERROR Invalid event flag group pointer */
+/* TX_CALLER_ERROR Invalid calling function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_create(TX_EVENT_FLAGS_GROUP *group_ptr, CHAR *name_ptr, UINT event_control_block_size)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_delete.c b/common_modules/module_lib/src/txm_event_flags_delete.c
index e69270c5..ebe544cc 100644
--- a/common_modules/module_lib/src/txm_event_flags_delete.c
+++ b/common_modules/module_lib/src/txm_event_flags_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the delete event flags group */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to group control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_GROUP_ERROR Invalid event flag group pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the delete event flags group */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to group control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_GROUP_ERROR Invalid event flag group pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_delete(TX_EVENT_FLAGS_GROUP *group_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_get.c b/common_modules/module_lib/src/txm_event_flags_get.c
index 7006bbe8..646ee58c 100644
--- a/common_modules/module_lib/src/txm_event_flags_get.c
+++ b/common_modules/module_lib/src/txm_event_flags_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the event flags get function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to group control block */
-/* requested_event_flags Event flags requested */
-/* get_option Specifies and/or and clear options*/
-/* actual_flags_ptr Pointer to place the actual flags */
-/* the service retrieved */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_GROUP_ERROR Invalid event flags group pointer */
-/* TX_PTR_ERROR Invalid actual flags pointer */
-/* TX_WAIT_ERROR Invalid wait option */
-/* TX_OPTION_ERROR Invalid get option */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the event flags get function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to group control block */
+/* requested_event_flags Event flags requested */
+/* get_option Specifies and/or and clear options*/
+/* actual_flags_ptr Pointer to place the actual flags */
+/* the service retrieved */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_GROUP_ERROR Invalid event flags group pointer */
+/* TX_PTR_ERROR Invalid actual flags pointer */
+/* TX_WAIT_ERROR Invalid wait option */
+/* TX_OPTION_ERROR Invalid get option */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_get(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG requested_flags, UINT get_option, ULONG *actual_flags_ptr, ULONG wait_option)
@@ -87,3 +90,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_info_get.c b/common_modules/module_lib/src/txm_event_flags_info_get.c
index 9861dab1..3bb8b23d 100644
--- a/common_modules/module_lib/src/txm_event_flags_info_get.c
+++ b/common_modules/module_lib/src/txm_event_flags_info_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the event flag information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to event flag group */
-/* name Destination for the event flags */
-/* group name */
-/* current_flags Current event flags */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on event flags */
-/* suspended_count Destination for suspended count */
-/* next_group Destination for pointer to next */
-/* event flag group on the created */
-/* list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_GROUP_ERROR Invalid event flag group pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the event flag information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to event flag group */
+/* name Destination for the event flags */
+/* group name */
+/* current_flags Current event flags */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on event flags */
+/* suspended_count Destination for suspended count */
+/* next_group Destination for pointer to next */
+/* event flag group on the created */
+/* list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_GROUP_ERROR Invalid event flag group pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_info_get(TX_EVENT_FLAGS_GROUP *group_ptr, CHAR **name, ULONG *current_flags, TX_THREAD **first_suspended, ULONG *suspended_count, TX_EVENT_FLAGS_GROUP **next_group)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_performance_info_get.c b/common_modules/module_lib/src/txm_event_flags_performance_info_get.c
index 43a7cf26..169a98ee 100644
--- a/common_modules/module_lib/src/txm_event_flags_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_event_flags_performance_info_get.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_event_flags_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_event_flags_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* event flag group. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to event flag group */
-/* sets Destination for the number of */
-/* event flag sets on this group */
-/* gets Destination for the number of */
-/* event flag gets on this group */
-/* suspensions Destination for the number of */
-/* event flag suspensions on this */
-/* group */
-/* timeouts Destination for number of timeouts*/
-/* on this event flag group */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* event flag group. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to event flag group */
+/* sets Destination for the number of */
+/* event flag sets on this group */
+/* gets Destination for the number of */
+/* event flag gets on this group */
+/* suspensions Destination for the number of */
+/* event flag suspensions on this */
+/* group */
+/* timeouts Destination for number of timeouts*/
+/* on this event flag group */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_event_flags_performance_info_get(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG *sets, ULONG *gets, ULONG *suspensions, ULONG *timeouts)
@@ -86,3 +89,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_performance_system_info_get.c b/common_modules/module_lib/src/txm_event_flags_performance_system_info_get.c
index 387cd262..885cd4a1 100644
--- a/common_modules/module_lib/src/txm_event_flags_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_event_flags_performance_system_info_get.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_event_flags_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_event_flags_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves system event flag performance information. */
-/* */
-/* INPUT */
-/* */
-/* sets Destination for total number of */
-/* event flag sets */
-/* gets Destination for total number of */
-/* event flag gets */
-/* suspensions Destination for total number of */
-/* event flag suspensions */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves system event flag performance information. */
+/* */
+/* INPUT */
+/* */
+/* sets Destination for total number of */
+/* event flag sets */
+/* gets Destination for total number of */
+/* event flag gets */
+/* suspensions Destination for total number of */
+/* event flag suspensions */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_event_flags_performance_system_info_get(ULONG *sets, ULONG *gets, ULONG *suspensions, ULONG *timeouts)
@@ -82,3 +85,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_set.c b/common_modules/module_lib/src/txm_event_flags_set.c
index 5d204ec0..a45cf4f2 100644
--- a/common_modules/module_lib/src/txm_event_flags_set.c
+++ b/common_modules/module_lib/src/txm_event_flags_set.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_set PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_SET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_set PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the set event flags function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to group control block */
-/* flags_to_set Event flags to set */
-/* set_option Specified either AND or OR */
-/* operation on the event flags */
-/* */
-/* OUTPUT */
-/* */
-/* TX_GROUP_ERROR Invalid event flags group pointer */
-/* TX_OPTION_ERROR Invalid set option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the set event flags function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to group control block */
+/* flags_to_set Event flags to set */
+/* set_option Specified either AND or OR */
+/* operation on the event flags */
+/* */
+/* OUTPUT */
+/* */
+/* TX_GROUP_ERROR Invalid event flags group pointer */
+/* TX_OPTION_ERROR Invalid set option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_set(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG flags_to_set, UINT set_option)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_event_flags_set_notify.c b/common_modules/module_lib/src/txm_event_flags_set_notify.c
index f72b92a6..1bc05e36 100644
--- a/common_modules/module_lib/src/txm_event_flags_set_notify.c
+++ b/common_modules/module_lib/src/txm_event_flags_set_notify.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_event_flags_set_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_EVENT_FLAGS_SET_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_event_flags_set_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the event flags set notify */
-/* callback function call. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Pointer to group control block*/
-/* group_put_notify Application callback function */
-/* (TX_NULL disables notify) */
-/* */
-/* OUTPUT */
-/* */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the event flags set notify */
+/* callback function call. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Pointer to group control block*/
+/* group_put_notify Application callback function */
+/* (TX_NULL disables notify) */
+/* */
+/* OUTPUT */
+/* */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_event_flags_set_notify(TX_EVENT_FLAGS_GROUP *group_ptr, VOID (*events_set_notify)(TX_EVENT_FLAGS_GROUP *))
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_module_application_request.c b/common_modules/module_lib/src/txm_module_application_request.c
index b84b8f2c..c96ca715 100644
--- a/common_modules/module_lib/src/txm_module_application_request.c
+++ b/common_modules/module_lib/src/txm_module_application_request.c
@@ -10,69 +10,72 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* txm_module_application_request PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* txm_module_application_request PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function sends an application-specific request to the resident */
-/* code. */
-/* */
-/* INPUT */
-/* */
-/* request Request ID (application defined) */
-/* param_1 First parameter */
-/* param_2 Second parameter */
-/* param_3 Third parameter */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function sends an application-specific request to the resident */
+/* code. */
+/* */
+/* INPUT */
+/* */
+/* request Request ID (application defined) */
+/* param_1 First parameter */
+/* param_2 Second parameter */
+/* param_3 Third parameter */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_kernel_call_dispatcher */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT txm_module_application_request(ULONG request, ALIGN_TYPE param_1, ALIGN_TYPE param_2, ALIGN_TYPE param_3)
{
UINT return_value;
-
+
/* Call module manager dispatcher. */
return_value = (UINT)(_txm_module_kernel_call_dispatcher)(TXM_APPLICATION_REQUEST_ID_BASE+request, param_1, param_2, param_3);
-
+
/* Return value to the caller. */
return(return_value);
}
-
+#endif
diff --git a/common_modules/module_lib/src/txm_module_callback_request_thread_entry.c b/common_modules/module_lib/src/txm_module_callback_request_thread_entry.c
index bbd51104..1a055d2b 100644
--- a/common_modules/module_lib/src/txm_module_callback_request_thread_entry.c
+++ b/common_modules/module_lib/src/txm_module_callback_request_thread_entry.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#ifndef TXM_MODULE
#define TXM_MODULE
@@ -35,54 +35,56 @@
#include "tx_queue.h"
-/* Define the global module entry pointer from the start thread of the module.
+/* Define the global module entry pointer from the start thread of the module.
This structure contains the pointer to the request queue as well as the
pointer to the callback response queue. */
extern TXM_MODULE_THREAD_ENTRY_INFO *_txm_module_entry_info;
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_callback_request_thread_entry PORTABLE C */
-/* 6.1 */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_callback_request_thread_entry PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes all module callback requests, transferred */
-/* by the resident code via the callback queue. When the callback is */
-/* complete, the response is sent back to the resident code to */
-/* acknowledge it. */
-/* */
-/* INPUT */
-/* */
-/* id Module thread ID */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* tx_queue_receive Receive callback request */
-/* */
-/* CALLED BY */
-/* */
-/* Initial thread stack frame */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes all module callback requests, transferred */
+/* by the resident code via the callback queue. When the callback is */
+/* complete, the response is sent back to the resident code to */
+/* acknowledge it. */
+/* */
+/* INPUT */
+/* */
+/* id Module thread ID */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* tx_queue_receive Receive callback request */
+/* */
+/* CALLED BY */
+/* */
+/* Initial thread stack frame */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
-VOID _txm_module_callback_request_thread_entry(ULONG id)
+VOID _txm_module_callback_request_thread_entry(ULONG id)
{
TX_QUEUE *request_queue;
@@ -95,6 +97,8 @@ VOID (*queue_send_notify)(TX_QUEUE *);
VOID (*thread_entry_exit_notify)(TX_THREAD *, UINT);
UINT status;
+ /* Disable warning of parameter not used. */
+ TX_PARAMETER_NOT_USED(id);
/* Pickup pointer to the request queue. */
request_queue = _txm_module_entry_info -> txm_module_thread_entry_info_callback_request_queue;
@@ -102,7 +106,7 @@ UINT status;
/* Loop to process callback messages from the module manager. */
while(1)
{
-
+
/* Wait for the callback request for the module. */
status = _txe_queue_receive(request_queue, (VOID *) &callback_message, TX_WAIT_FOREVER);
@@ -113,21 +117,21 @@ UINT status;
/* This should not happen - get out of the loop. */
break;
}
-
+
/* Pickup the activation count in the message. */
activation_count = callback_message.txm_module_callback_message_activation_count;
-
+
/* Loop to call the callback function the correct number of times. */
while (activation_count)
{
-
+
/* Decrement the activation count. */
activation_count--;
/* Now dispatch the callback function. */
switch (callback_message.txm_module_callback_message_type)
{
-
+
case TXM_TIMER_CALLBACK:
/* Setup timer callback pointer. */
@@ -147,7 +151,7 @@ UINT status;
(events_set_notify)((TX_EVENT_FLAGS_GROUP *) callback_message.txm_module_callback_message_param_1);
break;
-
+
case TXM_QUEUE_SEND_CALLBACK:
/* Setup queue send callback pointer. */
@@ -175,70 +179,68 @@ UINT status;
/* Call thread entry/exit notify callback. */
(thread_entry_exit_notify)((TX_THREAD *) callback_message.txm_module_callback_message_param_1, (UINT) callback_message.txm_module_callback_message_param_2);
-
+
break;
default:
#ifdef TXM_MODULE_ENABLE_NETX
-
+
/* Determine if there is a NetX callback. */
if ((callback_message.txm_module_callback_message_type >= TXM_NETX_CALLBACKS_START) && (callback_message.txm_module_callback_message_type < TXM_NETX_CALLBACKS_END))
{
-
+
/* Call the NetX module callback function. */
_txm_module_netx_callback_request(&callback_message);
}
#endif
-
+
#ifdef TXM_MODULE_ENABLE_NETXDUO
-
+
/* Determine if there is a NetX Duo callback. */
if ((callback_message.txm_module_callback_message_type >= TXM_NETXDUO_CALLBACKS_START) && (callback_message.txm_module_callback_message_type < TXM_NETXDUO_CALLBACKS_END))
{
-
+
/* Call the NetX Duo module callback function. */
_txm_module_netxduo_callback_request(&callback_message);
}
#endif
-
+
#ifdef TXM_MODULE_ENABLE_FILEX
-
+
/* Determine if there is a FileX callback. */
if ((callback_message.txm_module_callback_message_type >= TXM_FILEX_CALLBACKS_START) && (callback_message.txm_module_callback_message_type < TXM_FILEX_CALLBACKS_END))
{
-
+
/* Call the FileX module callback function. */
_txm_module_filex_callback_request(&callback_message);
}
#endif
-
+
#ifdef TXM_MODULE_ENABLE_GUIX
-
+
/* Determine if there is a GUIX callback. */
if ((callback_message.txm_module_callback_message_type >= TXM_GUIX_CALLBACKS_START) && (callback_message.txm_module_callback_message_type < TXM_GUIX_CALLBACKS_END))
{
-
+
/* Call the GUIX module callback function. */
_txm_module_guix_callback_request(&callback_message);
}
#endif
-
+
#ifdef TXM_MODULE_ENABLE_USBX
-
+
/* Determine if there is a USBX callback. */
if ((callback_message.txm_module_callback_message_type >= TXM_USBX_CALLBACKS_START) && (callback_message.txm_module_callback_message_type < TXM_USBX_CALLBACKS_END))
{
-
+
/* Call the USBX callback function. */
_txm_module_usbx_callback_request(&callback_message);
}
#endif
-
+
break;
}
}
}
}
-
-
diff --git a/common_modules/module_lib/src/txm_module_object_allocate.c b/common_modules/module_lib/src/txm_module_object_allocate.c
index 32757926..0c85ae8f 100644
--- a/common_modules/module_lib/src/txm_module_object_allocate.c
+++ b/common_modules/module_lib/src/txm_module_object_allocate.c
@@ -22,29 +22,29 @@
#define TXM_MODULE
#include "txm_module.h"
-
+#ifndef TXM_MODULE_OBJECT_ALLOCATE_CALL_NOT_USED
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
-/* _txm_module_manager_object_allocate PORTABLE C */
-/* 6.1 */
+/* _txm_module_manager_object_allocate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
/* 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 */
@@ -63,7 +63,10 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_object_allocate(VOID **object_ptr, ULONG object_size)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_module_object_deallocate.c b/common_modules/module_lib/src/txm_module_object_deallocate.c
index 3936a4d8..b31ac05b 100644
--- a/common_modules/module_lib/src/txm_module_object_deallocate.c
+++ b/common_modules/module_lib/src/txm_module_object_deallocate.c
@@ -22,24 +22,24 @@
#define TXM_MODULE
#include "txm_module.h"
-
+#ifndef TXM_MODULE_OBJECT_DEALLOCATE_CALL_NOT_USED
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
/* _txm_module_manager_object_deallocate PORTABLE C */
-/* 6.1 */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
/* DESCRIPTION */
/* */
-/* This function deallocates a previously allocated object. */
+/* This function deallocates a previously allocated object. */
/* */
/* INPUT */
/* */
-/* object_ptr Object pointer to deallocate */
+/* object_ptr Object pointer to deallocate */
/* */
/* OUTPUT */
/* */
@@ -57,7 +57,10 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_object_deallocate(VOID *object_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_module_object_pointer_get.c b/common_modules/module_lib/src/txm_module_object_pointer_get.c
index 45160b09..d19742eb 100644
--- a/common_modules/module_lib/src/txm_module_object_pointer_get.c
+++ b/common_modules/module_lib/src/txm_module_object_pointer_get.c
@@ -22,13 +22,13 @@
#define TXM_MODULE
#include "txm_module.h"
-
+#ifndef TXM_MODULE_OBJECT_POINTER_GET_CALL_NOT_USED
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
/* _txm_module_manager_object_pointer_get PORTABLE C */
-/* 6.1 */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
@@ -73,7 +73,10 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_object_pointer_get(UINT object_type, CHAR *name, VOID **object_ptr)
@@ -87,3 +90,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_module_object_pointer_get_extended.c b/common_modules/module_lib/src/txm_module_object_pointer_get_extended.c
index 350ca3af..9f9e5c96 100644
--- a/common_modules/module_lib/src/txm_module_object_pointer_get_extended.c
+++ b/common_modules/module_lib/src/txm_module_object_pointer_get_extended.c
@@ -22,13 +22,13 @@
#define TXM_MODULE
#include "txm_module.h"
-
+#ifndef TXM_MODULE_OBJECT_POINTER_GET_EXTENDED_CALL_NOT_USED
/**************************************************************************/
/* */
/* FUNCTION RELEASE */
/* */
/* _txm_module_manager_object_pointer_get_extended PORTABLE C */
-/* 6.1 */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
@@ -76,7 +76,10 @@
/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_object_pointer_get_extended(UINT object_type, CHAR *name, UINT name_length, VOID **object_ptr)
@@ -94,3 +97,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_module_thread_system_suspend.c b/common_modules/module_lib/src/txm_module_thread_system_suspend.c
index 8121ca4a..287f4ab9 100644
--- a/common_modules/module_lib/src/txm_module_thread_system_suspend.c
+++ b/common_modules/module_lib/src/txm_module_thread_system_suspend.c
@@ -22,50 +22,53 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_system_suspend PORTABLE C */
-/* 6.1 */
-/* */
+#ifndef TXM_THREAD_SYSTEM_SUSPEND_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_system_suspend PORTABLE C */
+/* 6.1.10 */
+/* */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function suspends the specified thread and changes the thread */
-/* state to the value specified. Note: delayed suspension processing */
+/* DESCRIPTION */
+/* */
+/* This function suspends the specified thread and changes the thread */
+/* state to the value specified. Note: delayed suspension processing */
/* is handled outside of this routine. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to suspend */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to suspend */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* _tx_thread_priority_change Thread priority change */
-/* _tx_thread_shell_entry Thread shell function */
-/* _tx_thread_sleep Thread sleep */
-/* _tx_thread_suspend Application thread suspend */
-/* _tx_thread_terminate Thread terminate */
-/* Other ThreadX Components */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* _tx_thread_priority_change Thread priority change */
+/* _tx_thread_shell_entry Thread shell function */
+/* _tx_thread_sleep Thread sleep */
+/* _tx_thread_suspend Application thread suspend */
+/* _tx_thread_terminate Thread terminate */
+/* Other ThreadX Components */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_thread_system_suspend(TX_THREAD *thread_ptr)
@@ -79,3 +82,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_create.c b/common_modules/module_lib/src/txm_mutex_create.c
index a3a89d69..f27a8ae0 100644
--- a/common_modules/module_lib/src/txm_mutex_create.c
+++ b/common_modules/module_lib/src/txm_mutex_create.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_mutex_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_mutex_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the create mutex function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* name_ptr Pointer to mutex name */
-/* inherit Initial mutex count */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the create mutex function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* name_ptr Pointer to mutex name */
+/* inherit Initial mutex count */
/* mutex_control_block_size Size of mutex control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_MUTEX_ERROR Invalid mutex pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* TX_INHERIT_ERROR Invalid inherit option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_MUTEX_ERROR Invalid mutex pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* TX_INHERIT_ERROR Invalid inherit option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_create(TX_MUTEX *mutex_ptr, CHAR *name_ptr, UINT inherit, UINT mutex_control_block_size)
@@ -82,3 +85,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_delete.c b/common_modules/module_lib/src/txm_mutex_delete.c
index 6b720f3e..9ab9bbd6 100644
--- a/common_modules/module_lib/src/txm_mutex_delete.c
+++ b/common_modules/module_lib/src/txm_mutex_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_mutex_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_mutex_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the mutex delete function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_MUTEX_ERROR Invalid mutex pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the mutex delete function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_MUTEX_ERROR Invalid mutex pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_delete(TX_MUTEX *mutex_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_get.c b/common_modules/module_lib/src/txm_mutex_get.c
index 2d7da6ba..039c8e8a 100644
--- a/common_modules/module_lib/src/txm_mutex_get.c
+++ b/common_modules/module_lib/src/txm_mutex_get.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_mutex_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_mutex_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the mutex get function call. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_MUTEX_ERROR Invalid mutex pointer */
-/* TX_WAIT_ERROR Invalid wait option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the mutex get function call. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_MUTEX_ERROR Invalid mutex pointer */
+/* TX_WAIT_ERROR Invalid wait option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_get(TX_MUTEX *mutex_ptr, ULONG wait_option)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_info_get.c b/common_modules/module_lib/src/txm_mutex_info_get.c
index ea1d1ceb..acc13400 100644
--- a/common_modules/module_lib/src/txm_mutex_info_get.c
+++ b/common_modules/module_lib/src/txm_mutex_info_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_mutex_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_mutex_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the mutex information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* name Destination for the mutex name */
-/* count Destination for the owner count */
-/* owner Destination for the owner's */
-/* thread control block pointer */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on the mutex */
-/* suspended_count Destination for suspended count */
-/* next_mutex Destination for pointer to next */
-/* mutex on the created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_MUTEX_ERROR Invalid mutex pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the mutex information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* name Destination for the mutex name */
+/* count Destination for the owner count */
+/* owner Destination for the owner's */
+/* thread control block pointer */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on the mutex */
+/* suspended_count Destination for suspended count */
+/* next_mutex Destination for pointer to next */
+/* mutex on the created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_MUTEX_ERROR Invalid mutex pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_info_get(TX_MUTEX *mutex_ptr, CHAR **name, ULONG *count, TX_THREAD **owner, TX_THREAD **first_suspended, ULONG *suspended_count, TX_MUTEX **next_mutex)
@@ -89,3 +92,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_performance_info_get.c b/common_modules/module_lib/src/txm_mutex_performance_info_get.c
index f6c68e6b..b02e5f6d 100644
--- a/common_modules/module_lib/src/txm_mutex_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_mutex_performance_info_get.c
@@ -22,55 +22,58 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_mutex_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_mutex_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* mutex. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* mutex. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
/* puts Destination for the number of */
-/* puts on to this mutex */
-/* gets Destination for the number of */
-/* gets on this mutex */
-/* suspensions Destination for the number of */
-/* suspensions on this mutex */
-/* timeouts Destination for number of timeouts*/
-/* on this mutex */
-/* inversions Destination for number of priority*/
-/* inversions on this mutex */
-/* inheritances Destination for number of priority*/
-/* inheritances on this mutex */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* puts on to this mutex */
+/* gets Destination for the number of */
+/* gets on this mutex */
+/* suspensions Destination for the number of */
+/* suspensions on this mutex */
+/* timeouts Destination for number of timeouts*/
+/* on this mutex */
+/* inversions Destination for number of priority*/
+/* inversions on this mutex */
+/* inheritances Destination for number of priority*/
+/* inheritances on this mutex */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_mutex_performance_info_get(TX_MUTEX *mutex_ptr, ULONG *puts, ULONG *gets, ULONG *suspensions, ULONG *timeouts, ULONG *inversions, ULONG *inheritances)
@@ -91,3 +94,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_performance_system_info_get.c b/common_modules/module_lib/src/txm_mutex_performance_system_info_get.c
index 577b35e8..00a3353b 100644
--- a/common_modules/module_lib/src/txm_mutex_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_mutex_performance_system_info_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_mutex_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_mutex_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves system mutex performance information. */
-/* */
-/* INPUT */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves system mutex performance information. */
+/* */
+/* INPUT */
+/* */
/* puts Destination for total number of */
-/* mutex puts */
-/* gets Destination for total number of */
-/* mutex gets */
-/* suspensions Destination for total number of */
-/* mutex suspensions */
-/* timeouts Destination for total number of */
-/* mutex timeouts */
-/* inversions Destination for total number of */
-/* mutex priority inversions */
-/* inheritances Destination for total number of */
-/* mutex priority inheritances */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* mutex puts */
+/* gets Destination for total number of */
+/* mutex gets */
+/* suspensions Destination for total number of */
+/* mutex suspensions */
+/* timeouts Destination for total number of */
+/* mutex timeouts */
+/* inversions Destination for total number of */
+/* mutex priority inversions */
+/* inheritances Destination for total number of */
+/* mutex priority inheritances */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_mutex_performance_system_info_get(ULONG *puts, ULONG *gets, ULONG *suspensions, ULONG *timeouts, ULONG *inversions, ULONG *inheritances)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_prioritize.c b/common_modules/module_lib/src/txm_mutex_prioritize.c
index a15e8cbb..5a9d6b5c 100644
--- a/common_modules/module_lib/src/txm_mutex_prioritize.c
+++ b/common_modules/module_lib/src/txm_mutex_prioritize.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_mutex_prioritize PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_PRIORITIZE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_mutex_prioritize PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the mutex prioritize call. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the mutex prioritize call. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_prioritize(TX_MUTEX *mutex_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_mutex_put.c b/common_modules/module_lib/src/txm_mutex_put.c
index 738d08c6..d2cf47e2 100644
--- a/common_modules/module_lib/src/txm_mutex_put.c
+++ b/common_modules/module_lib/src/txm_mutex_put.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_mutex_put PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MUTEX_PUT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_mutex_put PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the mutex put function call. */
-/* */
-/* INPUT */
-/* */
-/* mutex_ptr Pointer to mutex control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_MUTEX_ERROR Invalid mutex pointer */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the mutex put function call. */
+/* */
+/* INPUT */
+/* */
+/* mutex_ptr Pointer to mutex control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_MUTEX_ERROR Invalid mutex pointer */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_mutex_put(TX_MUTEX *mutex_ptr)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_create.c b/common_modules/module_lib/src/txm_queue_create.c
index a84e8398..e8aa4444 100644
--- a/common_modules/module_lib/src/txm_queue_create.c
+++ b/common_modules/module_lib/src/txm_queue_create.c
@@ -22,50 +22,53 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue create function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* name_ptr Pointer to queue name */
-/* message_size Size of each queue message */
-/* queue_start Starting address of the queue area*/
-/* queue_size Number of bytes in the queue */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue create function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* name_ptr Pointer to queue name */
+/* message_size Size of each queue message */
+/* queue_start Starting address of the queue area*/
+/* queue_size Number of bytes in the queue */
/* queue_control_block_size Size of queue control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_PTR_ERROR Invalid starting address of queue */
-/* TX_SIZE_ERROR Invalid message queue size */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_PTR_ERROR Invalid starting address of queue */
+/* TX_SIZE_ERROR Invalid message queue size */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_create(TX_QUEUE *queue_ptr, CHAR *name_ptr, UINT message_size, VOID *queue_start, ULONG queue_size, UINT queue_control_block_size)
@@ -85,3 +88,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_delete.c b/common_modules/module_lib/src/txm_queue_delete.c
index aae1004e..fccd8d0d 100644
--- a/common_modules/module_lib/src/txm_queue_delete.c
+++ b/common_modules/module_lib/src/txm_queue_delete.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue delete function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue delete function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_delete(TX_QUEUE *queue_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_flush.c b/common_modules/module_lib/src/txm_queue_flush.c
index c660e19f..caac5fcf 100644
--- a/common_modules/module_lib/src/txm_queue_flush.c
+++ b/common_modules/module_lib/src/txm_queue_flush.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_flush PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_FLUSH_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_flush PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue flush function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue flush function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_flush(TX_QUEUE *queue_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_front_send.c b/common_modules/module_lib/src/txm_queue_front_send.c
index 47232930..2ba07744 100644
--- a/common_modules/module_lib/src/txm_queue_front_send.c
+++ b/common_modules/module_lib/src/txm_queue_front_send.c
@@ -22,47 +22,50 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_front_send PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_FRONT_SEND_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_front_send PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue send function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* source_ptr Pointer to message source */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_PTR_ERROR Invalid source pointer - NULL */
-/* TX_WAIT_ERROR Invalid wait option - non thread */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue send function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* source_ptr Pointer to message source */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_PTR_ERROR Invalid source pointer - NULL */
+/* TX_WAIT_ERROR Invalid wait option - non thread */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_front_send(TX_QUEUE *queue_ptr, VOID *source_ptr, ULONG wait_option)
@@ -76,3 +79,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_info_get.c b/common_modules/module_lib/src/txm_queue_info_get.c
index 045dd26d..3fae1cbb 100644
--- a/common_modules/module_lib/src/txm_queue_info_get.c
+++ b/common_modules/module_lib/src/txm_queue_info_get.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* name Destination for the queue name */
-/* enqueued Destination for enqueued count */
-/* available_storage Destination for available storage */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on this queue */
-/* suspended_count Destination for suspended count */
-/* next_queue Destination for pointer to next */
-/* queue on the created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* name Destination for the queue name */
+/* enqueued Destination for enqueued count */
+/* available_storage Destination for available storage */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on this queue */
+/* suspended_count Destination for suspended count */
+/* next_queue Destination for pointer to next */
+/* queue on the created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_info_get(TX_QUEUE *queue_ptr, CHAR **name, ULONG *enqueued, ULONG *available_storage, TX_THREAD **first_suspended, ULONG *suspended_count, TX_QUEUE **next_queue)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_performance_info_get.c b/common_modules/module_lib/src/txm_queue_performance_info_get.c
index d68998e9..f3840cc8 100644
--- a/common_modules/module_lib/src/txm_queue_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_queue_performance_info_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_queue_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_queue_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* queue. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* messages_sent Destination for messages sent */
-/* messages_received Destination for messages received */
-/* empty_suspensions Destination for number of empty */
-/* queue suspensions */
-/* full_suspensions Destination for number of full */
-/* queue suspensions */
-/* full_errors Destination for queue full errors */
-/* returned - no suspension */
-/* timeouts Destination for number of timeouts*/
-/* on this queue */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* queue. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* messages_sent Destination for messages sent */
+/* messages_received Destination for messages received */
+/* empty_suspensions Destination for number of empty */
+/* queue suspensions */
+/* full_suspensions Destination for number of full */
+/* queue suspensions */
+/* full_errors Destination for queue full errors */
+/* returned - no suspension */
+/* timeouts Destination for number of timeouts*/
+/* on this queue */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_queue_performance_info_get(TX_QUEUE *queue_ptr, ULONG *messages_sent, ULONG *messages_received, ULONG *empty_suspensions, ULONG *full_suspensions, ULONG *full_errors, ULONG *timeouts)
@@ -89,3 +92,4 @@ ALIGN_TYPE extra_parameters[5];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_performance_system_info_get.c b/common_modules/module_lib/src/txm_queue_performance_system_info_get.c
index 8ef7459f..18b33e39 100644
--- a/common_modules/module_lib/src/txm_queue_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_queue_performance_system_info_get.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_queue_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_queue_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves queue system performance information. */
-/* */
-/* INPUT */
-/* */
-/* messages_sent Destination for total messages */
-/* sent */
-/* messages_received Destination for total messages */
-/* received */
-/* empty_suspensions Destination for total empty */
-/* queue suspensions */
-/* full_suspensions Destination for total full */
-/* queue suspensions */
-/* full_errors Destination for total queue full */
-/* errors returned - no suspension */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves queue system performance information. */
+/* */
+/* INPUT */
+/* */
+/* messages_sent Destination for total messages */
+/* sent */
+/* messages_received Destination for total messages */
+/* received */
+/* empty_suspensions Destination for total empty */
+/* queue suspensions */
+/* full_suspensions Destination for total full */
+/* queue suspensions */
+/* full_errors Destination for total queue full */
+/* errors returned - no suspension */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_queue_performance_system_info_get(ULONG *messages_sent, ULONG *messages_received, ULONG *empty_suspensions, ULONG *full_suspensions, ULONG *full_errors, ULONG *timeouts)
@@ -88,3 +91,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_prioritize.c b/common_modules/module_lib/src/txm_queue_prioritize.c
index bd2c1d1d..3c08d3e7 100644
--- a/common_modules/module_lib/src/txm_queue_prioritize.c
+++ b/common_modules/module_lib/src/txm_queue_prioritize.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_prioritize PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_PRIORITIZE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_prioritize PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue prioritize call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue prioritize call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_prioritize(TX_QUEUE *queue_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_receive.c b/common_modules/module_lib/src/txm_queue_receive.c
index eaa4fa77..a18b34db 100644
--- a/common_modules/module_lib/src/txm_queue_receive.c
+++ b/common_modules/module_lib/src/txm_queue_receive.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_receive PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_RECEIVE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_receive PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue receive function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* destination_ptr Pointer to message destination */
-/* **** MUST BE LARGE ENOUGH TO */
-/* HOLD MESSAGE **** */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_PTR_ERROR Invalid destination pointer (NULL)*/
-/* TX_WAIT_ERROR Invalid wait option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue receive function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* destination_ptr Pointer to message destination */
+/* **** MUST BE LARGE ENOUGH TO */
+/* HOLD MESSAGE **** */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_PTR_ERROR Invalid destination pointer (NULL)*/
+/* TX_WAIT_ERROR Invalid wait option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_receive(TX_QUEUE *queue_ptr, VOID *destination_ptr, ULONG wait_option)
@@ -78,3 +81,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_send.c b/common_modules/module_lib/src/txm_queue_send.c
index 23f97fc2..9f26f078 100644
--- a/common_modules/module_lib/src/txm_queue_send.c
+++ b/common_modules/module_lib/src/txm_queue_send.c
@@ -22,47 +22,50 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_send PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_SEND_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_send PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue send function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block */
-/* source_ptr Pointer to message source */
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_QUEUE_ERROR Invalid queue pointer */
-/* TX_PTR_ERROR Invalid source pointer - NULL */
-/* TX_WAIT_ERROR Invalid wait option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue send function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block */
+/* source_ptr Pointer to message source */
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_QUEUE_ERROR Invalid queue pointer */
+/* TX_PTR_ERROR Invalid source pointer - NULL */
+/* TX_WAIT_ERROR Invalid wait option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_send(TX_QUEUE *queue_ptr, VOID *source_ptr, ULONG wait_option)
@@ -76,3 +79,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_queue_send_notify.c b/common_modules/module_lib/src/txm_queue_send_notify.c
index fece5a5a..fb8091a1 100644
--- a/common_modules/module_lib/src/txm_queue_send_notify.c
+++ b/common_modules/module_lib/src/txm_queue_send_notify.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_queue_send_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_QUEUE_SEND_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_queue_send_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the queue send notify */
-/* callback function call. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Pointer to queue control block*/
-/* queue_send_notify Application callback function */
-/* (TX_NULL disables notify) */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the queue send notify */
+/* callback function call. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Pointer to queue control block*/
+/* queue_send_notify Application callback function */
+/* (TX_NULL disables notify) */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_queue_send_notify(TX_QUEUE *queue_ptr, VOID (*queue_send_notify)(TX_QUEUE *notify_queue_ptr))
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_ceiling_put.c b/common_modules/module_lib/src/txm_semaphore_ceiling_put.c
index 0b325d72..a596e68d 100644
--- a/common_modules/module_lib/src/txm_semaphore_ceiling_put.c
+++ b/common_modules/module_lib/src/txm_semaphore_ceiling_put.c
@@ -22,46 +22,49 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_ceiling_put PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_CEILING_PUT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_ceiling_put PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore ceiling put */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore */
-/* ceiling Maximum value of semaphore */
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* TX_INVALID_CEILING Invalid semaphore ceiling */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore ceiling put */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore */
+/* ceiling Maximum value of semaphore */
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* TX_INVALID_CEILING Invalid semaphore ceiling */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_ceiling_put(TX_SEMAPHORE *semaphore_ptr, ULONG ceiling)
@@ -75,3 +78,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_create.c b/common_modules/module_lib/src/txm_semaphore_create.c
index c20ac76d..43267e23 100644
--- a/common_modules/module_lib/src/txm_semaphore_create.c
+++ b/common_modules/module_lib/src/txm_semaphore_create.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the create semaphore function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* name_ptr Pointer to semaphore name */
-/* initial_count Initial semaphore count */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the create semaphore function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* name_ptr Pointer to semaphore name */
+/* initial_count Initial semaphore count */
/* semaphore_control_block_size Size of semaphore control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_create(TX_SEMAPHORE *semaphore_ptr, CHAR *name_ptr, ULONG initial_count, UINT semaphore_control_block_size)
@@ -81,3 +84,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_delete.c b/common_modules/module_lib/src/txm_semaphore_delete.c
index 1fa5bf5f..1be358a7 100644
--- a/common_modules/module_lib/src/txm_semaphore_delete.c
+++ b/common_modules/module_lib/src/txm_semaphore_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore delete function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore delete function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_delete(TX_SEMAPHORE *semaphore_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_get.c b/common_modules/module_lib/src/txm_semaphore_get.c
index f7ecd3e5..9b1d9d2a 100644
--- a/common_modules/module_lib/src/txm_semaphore_get.c
+++ b/common_modules/module_lib/src/txm_semaphore_get.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore get function call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* wait_option Suspension option */
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* TX_WAIT_ERROR Invalid wait option */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore get function call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* wait_option Suspension option */
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* TX_WAIT_ERROR Invalid wait option */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_get(TX_SEMAPHORE *semaphore_ptr, ULONG wait_option)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_info_get.c b/common_modules/module_lib/src/txm_semaphore_info_get.c
index cd2cac80..5a91bb7f 100644
--- a/common_modules/module_lib/src/txm_semaphore_info_get.c
+++ b/common_modules/module_lib/src/txm_semaphore_info_get.c
@@ -22,52 +22,55 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* name Destination for the semaphore name*/
-/* current_value Destination for current value of */
-/* the semaphore */
-/* first_suspended Destination for pointer of first */
-/* thread suspended on semaphore */
-/* suspended_count Destination for suspended count */
-/* next_semaphore Destination for pointer to next */
-/* semaphore on the created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* name Destination for the semaphore name*/
+/* current_value Destination for current value of */
+/* the semaphore */
+/* first_suspended Destination for pointer of first */
+/* thread suspended on semaphore */
+/* suspended_count Destination for suspended count */
+/* next_semaphore Destination for pointer to next */
+/* semaphore on the created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_info_get(TX_SEMAPHORE *semaphore_ptr, CHAR **name, ULONG *current_value, TX_THREAD **first_suspended, ULONG *suspended_count, TX_SEMAPHORE **next_semaphore)
@@ -87,3 +90,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_performance_info_get.c b/common_modules/module_lib/src/txm_semaphore_performance_info_get.c
index f227f84a..d294eaf7 100644
--- a/common_modules/module_lib/src/txm_semaphore_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_semaphore_performance_info_get.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_semaphore_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_semaphore_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* semaphore. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* semaphore. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
/* puts Destination for the number of */
-/* puts on to this semaphore */
-/* gets Destination for the number of */
-/* gets on this semaphore */
-/* suspensions Destination for the number of */
-/* suspensions on this semaphore */
-/* timeouts Destination for number of timeouts*/
-/* on this semaphore */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* puts on to this semaphore */
+/* gets Destination for the number of */
+/* gets on this semaphore */
+/* suspensions Destination for the number of */
+/* suspensions on this semaphore */
+/* timeouts Destination for number of timeouts*/
+/* on this semaphore */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_semaphore_performance_info_get(TX_SEMAPHORE *semaphore_ptr, ULONG *puts, ULONG *gets, ULONG *suspensions, ULONG *timeouts)
@@ -85,3 +88,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_performance_system_info_get.c b/common_modules/module_lib/src/txm_semaphore_performance_system_info_get.c
index 372bab2c..faa2f877 100644
--- a/common_modules/module_lib/src/txm_semaphore_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_semaphore_performance_system_info_get.c
@@ -22,49 +22,52 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_semaphore_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_semaphore_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves system semaphore performance information. */
-/* */
-/* INPUT */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves system semaphore performance information. */
+/* */
+/* INPUT */
+/* */
/* puts Destination for total number of */
-/* semaphore puts */
-/* gets Destination for total number of */
-/* semaphore gets */
-/* suspensions Destination for total number of */
-/* semaphore suspensions */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* semaphore puts */
+/* gets Destination for total number of */
+/* semaphore gets */
+/* suspensions Destination for total number of */
+/* semaphore suspensions */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_semaphore_performance_system_info_get(ULONG *puts, ULONG *gets, ULONG *suspensions, ULONG *timeouts)
@@ -82,3 +85,4 @@ ALIGN_TYPE extra_parameters[2];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_prioritize.c b/common_modules/module_lib/src/txm_semaphore_prioritize.c
index 142696aa..c8e40279 100644
--- a/common_modules/module_lib/src/txm_semaphore_prioritize.c
+++ b/common_modules/module_lib/src/txm_semaphore_prioritize.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_semaphore_prioritize PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_PRIORITIZE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_semaphore_prioritize PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore prioritize call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore prioritize call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_prioritize(TX_SEMAPHORE *semaphore_ptr)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_put.c b/common_modules/module_lib/src/txm_semaphore_put.c
index e92c459b..a59712a8 100644
--- a/common_modules/module_lib/src/txm_semaphore_put.c
+++ b/common_modules/module_lib/src/txm_semaphore_put.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_put PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_PUT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_put PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore put function call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore control block*/
-/* */
-/* OUTPUT */
-/* */
-/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore put function call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore control block*/
+/* */
+/* OUTPUT */
+/* */
+/* TX_SEMAPHORE_ERROR Invalid semaphore pointer */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_put(TX_SEMAPHORE *semaphore_ptr)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_semaphore_put_notify.c b/common_modules/module_lib/src/txm_semaphore_put_notify.c
index a58991e0..5b79df25 100644
--- a/common_modules/module_lib/src/txm_semaphore_put_notify.c
+++ b/common_modules/module_lib/src/txm_semaphore_put_notify.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_semaphore_put_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_SEMAPHORE_PUT_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_semaphore_put_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the semaphore put notify */
-/* callback function call. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Pointer to semaphore */
-/* semaphore_put_notify Application callback function */
-/* (TX_NULL disables notify) */
-/* */
-/* OUTPUT */
-/* */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the semaphore put notify */
+/* callback function call. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Pointer to semaphore */
+/* semaphore_put_notify Application callback function */
+/* (TX_NULL disables notify) */
+/* */
+/* OUTPUT */
+/* */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_semaphore_put_notify(TX_SEMAPHORE *semaphore_ptr, VOID (*semaphore_put_notify)(TX_SEMAPHORE *notify_semaphore_ptr))
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_create.c b/common_modules/module_lib/src/txm_thread_create.c
index bd910e6b..e8cb124a 100644
--- a/common_modules/module_lib/src/txm_thread_create.c
+++ b/common_modules/module_lib/src/txm_thread_create.c
@@ -22,58 +22,61 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread create function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Thread control block pointer */
-/* name Pointer to thread name string */
-/* entry_function Entry function of the thread */
-/* entry_input 32-bit input value to thread */
-/* stack_start Pointer to start of stack */
-/* stack_size Stack size in bytes */
-/* priority Priority of thread (0-31) */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread create function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Thread control block pointer */
+/* name Pointer to thread name string */
+/* entry_function Entry function of the thread */
+/* entry_input 32-bit input value to thread */
+/* stack_start Pointer to start of stack */
+/* stack_size Stack size in bytes */
+/* priority Priority of thread (0-31) */
/* preempt_threshold Preemption threshold */
-/* time_slice Thread time-slice value */
-/* auto_start Automatic start selection */
+/* time_slice Thread time-slice value */
+/* auto_start Automatic start selection */
/* thread_control_block_size Size of thread control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_PTR_ERROR Invalid entry point or stack */
-/* address */
-/* TX_SIZE_ERROR Invalid stack size -too small */
-/* TX_PRIORITY_ERROR Invalid thread priority */
-/* TX_THRESH_ERROR Invalid preemption threshold */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_PTR_ERROR Invalid entry point or stack */
+/* address */
+/* TX_SIZE_ERROR Invalid stack size -too small */
+/* TX_PRIORITY_ERROR Invalid thread priority */
+/* TX_THRESH_ERROR Invalid preemption threshold */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr, VOID (*entry_function)(ULONG entry_input), ULONG entry_input, VOID *stack_start, ULONG stack_size, UINT priority, UINT preempt_threshold, ULONG time_slice, UINT auto_start, UINT thread_control_block_size)
@@ -98,3 +101,4 @@ ALIGN_TYPE extra_parameters[9];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_delete.c b/common_modules/module_lib/src/txm_thread_delete.c
index 6e1e6b76..8548d243 100644
--- a/common_modules/module_lib/src/txm_thread_delete.c
+++ b/common_modules/module_lib/src/txm_thread_delete.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread delete function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to suspend */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread delete function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to suspend */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_delete(TX_THREAD *thread_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_entry_exit_notify.c b/common_modules/module_lib/src/txm_thread_entry_exit_notify.c
index e8fa8b08..ab652457 100644
--- a/common_modules/module_lib/src/txm_thread_entry_exit_notify.c
+++ b/common_modules/module_lib/src/txm_thread_entry_exit_notify.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_entry_exit_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_ENTRY_EXIT_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_entry_exit_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread entry/exit notify */
-/* callback function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread */
-/* thread_entry_exit_notify Pointer to notify callback */
-/* function, TX_NULL to disable*/
-/* */
-/* OUTPUT */
-/* */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread entry/exit notify */
+/* callback function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread */
+/* thread_entry_exit_notify Pointer to notify callback */
+/* function, TX_NULL to disable*/
+/* */
+/* OUTPUT */
+/* */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_entry_exit_notify(TX_THREAD *thread_ptr, VOID (*thread_entry_exit_notify)(TX_THREAD *notify_thread_ptr, UINT type))
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_identify.c b/common_modules/module_lib/src/txm_thread_identify.c
index 7dc4297d..99b14a54 100644
--- a/common_modules/module_lib/src/txm_thread_identify.c
+++ b/common_modules/module_lib/src/txm_thread_identify.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_identify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_IDENTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_identify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function returns the control block pointer of the currently */
-/* executing thread. If the return value is NULL, no thread is */
-/* executing. */
-/* */
-/* INPUT */
-/* */
-/* None */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD * Pointer to control block of */
-/* currently executing thread */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function returns the control block pointer of the currently */
+/* executing thread. If the return value is NULL, no thread is */
+/* executing. */
+/* */
+/* INPUT */
+/* */
+/* None */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD * Pointer to control block of */
+/* currently executing thread */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
TX_THREAD *_tx_thread_identify(VOID)
@@ -74,3 +77,4 @@ TX_THREAD *return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_info_get.c b/common_modules/module_lib/src/txm_thread_info_get.c
index ca9f4684..4513dca3 100644
--- a/common_modules/module_lib/src/txm_thread_info_get.c
+++ b/common_modules/module_lib/src/txm_thread_info_get.c
@@ -22,55 +22,58 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread control block */
-/* name Destination for the thread name */
-/* state Destination for thread state */
-/* run_count Destination for thread run count */
-/* priority Destination for thread priority */
-/* preemption_threshold Destination for thread preemption-*/
-/* threshold */
-/* time_slice Destination for thread time-slice */
-/* next_thread Destination for next created */
-/* thread */
-/* next_suspended_thread Destination for next suspended */
-/* thread */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread control block */
+/* name Destination for the thread name */
+/* state Destination for thread state */
+/* run_count Destination for thread run count */
+/* priority Destination for thread priority */
+/* preemption_threshold Destination for thread preemption-*/
+/* threshold */
+/* time_slice Destination for thread time-slice */
+/* next_thread Destination for next created */
+/* thread */
+/* next_suspended_thread Destination for next suspended */
+/* thread */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_info_get(TX_THREAD *thread_ptr, CHAR **name, UINT *state, ULONG *run_count, UINT *priority, UINT *preemption_threshold, ULONG *time_slice, TX_THREAD **next_thread, TX_THREAD **next_suspended_thread)
@@ -93,3 +96,4 @@ ALIGN_TYPE extra_parameters[7];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_interrupt_control.c b/common_modules/module_lib/src/txm_thread_interrupt_control.c
index 628672d3..1352fccc 100644
--- a/common_modules/module_lib/src/txm_thread_interrupt_control.c
+++ b/common_modules/module_lib/src/txm_thread_interrupt_control.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_interrupt_control PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_INTERRUPT_CONTROL_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_interrupt_control PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function is responsible for changing the interrupt lockout */
-/* posture of the system. */
-/* */
-/* INPUT */
-/* */
-/* new_posture New interrupt lockout posture */
-/* */
-/* OUTPUT */
-/* */
-/* status | old_posture Return status if feature not */
-/* enabled, old interrupt lockout */
-/* posture if feature enabled. */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function is responsible for changing the interrupt lockout */
+/* posture of the system. */
+/* */
+/* INPUT */
+/* */
+/* new_posture New interrupt lockout posture */
+/* */
+/* OUTPUT */
+/* */
+/* status | old_posture Return status if feature not */
+/* enabled, old interrupt lockout */
+/* posture if feature enabled. */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_thread_interrupt_control(UINT new_posture)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_performance_info_get.c b/common_modules/module_lib/src/txm_thread_performance_info_get.c
index c1cac33c..2b2fa4a1 100644
--- a/common_modules/module_lib/src/txm_thread_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_thread_performance_info_get.c
@@ -22,68 +22,71 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* thread. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread control block */
-/* resumptions Destination for number of times */
-/* thread was resumed */
-/* suspensions Destination for number of times */
-/* thread was suspended */
-/* solicited_preemptions Destination for number of times */
-/* thread called another service */
-/* that resulted in preemption */
-/* interrupt_preemptions Destination for number of times */
-/* thread was preempted by another */
-/* thread made ready in Interrupt */
-/* Service Routine (ISR) */
-/* priority_inversions Destination for number of times */
-/* a priority inversion was */
-/* detected for this thread */
-/* time_slices Destination for number of times */
-/* thread was time-sliced */
-/* relinquishes Destination for number of thread */
-/* relinquishes */
-/* timeouts Destination for number of timeouts*/
-/* for thread */
-/* wait_aborts Destination for number of wait */
-/* aborts for thread */
-/* last_preempted_by Destination for pointer of the */
-/* thread that last preempted this */
-/* thread */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* thread. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread control block */
+/* resumptions Destination for number of times */
+/* thread was resumed */
+/* suspensions Destination for number of times */
+/* thread was suspended */
+/* solicited_preemptions Destination for number of times */
+/* thread called another service */
+/* that resulted in preemption */
+/* interrupt_preemptions Destination for number of times */
+/* thread was preempted by another */
+/* thread made ready in Interrupt */
+/* Service Routine (ISR) */
+/* priority_inversions Destination for number of times */
+/* a priority inversion was */
+/* detected for this thread */
+/* time_slices Destination for number of times */
+/* thread was time-sliced */
+/* relinquishes Destination for number of thread */
+/* relinquishes */
+/* timeouts Destination for number of timeouts*/
+/* for thread */
+/* wait_aborts Destination for number of wait */
+/* aborts for thread */
+/* last_preempted_by Destination for pointer of the */
+/* thread that last preempted this */
+/* thread */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_thread_performance_info_get(TX_THREAD *thread_ptr, ULONG *resumptions, ULONG *suspensions, ULONG *solicited_preemptions, ULONG *interrupt_preemptions, ULONG *priority_inversions, ULONG *time_slices, ULONG *relinquishes, ULONG *timeouts, ULONG *wait_aborts, TX_THREAD **last_preempted_by)
@@ -108,3 +111,4 @@ ALIGN_TYPE extra_parameters[9];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_performance_system_info_get.c b/common_modules/module_lib/src/txm_thread_performance_system_info_get.c
index 5e67e96e..7093a564 100644
--- a/common_modules/module_lib/src/txm_thread_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_thread_performance_system_info_get.c
@@ -22,68 +22,71 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves thread system performance information. */
-/* */
-/* INPUT */
-/* */
-/* resumptions Destination for total number of */
-/* thread resumptions */
-/* suspensions Destination for total number of */
-/* thread suspensions */
-/* solicited_preemptions Destination for total number of */
-/* thread preemption from thread */
-/* API calls */
-/* interrupt_preemptions Destination for total number of */
-/* thread preemptions as a result */
-/* of threads made ready inside of */
-/* Interrupt Service Routines */
-/* priority_inversions Destination for total number of */
-/* priority inversions */
-/* time_slices Destination for total number of */
-/* time-slices */
-/* relinquishes Destination for total number of */
-/* relinquishes */
-/* timeouts Destination for total number of */
-/* timeouts */
-/* wait_aborts Destination for total number of */
-/* wait aborts */
-/* non_idle_returns Destination for total number of */
-/* times threads return when */
-/* another thread is ready */
-/* idle_returns Destination for total number of */
-/* times threads return when no */
-/* other thread is ready */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves thread system performance information. */
+/* */
+/* INPUT */
+/* */
+/* resumptions Destination for total number of */
+/* thread resumptions */
+/* suspensions Destination for total number of */
+/* thread suspensions */
+/* solicited_preemptions Destination for total number of */
+/* thread preemption from thread */
+/* API calls */
+/* interrupt_preemptions Destination for total number of */
+/* thread preemptions as a result */
+/* of threads made ready inside of */
+/* Interrupt Service Routines */
+/* priority_inversions Destination for total number of */
+/* priority inversions */
+/* time_slices Destination for total number of */
+/* time-slices */
+/* relinquishes Destination for total number of */
+/* relinquishes */
+/* timeouts Destination for total number of */
+/* timeouts */
+/* wait_aborts Destination for total number of */
+/* wait aborts */
+/* non_idle_returns Destination for total number of */
+/* times threads return when */
+/* another thread is ready */
+/* idle_returns Destination for total number of */
+/* times threads return when no */
+/* other thread is ready */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_thread_performance_system_info_get(ULONG *resumptions, ULONG *suspensions, ULONG *solicited_preemptions, ULONG *interrupt_preemptions, ULONG *priority_inversions, ULONG *time_slices, ULONG *relinquishes, ULONG *timeouts, ULONG *wait_aborts, ULONG *non_idle_returns, ULONG *idle_returns)
@@ -108,3 +111,4 @@ ALIGN_TYPE extra_parameters[9];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_preemption_change.c b/common_modules/module_lib/src/txm_thread_preemption_change.c
index 9111c15f..5b6a7845 100644
--- a/common_modules/module_lib/src/txm_thread_preemption_change.c
+++ b/common_modules/module_lib/src/txm_thread_preemption_change.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_preemption_change PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_PREEMPTION_CHANGE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_preemption_change PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the preemption threshold change */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread */
-/* new_threshold New preemption threshold */
-/* old_threshold Old preemption threshold */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_PTR_ERROR Invalid old threshold pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the preemption threshold change */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread */
+/* new_threshold New preemption threshold */
+/* old_threshold Old preemption threshold */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_PTR_ERROR Invalid old threshold pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_preemption_change(TX_THREAD *thread_ptr, UINT new_threshold, UINT *old_threshold)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_priority_change.c b/common_modules/module_lib/src/txm_thread_priority_change.c
index 4ee47893..51d2b5f6 100644
--- a/common_modules/module_lib/src/txm_thread_priority_change.c
+++ b/common_modules/module_lib/src/txm_thread_priority_change.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_priority_change PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_PRIORITY_CHANGE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_priority_change PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the change priority function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to suspend */
-/* new_priority New thread priority */
-/* old_priority Old thread priority */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_PTR_ERROR Invalid old priority pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the change priority function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to suspend */
+/* new_priority New thread priority */
+/* old_priority Old thread priority */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_PTR_ERROR Invalid old priority pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_priority_change(TX_THREAD *thread_ptr, UINT new_priority, UINT *old_priority)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_relinquish.c b/common_modules/module_lib/src/txm_thread_relinquish.c
index 8e34e235..83d4313d 100644
--- a/common_modules/module_lib/src/txm_thread_relinquish.c
+++ b/common_modules/module_lib/src/txm_thread_relinquish.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_relinquish PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_RELINQUISH_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_relinquish PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks to make sure a thread is executing before the */
-/* relinquish is executed. */
-/* */
-/* INPUT */
-/* */
-/* None */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks to make sure a thread is executing before the */
+/* relinquish is executed. */
+/* */
+/* INPUT */
+/* */
+/* None */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
VOID _txe_thread_relinquish(VOID)
@@ -68,3 +71,4 @@ VOID _txe_thread_relinquish(VOID)
/* Call module manager dispatcher. */
(_txm_module_kernel_call_dispatcher)(TXM_THREAD_RELINQUISH_CALL, 0, 0, 0);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_reset.c b/common_modules/module_lib/src/txm_thread_reset.c
index 54ea25f7..6cae0bfe 100644
--- a/common_modules/module_lib/src/txm_thread_reset.c
+++ b/common_modules/module_lib/src/txm_thread_reset.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_reset PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_RESET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_reset PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread reset function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to reset */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread reset function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to reset */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_reset(TX_THREAD *thread_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_resume.c b/common_modules/module_lib/src/txm_thread_resume.c
index 0c92b154..9ed41d11 100644
--- a/common_modules/module_lib/src/txm_thread_resume.c
+++ b/common_modules/module_lib/src/txm_thread_resume.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_resume PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_RESUME_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_resume PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the resume thread function call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to resume */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the resume thread function call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to resume */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_resume(TX_THREAD *thread_ptr)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_sleep.c b/common_modules/module_lib/src/txm_thread_sleep.c
index 2da82b7d..0e33cd43 100644
--- a/common_modules/module_lib/src/txm_thread_sleep.c
+++ b/common_modules/module_lib/src/txm_thread_sleep.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_sleep PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_SLEEP_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_sleep PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function handles application thread sleep requests. If the */
-/* sleep request was called from a non-thread, an error is returned. */
-/* */
-/* INPUT */
-/* */
-/* timer_ticks Number of timer ticks to sleep*/
-/* */
-/* OUTPUT */
-/* */
-/* status Return completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function handles application thread sleep requests. If the */
+/* sleep request was called from a non-thread, an error is returned. */
+/* */
+/* INPUT */
+/* */
+/* timer_ticks Number of timer ticks to sleep*/
+/* */
+/* OUTPUT */
+/* */
+/* status Return completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_thread_sleep(ULONG timer_ticks)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_stack_error_notify.c b/common_modules/module_lib/src/txm_thread_stack_error_notify.c
index fbad1da7..6946b234 100644
--- a/common_modules/module_lib/src/txm_thread_stack_error_notify.c
+++ b/common_modules/module_lib/src/txm_thread_stack_error_notify.c
@@ -22,47 +22,50 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_thread_stack_error_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_STACK_ERROR_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_thread_stack_error_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function registers an application stack error handler. If */
-/* ThreadX detects a stack error, this application handler is called. */
-/* */
-/* Note: stack checking must be enabled for this routine to serve any */
-/* purpose via the TX_ENABLE_STACK_CHECKING define. */
-/* */
-/* INPUT */
-/* */
-/* stack_error_handler Pointer to stack error */
-/* handler, TX_NULL to disable */
-/* */
-/* OUTPUT */
-/* */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function registers an application stack error handler. If */
+/* ThreadX detects a stack error, this application handler is called. */
+/* */
+/* Note: stack checking must be enabled for this routine to serve any */
+/* purpose via the TX_ENABLE_STACK_CHECKING define. */
+/* */
+/* INPUT */
+/* */
+/* stack_error_handler Pointer to stack error */
+/* handler, TX_NULL to disable */
+/* */
+/* OUTPUT */
+/* */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_thread_stack_error_notify(VOID (*stack_error_handler)(TX_THREAD *thread_ptr))
@@ -76,3 +79,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_suspend.c b/common_modules/module_lib/src/txm_thread_suspend.c
index a8a25ff1..a88f866c 100644
--- a/common_modules/module_lib/src/txm_thread_suspend.c
+++ b/common_modules/module_lib/src/txm_thread_suspend.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_suspend PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_SUSPEND_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_suspend PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread suspend function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to suspend */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread suspend function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to suspend */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_suspend(TX_THREAD *thread_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_terminate.c b/common_modules/module_lib/src/txm_thread_terminate.c
index 50acf59f..9947228c 100644
--- a/common_modules/module_lib/src/txm_thread_terminate.c
+++ b/common_modules/module_lib/src/txm_thread_terminate.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_terminate PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_TERMINATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_terminate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread terminate function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to suspend */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread terminate function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to suspend */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_terminate(TX_THREAD *thread_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_time_slice_change.c b/common_modules/module_lib/src/txm_thread_time_slice_change.c
index 7183b4c8..29760f28 100644
--- a/common_modules/module_lib/src/txm_thread_time_slice_change.c
+++ b/common_modules/module_lib/src/txm_thread_time_slice_change.c
@@ -22,47 +22,50 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_time_slice_change PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_TIME_SLICE_CHANGE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_time_slice_change PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the time slice change function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread */
-/* new_time_slice New time slice */
-/* old_time_slice Old time slice */
-/* */
-/* OUTPUT */
-/* */
-/* TX_THREAD_ERROR Invalid thread pointer */
-/* TX_CALLER_ERROR Invalid caller of function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the time slice change function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread */
+/* new_time_slice New time slice */
+/* old_time_slice Old time slice */
+/* */
+/* OUTPUT */
+/* */
+/* TX_THREAD_ERROR Invalid thread pointer */
+/* TX_CALLER_ERROR Invalid caller of function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_time_slice_change(TX_THREAD *thread_ptr, ULONG new_time_slice, ULONG *old_time_slice)
@@ -76,3 +79,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_thread_wait_abort.c b/common_modules/module_lib/src/txm_thread_wait_abort.c
index 3177165a..973c7983 100644
--- a/common_modules/module_lib/src/txm_thread_wait_abort.c
+++ b/common_modules/module_lib/src/txm_thread_wait_abort.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_thread_wait_abort PORTABLE C */
-/* 6.1 */
+#ifndef TXM_THREAD_WAIT_ABORT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_thread_wait_abort PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the thread wait abort function */
-/* call. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Thread to abort the wait on */
-/* */
-/* OUTPUT */
-/* */
-/* status Return completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the thread wait abort function */
+/* call. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Thread to abort the wait on */
+/* */
+/* OUTPUT */
+/* */
+/* status Return completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_thread_wait_abort(TX_THREAD *thread_ptr)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_time_get.c b/common_modules/module_lib/src/txm_time_get.c
index 0d4751c5..571565e2 100644
--- a/common_modules/module_lib/src/txm_time_get.c
+++ b/common_modules/module_lib/src/txm_time_get.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_time_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIME_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_time_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves the internal, free-running, system clock */
-/* and returns it to the caller. */
-/* */
-/* INPUT */
-/* */
-/* None */
-/* */
-/* OUTPUT */
-/* */
-/* _tx_timer_system_clock Returns the system clock value */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves the internal, free-running, system clock */
+/* and returns it to the caller. */
+/* */
+/* INPUT */
+/* */
+/* None */
+/* */
+/* OUTPUT */
+/* */
+/* _tx_timer_system_clock Returns the system clock value */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
ULONG _tx_time_get(VOID)
@@ -72,3 +75,4 @@ ULONG return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_time_set.c b/common_modules/module_lib/src/txm_time_set.c
index bb80fcb5..d93786ad 100644
--- a/common_modules/module_lib/src/txm_time_set.c
+++ b/common_modules/module_lib/src/txm_time_set.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_time_set PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIME_SET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_time_set PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function modifies the internal, free-running, system clock */
-/* as specified by the caller. */
-/* */
-/* INPUT */
-/* */
-/* new_time New time value */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function modifies the internal, free-running, system clock */
+/* as specified by the caller. */
+/* */
+/* INPUT */
+/* */
+/* new_time New time value */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
VOID _tx_time_set(ULONG new_time)
@@ -68,3 +71,4 @@ VOID _tx_time_set(ULONG new_time)
/* Call module manager dispatcher. */
(_txm_module_kernel_call_dispatcher)(TXM_TIME_SET_CALL, (ALIGN_TYPE) new_time, 0, 0);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_activate.c b/common_modules/module_lib/src/txm_timer_activate.c
index 54d09673..22f716fd 100644
--- a/common_modules/module_lib/src/txm_timer_activate.c
+++ b/common_modules/module_lib/src/txm_timer_activate.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_activate PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_ACTIVATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_activate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the activate application timer */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid application timer */
-/* TX_ACTIVATE_ERROR Application timer already active */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the activate application timer */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid application timer */
+/* TX_ACTIVATE_ERROR Application timer already active */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_activate(TX_TIMER *timer_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_change.c b/common_modules/module_lib/src/txm_timer_change.c
index f3bf5c1a..a09162b9 100644
--- a/common_modules/module_lib/src/txm_timer_change.c
+++ b/common_modules/module_lib/src/txm_timer_change.c
@@ -22,48 +22,51 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_change PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_CHANGE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_change PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the application timer change */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* initial_ticks Initial expiration ticks */
-/* reschedule_ticks Reschedule ticks */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid application timer pointer */
-/* TX_TICK_ERROR Invalid initial tick value of 0 */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the application timer change */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* initial_ticks Initial expiration ticks */
+/* reschedule_ticks Reschedule ticks */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid application timer pointer */
+/* TX_TICK_ERROR Invalid initial tick value of 0 */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_change(TX_TIMER *timer_ptr, ULONG initial_ticks, ULONG reschedule_ticks)
@@ -77,3 +80,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_create.c b/common_modules/module_lib/src/txm_timer_create.c
index 7e9958fd..d2a1f18f 100644
--- a/common_modules/module_lib/src/txm_timer_create.c
+++ b/common_modules/module_lib/src/txm_timer_create.c
@@ -22,53 +22,56 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_create PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_CREATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_create PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the create application timer */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* name_ptr Pointer to timer name */
-/* expiration_function Application expiration function */
-/* initial_ticks Initial expiration ticks */
-/* reschedule_ticks Reschedule ticks */
-/* auto_activate Automatic activation flag */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the create application timer */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* name_ptr Pointer to timer name */
+/* expiration_function Application expiration function */
+/* initial_ticks Initial expiration ticks */
+/* reschedule_ticks Reschedule ticks */
+/* auto_activate Automatic activation flag */
/* timer_control_block_size Size of timer control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid timer control block */
-/* TX_TICK_ERROR Invalid initial expiration count */
-/* TX_ACTIVATE_ERROR Invalid timer activation option */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid timer control block */
+/* TX_TICK_ERROR Invalid initial expiration count */
+/* TX_ACTIVATE_ERROR Invalid timer activation option */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_create(TX_TIMER *timer_ptr, CHAR *name_ptr, VOID (*expiration_function)(ULONG), ULONG expiration_input, ULONG initial_ticks, ULONG reschedule_ticks, UINT auto_activate, UINT timer_control_block_size)
@@ -90,3 +93,4 @@ ALIGN_TYPE extra_parameters[6];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_deactivate.c b/common_modules/module_lib/src/txm_timer_deactivate.c
index 7ba926a9..e7344b30 100644
--- a/common_modules/module_lib/src/txm_timer_deactivate.c
+++ b/common_modules/module_lib/src/txm_timer_deactivate.c
@@ -22,44 +22,47 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_deactivate PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_DEACTIVATE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_deactivate PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the deactivate application timer */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid application timer pointer */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the deactivate application timer */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid application timer pointer */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_deactivate(TX_TIMER *timer_ptr)
@@ -73,3 +76,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_delete.c b/common_modules/module_lib/src/txm_timer_delete.c
index 2127304f..f27174eb 100644
--- a/common_modules/module_lib/src/txm_timer_delete.c
+++ b/common_modules/module_lib/src/txm_timer_delete.c
@@ -22,45 +22,48 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_delete PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_DELETE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_delete PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the delete application timer */
-/* function call. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid application timer pointer */
-/* TX_CALLER_ERROR Invalid caller of this function */
-/* status Actual completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the delete application timer */
+/* function call. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid application timer pointer */
+/* TX_CALLER_ERROR Invalid caller of this function */
+/* status Actual completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_delete(TX_TIMER *timer_ptr)
@@ -74,3 +77,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_info_get.c b/common_modules/module_lib/src/txm_timer_info_get.c
index f9f2c92d..50279f49 100644
--- a/common_modules/module_lib/src/txm_timer_info_get.c
+++ b/common_modules/module_lib/src/txm_timer_info_get.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txe_timer_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txe_timer_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks for errors in the timer information get */
-/* service. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* name Destination for the timer name */
-/* active Destination for active flag */
-/* remaining_ticks Destination for remaining ticks */
-/* before expiration */
-/* reschedule_ticks Destination for reschedule ticks */
-/* next_timer Destination for next timer on the */
-/* created list */
-/* */
-/* OUTPUT */
-/* */
-/* TX_TIMER_ERROR Invalid timer pointer */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks for errors in the timer information get */
+/* service. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* name Destination for the timer name */
+/* active Destination for active flag */
+/* remaining_ticks Destination for remaining ticks */
+/* before expiration */
+/* reschedule_ticks Destination for reschedule ticks */
+/* next_timer Destination for next timer on the */
+/* created list */
+/* */
+/* OUTPUT */
+/* */
+/* TX_TIMER_ERROR Invalid timer pointer */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txe_timer_info_get(TX_TIMER *timer_ptr, CHAR **name, UINT *active, ULONG *remaining_ticks, ULONG *reschedule_ticks, TX_TIMER **next_timer)
@@ -86,3 +89,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_performance_info_get.c b/common_modules/module_lib/src/txm_timer_performance_info_get.c
index b1900704..d2e243b3 100644
--- a/common_modules/module_lib/src/txm_timer_performance_info_get.c
+++ b/common_modules/module_lib/src/txm_timer_performance_info_get.c
@@ -22,54 +22,57 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_timer_performance_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_PERFORMANCE_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_timer_performance_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves performance information from the specified */
-/* timer. */
-/* */
-/* INPUT */
-/* */
-/* timer_ptr Pointer to timer control block */
-/* activates Destination for the number of */
-/* activations of this timer */
-/* reactivates Destination for the number of */
-/* reactivations of this timer */
-/* deactivates Destination for the number of */
-/* deactivations of this timer */
-/* expirations Destination for the number of */
-/* expirations of this timer */
-/* expiration_adjusts Destination for the number of */
-/* expiration adjustments of this */
-/* timer */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves performance information from the specified */
+/* timer. */
+/* */
+/* INPUT */
+/* */
+/* timer_ptr Pointer to timer control block */
+/* activates Destination for the number of */
+/* activations of this timer */
+/* reactivates Destination for the number of */
+/* reactivations of this timer */
+/* deactivates Destination for the number of */
+/* deactivations of this timer */
+/* expirations Destination for the number of */
+/* expirations of this timer */
+/* expiration_adjusts Destination for the number of */
+/* expiration adjustments of this */
+/* timer */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_timer_performance_info_get(TX_TIMER *timer_ptr, ULONG *activates, ULONG *reactivates, ULONG *deactivates, ULONG *expirations, ULONG *expiration_adjusts)
@@ -89,3 +92,4 @@ ALIGN_TYPE extra_parameters[4];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_timer_performance_system_info_get.c b/common_modules/module_lib/src/txm_timer_performance_system_info_get.c
index 1a507602..678966fa 100644
--- a/common_modules/module_lib/src/txm_timer_performance_system_info_get.c
+++ b/common_modules/module_lib/src/txm_timer_performance_system_info_get.c
@@ -22,51 +22,54 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_timer_performance_system_info_get PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TIMER_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_timer_performance_system_info_get PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function retrieves timer performance information. */
-/* */
-/* INPUT */
-/* */
-/* activates Destination for total number of */
-/* activations */
-/* reactivates Destination for total number of */
-/* reactivations */
-/* deactivates Destination for total number of */
-/* deactivations */
-/* expirations Destination for total number of */
-/* expirations */
-/* expiration_adjusts Destination for total number of */
-/* expiration adjustments */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function retrieves timer performance information. */
+/* */
+/* INPUT */
+/* */
+/* activates Destination for total number of */
+/* activations */
+/* reactivates Destination for total number of */
+/* reactivations */
+/* deactivates Destination for total number of */
+/* deactivations */
+/* expirations Destination for total number of */
+/* expirations */
+/* expiration_adjusts Destination for total number of */
+/* expiration adjustments */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_timer_performance_system_info_get(ULONG *activates, ULONG *reactivates, ULONG *deactivates, ULONG *expirations, ULONG *expiration_adjusts)
@@ -85,3 +88,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_buffer_full_notify.c b/common_modules/module_lib/src/txm_trace_buffer_full_notify.c
index f6641544..56658179 100644
--- a/common_modules/module_lib/src/txm_trace_buffer_full_notify.c
+++ b/common_modules/module_lib/src/txm_trace_buffer_full_notify.c
@@ -22,46 +22,49 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_buffer_full_notify PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_BUFFER_FULL_NOTIFY_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_buffer_full_notify PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function sets up the application callback function that is */
-/* called whenever the trace buffer becomes full. The application */
-/* can then swap to a new trace buffer in order not to lose any */
-/* events. */
-/* */
-/* INPUT */
-/* */
-/* full_buffer_callback Full trace buffer processing */
-/* function */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function sets up the application callback function that is */
+/* called whenever the trace buffer becomes full. The application */
+/* can then swap to a new trace buffer in order not to lose any */
+/* events. */
+/* */
+/* INPUT */
+/* */
+/* full_buffer_callback Full trace buffer processing */
+/* function */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_buffer_full_notify(VOID (*full_buffer_callback)(VOID *buffer))
@@ -75,3 +78,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_disable.c b/common_modules/module_lib/src/txm_trace_disable.c
index b958db9e..d13cfd5a 100644
--- a/common_modules/module_lib/src/txm_trace_disable.c
+++ b/common_modules/module_lib/src/txm_trace_disable.c
@@ -22,42 +22,45 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_disable PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_DISABLE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_disable PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function disables trace inside of ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* None */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function disables trace inside of ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* None */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_disable(VOID)
@@ -71,3 +74,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_enable.c b/common_modules/module_lib/src/txm_trace_enable.c
index 1960e0b4..09d96d26 100644
--- a/common_modules/module_lib/src/txm_trace_enable.c
+++ b/common_modules/module_lib/src/txm_trace_enable.c
@@ -22,46 +22,49 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_enable PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_ENABLE_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_enable PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function initializes the ThreadX trace buffer and the */
-/* associated control variables, enabling it for operation. */
-/* */
-/* INPUT */
-/* */
-/* trace_buffer_start Start of trace buffer */
-/* trace_buffer_size Size (bytes) of trace buffer */
-/* registry_entries Number of object registry */
-/* entries. */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function initializes the ThreadX trace buffer and the */
+/* associated control variables, enabling it for operation. */
+/* */
+/* INPUT */
+/* */
+/* trace_buffer_start Start of trace buffer */
+/* trace_buffer_size Size (bytes) of trace buffer */
+/* registry_entries Number of object registry */
+/* entries. */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_enable(VOID *trace_buffer_start, ULONG trace_buffer_size, ULONG registry_entries)
@@ -75,3 +78,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_event_filter.c b/common_modules/module_lib/src/txm_trace_event_filter.c
index 8a8b4dc9..b1df8557 100644
--- a/common_modules/module_lib/src/txm_trace_event_filter.c
+++ b/common_modules/module_lib/src/txm_trace_event_filter.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_event_filter PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_EVENT_FILTER_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_event_filter PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function sets up the event filter, which allows the */
-/* application to filter various trace events during run-time. */
-/* */
-/* INPUT */
-/* */
-/* event_filter_bits Trace filter event bit(s) */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function sets up the event filter, which allows the */
+/* application to filter various trace events during run-time. */
+/* */
+/* INPUT */
+/* */
+/* event_filter_bits Trace filter event bit(s) */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_event_filter(ULONG event_filter_bits)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_event_unfilter.c b/common_modules/module_lib/src/txm_trace_event_unfilter.c
index 5afa77a4..e579e5b5 100644
--- a/common_modules/module_lib/src/txm_trace_event_unfilter.c
+++ b/common_modules/module_lib/src/txm_trace_event_unfilter.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_event_unfilter PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_EVENT_UNFILTER_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_event_unfilter PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function removes the event filter, which allows the */
-/* application to un-filter various trace events during run-time. */
-/* */
-/* INPUT */
-/* */
-/* event_unfilter_bits Trace un-filter event bit(s) */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function removes the event filter, which allows the */
+/* application to un-filter various trace events during run-time. */
+/* */
+/* INPUT */
+/* */
+/* event_unfilter_bits Trace un-filter event bit(s) */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_event_unfilter(ULONG event_unfilter_bits)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_interrupt_control.c b/common_modules/module_lib/src/txm_trace_interrupt_control.c
index 6533ae28..d9bb5de4 100644
--- a/common_modules/module_lib/src/txm_trace_interrupt_control.c
+++ b/common_modules/module_lib/src/txm_trace_interrupt_control.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_interrupt_control PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_INTERRUPT_CONTROL_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_interrupt_control PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function provides a shell for the tx_interrupt_control */
-/* function so that a trace event can be logged for its use. */
-/* */
-/* INPUT */
-/* */
-/* new_posture New interrupt posture */
-/* */
-/* OUTPUT */
-/* */
-/* Previous Interrupt Posture */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function provides a shell for the tx_interrupt_control */
+/* function so that a trace event can be logged for its use. */
+/* */
+/* INPUT */
+/* */
+/* new_posture New interrupt posture */
+/* */
+/* OUTPUT */
+/* */
+/* Previous Interrupt Posture */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_interrupt_control(UINT new_posture)
@@ -72,3 +75,4 @@ UINT return_value;
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_isr_enter_insert.c b/common_modules/module_lib/src/txm_trace_isr_enter_insert.c
index 730c8c9b..a57a2397 100644
--- a/common_modules/module_lib/src/txm_trace_isr_enter_insert.c
+++ b/common_modules/module_lib/src/txm_trace_isr_enter_insert.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_isr_enter_insert PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_ISR_ENTER_INSERT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_isr_enter_insert PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function provides inserts an ISR entry event into the trace */
-/* buffer. */
-/* */
-/* INPUT */
-/* */
-/* isr_id User defined ISR ID */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function provides inserts an ISR entry event into the trace */
+/* buffer. */
+/* */
+/* INPUT */
+/* */
+/* isr_id User defined ISR ID */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
VOID _tx_trace_isr_enter_insert(ULONG isr_id)
@@ -68,3 +71,4 @@ VOID _tx_trace_isr_enter_insert(ULONG isr_id)
/* Call module manager dispatcher. */
(_txm_module_kernel_call_dispatcher)(TXM_TRACE_ISR_ENTER_INSERT_CALL, (ALIGN_TYPE) isr_id, 0, 0);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_isr_exit_insert.c b/common_modules/module_lib/src/txm_trace_isr_exit_insert.c
index 078831de..48d0340a 100644
--- a/common_modules/module_lib/src/txm_trace_isr_exit_insert.c
+++ b/common_modules/module_lib/src/txm_trace_isr_exit_insert.c
@@ -22,43 +22,46 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_isr_exit_insert PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_ISR_EXIT_INSERT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_isr_exit_insert PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function provides inserts an ISR exit event into the trace */
-/* buffer. */
-/* */
-/* INPUT */
-/* */
-/* isr_id User defined ISR ID */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function provides inserts an ISR exit event into the trace */
+/* buffer. */
+/* */
+/* INPUT */
+/* */
+/* isr_id User defined ISR ID */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
VOID _tx_trace_isr_exit_insert(ULONG isr_id)
@@ -68,3 +71,4 @@ VOID _tx_trace_isr_exit_insert(ULONG isr_id)
/* Call module manager dispatcher. */
(_txm_module_kernel_call_dispatcher)(TXM_TRACE_ISR_EXIT_INSERT_CALL, (ALIGN_TYPE) isr_id, 0, 0);
}
+#endif
diff --git a/common_modules/module_lib/src/txm_trace_user_event_insert.c b/common_modules/module_lib/src/txm_trace_user_event_insert.c
index 56cc5554..592dab72 100644
--- a/common_modules/module_lib/src/txm_trace_user_event_insert.c
+++ b/common_modules/module_lib/src/txm_trace_user_event_insert.c
@@ -22,46 +22,49 @@
#define TXM_MODULE
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _tx_trace_user_event_insert PORTABLE C */
-/* 6.1 */
+#ifndef TXM_TRACE_USER_EVENT_INSERT_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _tx_trace_user_event_insert PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function inserts a user-defined event into the trace buffer. */
-/* */
-/* INPUT */
-/* */
-/* event_id User Event ID */
-/* info_field_1 First information field */
-/* info_field_2 First information field */
-/* info_field_3 First information field */
-/* info_field_4 First information field */
-/* */
-/* OUTPUT */
-/* */
-/* Completion Status */
-/* */
-/* CALLS */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function inserts a user-defined event into the trace buffer. */
+/* */
+/* INPUT */
+/* */
+/* event_id User Event ID */
+/* info_field_1 First information field */
+/* info_field_2 First information field */
+/* info_field_3 First information field */
+/* info_field_4 First information field */
+/* */
+/* OUTPUT */
+/* */
+/* Completion Status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_kernel_call_dispatcher */
-/* */
-/* CALLED BY */
-/* */
-/* Module application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Module application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _tx_trace_user_event_insert(ULONG event_id, ULONG info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4)
@@ -80,3 +83,4 @@ ALIGN_TYPE extra_parameters[3];
/* Return value to the caller. */
return(return_value);
}
+#endif
diff --git a/common_modules/module_manager/inc/txm_module_manager_dispatch.h b/common_modules/module_manager/inc/txm_module_manager_dispatch.h
index 644cc1c9..8cbd2f44 100644
--- a/common_modules/module_manager/inc/txm_module_manager_dispatch.h
+++ b/common_modules/module_manager/inc/txm_module_manager_dispatch.h
@@ -20,6 +20,7 @@
/**************************************************************************/
/**************************************************************************/
+#ifndef TXM_BLOCK_ALLOCATE_CALL_NOT_USED
/* UINT _txe_block_allocate(
TX_BLOCK_POOL *pool_ptr, -> param_0
VOID **block_ptr, -> param_1
@@ -46,7 +47,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_CREATE_CALL_NOT_USED
/* UINT _txe_block_pool_create(
TX_BLOCK_POOL *pool_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -85,7 +88,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_DELETE_CALL_NOT_USED
/* UINT _txe_block_pool_delete(
TX_BLOCK_POOL *pool_ptr -> param_0
); */
@@ -111,7 +116,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_INFO_GET_CALL_NOT_USED
/* UINT _txe_block_pool_info_get(
TX_BLOCK_POOL *pool_ptr, -> param_0
CHAR **name, -> param_1
@@ -164,7 +171,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_block_pool_performance_info_get(
TX_BLOCK_POOL *pool_ptr, -> param_0
ULONG *allocates, -> param_1
@@ -207,7 +216,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_block_pool_performance_system_info_get(
ULONG *allocates, -> param_0
ULONG *releases, -> param_1
@@ -245,7 +256,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_POOL_PRIORITIZE_CALL_NOT_USED
/* UINT _txe_block_pool_prioritize(
TX_BLOCK_POOL *pool_ptr -> param_0
); */
@@ -265,7 +278,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BLOCK_RELEASE_CALL_NOT_USED
/* UINT _txe_block_release(
VOID *block_ptr -> param_0
); */
@@ -304,7 +319,9 @@ ALIGN_TYPE block_header_start;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_ALLOCATE_CALL_NOT_USED
/* UINT _txe_byte_allocate(
TX_BYTE_POOL *pool_ptr, -> param_0
VOID **memory_ptr, -> param_1
@@ -336,7 +353,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_CREATE_CALL_NOT_USED
/* UINT _txe_byte_pool_create(
TX_BYTE_POOL *pool_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -373,7 +392,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_DELETE_CALL_NOT_USED
/* UINT _txe_byte_pool_delete(
TX_BYTE_POOL *pool_ptr -> param_0
); */
@@ -399,7 +420,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_INFO_GET_CALL_NOT_USED
/* UINT _txe_byte_pool_info_get(
TX_BYTE_POOL *pool_ptr, -> param_0
CHAR **name, -> param_1
@@ -452,7 +475,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_byte_pool_performance_info_get(
TX_BYTE_POOL *pool_ptr, -> param_0
ULONG *allocates, -> param_1
@@ -510,7 +535,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_byte_pool_performance_system_info_get(
ULONG *allocates, -> param_0
ULONG *releases, -> param_1
@@ -563,7 +590,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_POOL_PRIORITIZE_CALL_NOT_USED
/* UINT _txe_byte_pool_prioritize(
TX_BYTE_POOL *pool_ptr -> param_0
); */
@@ -583,7 +612,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_BYTE_RELEASE_CALL_NOT_USED
/* UINT _txe_byte_release(
VOID *memory_ptr -> param_0
); */
@@ -622,7 +653,9 @@ ALIGN_TYPE block_header_start;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_CREATE_CALL_NOT_USED
/* UINT _txe_event_flags_create(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -649,7 +682,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_DELETE_CALL_NOT_USED
/* UINT _txe_event_flags_delete(
TX_EVENT_FLAGS_GROUP *group_ptr -> param_0
); */
@@ -675,7 +710,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_GET_CALL_NOT_USED
/* UINT _txe_event_flags_get(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
ULONG requested_flags, -> param_1
@@ -709,7 +746,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_INFO_GET_CALL_NOT_USED
/* UINT _txe_event_flags_info_get(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
CHAR **name, -> param_1
@@ -757,7 +796,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_event_flags_performance_info_get(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
ULONG *sets, -> param_1
@@ -800,7 +841,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_event_flags_performance_system_info_get(
ULONG *sets, -> param_0
ULONG *gets, -> param_1
@@ -838,7 +881,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_SET_CALL_NOT_USED
/* UINT _txe_event_flags_set(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
ULONG flags_to_set, -> param_1
@@ -862,7 +907,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_EVENT_FLAGS_SET_NOTIFY_CALL_NOT_USED
/* UINT _txe_event_flags_set_notify(
TX_EVENT_FLAGS_GROUP *group_ptr, -> param_0
VOID (*events_set_notify)(TX_EVENT_FLAGS_GROUP *) -> param_1
@@ -906,7 +953,9 @@ VOID (*events_set_notify)(TX_EVENT_FLAGS_GROUP *);
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_CREATE_CALL_NOT_USED
/* UINT _txe_mutex_create(
TX_MUTEX *mutex_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -938,7 +987,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_DELETE_CALL_NOT_USED
/* UINT _txe_mutex_delete(
TX_MUTEX *mutex_ptr -> param_0
); */
@@ -964,7 +1015,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_GET_CALL_NOT_USED
/* UINT _txe_mutex_get(
TX_MUTEX *mutex_ptr, -> param_0
ULONG wait_option -> param_1
@@ -986,7 +1039,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_INFO_GET_CALL_NOT_USED
/* UINT _txe_mutex_info_get(
TX_MUTEX *mutex_ptr, -> param_0
CHAR **name, -> param_1
@@ -1039,7 +1094,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_mutex_performance_info_get(
TX_MUTEX *mutex_ptr, -> param_0
ULONG *puts, -> param_1
@@ -1092,7 +1149,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_mutex_performance_system_info_get(
ULONG *puts, -> param_0
ULONG *gets, -> param_1
@@ -1140,7 +1199,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_PRIORITIZE_CALL_NOT_USED
/* UINT _txe_mutex_prioritize(
TX_MUTEX *mutex_ptr -> param_0
); */
@@ -1160,7 +1221,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MUTEX_PUT_CALL_NOT_USED
/* UINT _txe_mutex_put(
TX_MUTEX *mutex_ptr -> param_0
); */
@@ -1180,7 +1243,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_CREATE_CALL_NOT_USED
/* UINT _txe_queue_create(
TX_QUEUE *queue_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -1219,7 +1284,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_DELETE_CALL_NOT_USED
/* UINT _txe_queue_delete(
TX_QUEUE *queue_ptr -> param_0
); */
@@ -1245,7 +1312,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_FLUSH_CALL_NOT_USED
/* UINT _txe_queue_flush(
TX_QUEUE *queue_ptr -> param_0
); */
@@ -1265,7 +1334,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_FRONT_SEND_CALL_NOT_USED
/* UINT _txe_queue_front_send(
TX_QUEUE *queue_ptr, -> param_0
VOID *source_ptr, -> param_1
@@ -1283,7 +1354,7 @@ TX_QUEUE *queue_ptr;
return(TXM_MODULE_INVALID_MEMORY);
/* We need to get the size of the message from the queue. */
- queue_ptr = (TX_QUEUE *) param_0;
+ queue_ptr = (TX_QUEUE *) param_0;
if (!TXM_MODULE_MANAGER_PARAM_CHECK_BUFFER_READ(module_instance, param_1, queue_ptr -> tx_queue_message_size))
return(TXM_MODULE_INVALID_MEMORY);
}
@@ -1295,7 +1366,9 @@ TX_QUEUE *queue_ptr;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_INFO_GET_CALL_NOT_USED
/* UINT _txe_queue_info_get(
TX_QUEUE *queue_ptr, -> param_0
CHAR **name, -> param_1
@@ -1348,7 +1421,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_queue_performance_info_get(
TX_QUEUE *queue_ptr, -> param_0
ULONG *messages_sent, -> param_1
@@ -1401,7 +1476,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_queue_performance_system_info_get(
ULONG *messages_sent, -> param_0
ULONG *messages_received, -> param_1
@@ -1449,7 +1526,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_PRIORITIZE_CALL_NOT_USED
/* UINT _txe_queue_prioritize(
TX_QUEUE *queue_ptr -> param_0
); */
@@ -1469,7 +1548,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_RECEIVE_CALL_NOT_USED
/* UINT _txe_queue_receive(
TX_QUEUE *queue_ptr, -> param_0
VOID *destination_ptr, -> param_1
@@ -1487,7 +1568,7 @@ TX_QUEUE *queue_ptr;
return(TXM_MODULE_INVALID_MEMORY);
/* We need to get the max size of the buffer from the queue. */
- queue_ptr = (TX_QUEUE *) param_0;
+ queue_ptr = (TX_QUEUE *) param_0;
if (!TXM_MODULE_MANAGER_PARAM_CHECK_BUFFER_WRITE(module_instance, param_1, sizeof(ULONG)*queue_ptr -> tx_queue_message_size))
return(TXM_MODULE_INVALID_MEMORY);
}
@@ -1499,7 +1580,9 @@ TX_QUEUE *queue_ptr;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_SEND_CALL_NOT_USED
/* UINT _txe_queue_send(
TX_QUEUE *queue_ptr, -> param_0
VOID *source_ptr, -> param_1
@@ -1517,7 +1600,7 @@ TX_QUEUE *queue_ptr;
return(TXM_MODULE_INVALID_MEMORY);
/* We need to get the size of the message from the queue. */
- queue_ptr = (TX_QUEUE *) param_0;
+ queue_ptr = (TX_QUEUE *) param_0;
if (!TXM_MODULE_MANAGER_PARAM_CHECK_BUFFER_READ(module_instance, param_1, sizeof(ULONG)*queue_ptr -> tx_queue_message_size))
return(TXM_MODULE_INVALID_MEMORY);
}
@@ -1529,7 +1612,9 @@ TX_QUEUE *queue_ptr;
);
return(return_value);
}
+#endif
+#ifndef TXM_QUEUE_SEND_NOTIFY_CALL_NOT_USED
/* UINT _txe_queue_send_notify(
TX_QUEUE *queue_ptr, -> param_0
VOID (*queue_send_notify)(TX_QUEUE *notify_queue_ptr) -> param_1
@@ -1573,7 +1658,9 @@ VOID (*queue_send_notify)(TX_QUEUE *);
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_CEILING_PUT_CALL_NOT_USED
/* UINT _txe_semaphore_ceiling_put(
TX_SEMAPHORE *semaphore_ptr, -> param_0
ULONG ceiling -> param_1
@@ -1595,7 +1682,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_CREATE_CALL_NOT_USED
/* UINT _txe_semaphore_create(
TX_SEMAPHORE *semaphore_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -1627,7 +1716,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_DELETE_CALL_NOT_USED
/* UINT _txe_semaphore_delete(
TX_SEMAPHORE *semaphore_ptr -> param_0
); */
@@ -1653,7 +1744,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_GET_CALL_NOT_USED
/* UINT _txe_semaphore_get(
TX_SEMAPHORE *semaphore_ptr, -> param_0
ULONG wait_option -> param_1
@@ -1675,7 +1768,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_INFO_GET_CALL_NOT_USED
/* UINT _txe_semaphore_info_get(
TX_SEMAPHORE *semaphore_ptr, -> param_0
CHAR **name, -> param_1
@@ -1723,7 +1818,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_semaphore_performance_info_get(
TX_SEMAPHORE *semaphore_ptr, -> param_0
ULONG *puts, -> param_1
@@ -1766,7 +1863,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_semaphore_performance_system_info_get(
ULONG *puts, -> param_0
ULONG *gets, -> param_1
@@ -1804,7 +1903,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_PRIORITIZE_CALL_NOT_USED
/* UINT _txe_semaphore_prioritize(
TX_SEMAPHORE *semaphore_ptr -> param_0
); */
@@ -1824,7 +1925,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_PUT_CALL_NOT_USED
/* UINT _txe_semaphore_put(
TX_SEMAPHORE *semaphore_ptr -> param_0
); */
@@ -1844,7 +1947,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_SEMAPHORE_PUT_NOTIFY_CALL_NOT_USED
/* UINT _txe_semaphore_put_notify(
TX_SEMAPHORE *semaphore_ptr, -> param_0
VOID (*semaphore_put_notify)(TX_SEMAPHORE *notify_semaphore_ptr) -> param_1
@@ -1888,7 +1993,9 @@ VOID (*semaphore_put_notify)(TX_SEMAPHORE *);
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_CREATE_CALL_NOT_USED
/* UINT _txe_thread_create(
TX_THREAD *thread_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -1945,7 +2052,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_DELETE_CALL_NOT_USED
/* UINT _txe_thread_delete(
TX_THREAD *thread_ptr -> param_0
); */
@@ -1971,7 +2080,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_ENTRY_EXIT_NOTIFY_CALL_NOT_USED
/* UINT _txe_thread_entry_exit_notify(
TX_THREAD *thread_ptr, -> param_0
VOID (*thread_entry_exit_notify)(TX_THREAD *notify_thread_ptr, UINT type) -> param_1
@@ -2020,7 +2131,9 @@ VOID (*thread_entry_exit_notify)(TX_THREAD *, UINT);
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_IDENTIFY_CALL_NOT_USED
/* TX_THREAD *_tx_thread_identify(); */
static ALIGN_TYPE _txm_module_manager_tx_thread_identify_dispatch(TXM_MODULE_INSTANCE *module_instance, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE *extra_parameters)
{
@@ -2030,7 +2143,9 @@ ALIGN_TYPE return_value;
return_value = (ALIGN_TYPE) _tx_thread_identify();
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_INFO_GET_CALL_NOT_USED
/* UINT _txe_thread_info_get(
TX_THREAD *thread_ptr, -> param_0
CHAR **name, -> param_1
@@ -2093,7 +2208,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_INTERRUPT_CONTROL_CALL_NOT_USED
/* UINT _tx_thread_interrupt_control(
UINT new_posture -> param_0
); */
@@ -2110,7 +2227,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_thread_performance_info_get(
TX_THREAD *thread_ptr, -> param_0
ULONG *resumptions, -> param_1
@@ -2183,7 +2302,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_thread_performance_system_info_get(
ULONG *resumptions, -> param_0
ULONG *suspensions, -> param_1
@@ -2256,7 +2377,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_PREEMPTION_CHANGE_CALL_NOT_USED
/* UINT _txe_thread_preemption_change(
TX_THREAD *thread_ptr, -> param_0
UINT new_threshold, -> param_1
@@ -2283,7 +2406,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_PRIORITY_CHANGE_CALL_NOT_USED
/* UINT _txe_thread_priority_change(
TX_THREAD *thread_ptr, -> param_0
UINT new_priority, -> param_1
@@ -2310,7 +2435,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_RELINQUISH_CALL_NOT_USED
/* VOID _txe_thread_relinquish(); */
static ALIGN_TYPE _txm_module_manager_tx_thread_relinquish_dispatch(TXM_MODULE_INSTANCE *module_instance, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE *extra_parameters)
{
@@ -2318,7 +2445,9 @@ static ALIGN_TYPE _txm_module_manager_tx_thread_relinquish_dispatch(TXM_MODULE_I
_txe_thread_relinquish();
return(TX_SUCCESS);
}
+#endif
+#ifndef TXM_THREAD_RESET_CALL_NOT_USED
/* UINT _txe_thread_reset(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2338,7 +2467,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_RESUME_CALL_NOT_USED
/* UINT _txe_thread_resume(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2358,7 +2489,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_SLEEP_CALL_NOT_USED
/* UINT _tx_thread_sleep(
ULONG timer_ticks -> param_0
); */
@@ -2372,7 +2505,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_STACK_ERROR_NOTIFY_CALL_NOT_USED
/* UINT _tx_thread_stack_error_notify(
VOID (*stack_error_handler)(TX_THREAD *thread_ptr) -> param_0
); */
@@ -2389,7 +2524,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_SUSPEND_CALL_NOT_USED
/* UINT _txe_thread_suspend(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2409,7 +2546,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_SYSTEM_SUSPEND_CALL_NOT_USED
/* VOID _tx_thread_system_suspend(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2464,7 +2603,9 @@ TX_THREAD *thread_ptr;
);
return(TX_SUCCESS);
}
+#endif
+#ifndef TXM_THREAD_TERMINATE_CALL_NOT_USED
/* UINT _txe_thread_terminate(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2484,7 +2625,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_TIME_SLICE_CHANGE_CALL_NOT_USED
/* UINT _txe_thread_time_slice_change(
TX_THREAD *thread_ptr, -> param_0
ULONG new_time_slice, -> param_1
@@ -2511,7 +2654,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_THREAD_WAIT_ABORT_CALL_NOT_USED
/* UINT _txe_thread_wait_abort(
TX_THREAD *thread_ptr -> param_0
); */
@@ -2531,7 +2676,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIME_GET_CALL_NOT_USED
/* ULONG _tx_time_get(); */
static ALIGN_TYPE _txm_module_manager_tx_time_get_dispatch(TXM_MODULE_INSTANCE *module_instance, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE *extra_parameters)
{
@@ -2541,7 +2688,9 @@ ALIGN_TYPE return_value;
return_value = (ALIGN_TYPE) _tx_time_get();
return(return_value);
}
+#endif
+#ifndef TXM_TIME_SET_CALL_NOT_USED
/* VOID _tx_time_set(
ULONG new_time -> param_0
); */
@@ -2553,7 +2702,9 @@ static ALIGN_TYPE _txm_module_manager_tx_time_set_dispatch(TXM_MODULE_INSTANCE *
);
return(TX_SUCCESS);
}
+#endif
+#ifndef TXM_TIMER_ACTIVATE_CALL_NOT_USED
/* UINT _txe_timer_activate(
TX_TIMER *timer_ptr -> param_0
); */
@@ -2573,7 +2724,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_CHANGE_CALL_NOT_USED
/* UINT _txe_timer_change(
TX_TIMER *timer_ptr, -> param_0
ULONG initial_ticks, -> param_1
@@ -2597,7 +2750,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_CREATE_CALL_NOT_USED
/* UINT _txe_timer_create(
TX_TIMER *timer_ptr, -> param_0
CHAR *name_ptr, -> param_1
@@ -2668,7 +2823,9 @@ VOID (*expiration_function)(ULONG);
}
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_DEACTIVATE_CALL_NOT_USED
/* UINT _txe_timer_deactivate(
TX_TIMER *timer_ptr -> param_0
); */
@@ -2688,7 +2845,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_DELETE_CALL_NOT_USED
/* UINT _txe_timer_delete(
TX_TIMER *timer_ptr -> param_0
); */
@@ -2714,7 +2873,9 @@ ALIGN_TYPE return_value;
}
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_INFO_GET_CALL_NOT_USED
/* UINT _txe_timer_info_get(
TX_TIMER *timer_ptr, -> param_0
CHAR **name, -> param_1
@@ -2762,7 +2923,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_PERFORMANCE_INFO_GET_CALL_NOT_USED
/* UINT _tx_timer_performance_info_get(
TX_TIMER *timer_ptr, -> param_0
ULONG *activates, -> param_1
@@ -2810,7 +2973,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TIMER_PERFORMANCE_SYSTEM_INFO_GET_CALL_NOT_USED
/* UINT _tx_timer_performance_system_info_get(
ULONG *activates, -> param_0
ULONG *reactivates, -> param_1
@@ -2853,7 +3018,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_BUFFER_FULL_NOTIFY_CALL_NOT_USED
/* UINT _tx_trace_buffer_full_notify(
VOID (*full_buffer_callback)(VOID *buffer) -> param_0
); */
@@ -2867,7 +3034,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_DISABLE_CALL_NOT_USED
/* UINT _tx_trace_disable(); */
static ALIGN_TYPE _txm_module_manager_tx_trace_disable_dispatch(TXM_MODULE_INSTANCE *module_instance, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE *extra_parameters)
{
@@ -2880,7 +3049,9 @@ ALIGN_TYPE return_value;
return_value = (ALIGN_TYPE) _tx_trace_disable();
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_ENABLE_CALL_NOT_USED
/* UINT _tx_trace_enable(
VOID *trace_buffer_start, -> param_0
ULONG trace_buffer_size, -> param_1
@@ -2901,7 +3072,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_EVENT_FILTER_CALL_NOT_USED
/* UINT _tx_trace_event_filter(
ULONG event_filter_bits -> param_0
); */
@@ -2915,7 +3088,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_EVENT_UNFILTER_CALL_NOT_USED
/* UINT _tx_trace_event_unfilter(
ULONG event_unfilter_bits -> param_0
); */
@@ -2929,7 +3104,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_INTERRUPT_CONTROL_CALL_NOT_USED
/* UINT _tx_trace_interrupt_control(
UINT new_posture -> param_0
); */
@@ -2946,7 +3123,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_TRACE_ISR_ENTER_INSERT_CALL_NOT_USED
/* VOID _tx_trace_isr_enter_insert(
ULONG isr_id -> param_0
); */
@@ -2961,7 +3140,9 @@ static ALIGN_TYPE _txm_module_manager_tx_trace_isr_enter_insert_dispatch(TXM_MOD
);
return(TX_SUCCESS);
}
+#endif
+#ifndef TXM_TRACE_ISR_EXIT_INSERT_CALL_NOT_USED
/* VOID _tx_trace_isr_exit_insert(
ULONG isr_id -> param_0
); */
@@ -2976,7 +3157,9 @@ static ALIGN_TYPE _txm_module_manager_tx_trace_isr_exit_insert_dispatch(TXM_MODU
);
return(TX_SUCCESS);
}
+#endif
+#ifndef TXM_TRACE_USER_EVENT_INSERT_CALL_NOT_USED
/* UINT _tx_trace_user_event_insert(
ULONG event_id, -> param_0
ULONG info_field_1, -> param_1
@@ -2994,7 +3177,7 @@ ALIGN_TYPE return_value;
if (!TXM_MODULE_MANAGER_ENSURE_INSIDE_MODULE_DATA(module_instance, (ALIGN_TYPE)extra_parameters, sizeof(ALIGN_TYPE[3])))
return(TXM_MODULE_INVALID_MEMORY);
}
-
+
return_value = (ALIGN_TYPE) _tx_trace_user_event_insert(
(ULONG) param_0,
(ULONG) param_1,
@@ -3004,7 +3187,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MODULE_OBJECT_ALLOCATE_CALL_NOT_USED
/* UINT _txm_module_object_allocate(
VOID **object_ptr, -> param_0
ULONG object_size -> param_1
@@ -3027,7 +3212,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MODULE_OBJECT_DEALLOCATE_CALL_NOT_USED
/* UINT _txm_module_object_deallocate(
VOID *object_ptr -> param_0
); */
@@ -3076,7 +3263,9 @@ ALIGN_TYPE object_pool_end;
);
return(return_value);
}
+#endif
+#ifndef TXM_MODULE_OBJECT_POINTER_GET_CALL_NOT_USED
/* UINT _txm_module_object_pointer_get(
UINT object_type, -> param_0
CHAR *name, -> param_1
@@ -3103,7 +3292,9 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
+#ifndef TXM_MODULE_OBJECT_POINTER_GET_EXTENDED_CALL_NOT_USED
/* UINT _txm_module_object_pointer_get_extended(
UINT object_type, -> param_0
CHAR *name, -> param_1
@@ -3135,3 +3326,4 @@ ALIGN_TYPE return_value;
);
return(return_value);
}
+#endif
diff --git a/common_modules/module_manager/src/txm_module_manager_application_request.c b/common_modules/module_manager/src/txm_module_manager_application_request.c
index 7e3491dd..53926e7a 100644
--- a/common_modules/module_manager/src/txm_module_manager_application_request.c
+++ b/common_modules/module_manager/src/txm_module_manager_application_request.c
@@ -10,70 +10,71 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
/* Include necessary system files. */
#include "tx_api.h"
#include "txm_module.h"
-
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_application_request PORTABLE C */
-/* 6.1 */
+#ifndef TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_application_request PORTABLE C */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the application-specific module request. */
-/* The entire contents of the request structure is application */
-/* specific and thus the processing in this file is left to the */
-/* application to define. */
-/* */
-/* INPUT */
-/* */
-/* request_id Module request ID */
-/* param_1 First parameter */
-/* param_2 Second parameter */
-/* param_3 Third parameter */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the application-specific module request. */
+/* The entire contents of the request structure is application */
+/* specific and thus the processing in this file is left to the */
+/* application to define. */
+/* */
+/* INPUT */
+/* */
+/* request_id Module request ID */
+/* param_1 First parameter */
+/* param_2 Second parameter */
+/* param_3 Third parameter */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
UINT _txm_module_manager_application_request(ULONG request_id, ALIGN_TYPE param_1, ALIGN_TYPE param_2, ALIGN_TYPE param_3)
{
-
/* By default, simply return the status of not available. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
-
+#endif
diff --git a/common_modules/module_manager/src/txm_module_manager_callback_request.c b/common_modules/module_manager/src/txm_module_manager_callback_request.c
index efb6f8b5..622f83a4 100644
--- a/common_modules/module_manager/src/txm_module_manager_callback_request.c
+++ b/common_modules/module_manager/src/txm_module_manager_callback_request.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -26,45 +26,45 @@
#include "tx_queue.h"
#include "tx_thread.h"
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_callback_request PORTABLE C */
+
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_callback_request PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function sends a notification callback function request to */
-/* the associated module. */
-/* */
-/* INPUT */
-/* */
-/* module_callback_queue Module callback request queue */
-/* callback_request Callback request */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* tx_queue_send Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function sends a notification callback function request to */
+/* the associated module. */
+/* */
+/* INPUT */
+/* */
+/* module_callback_queue Module callback request queue */
+/* callback_request Callback request */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* tx_queue_send Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_callback_request(TX_QUEUE *module_callback_queue, TXM_MODULE_CALLBACK_MESSAGE *callback_message)
@@ -80,26 +80,26 @@ UINT status;
/* Lockout interrupts. */
TX_DISABLE
-
+
/* Determine if the queue is valid. */
if ((module_callback_queue) && (module_callback_queue -> tx_queue_id == TX_QUEUE_ID))
{
/* Yes, the queue is valid. */
-
+
/* Pickup the current callback request in the queue. */
queued_message = (TXM_MODULE_CALLBACK_MESSAGE *) module_callback_queue -> tx_queue_read;
-
+
/* Pickup the number of items enqueued. */
enqueued = module_callback_queue -> tx_queue_enqueued;
-
+
/* Set the found flag to false. */
found = TX_FALSE;
/* Loop to look for duplicates in the queue. */
while (enqueued != 0)
{
-
+
/* Does this entry match the new callback message? */
if ((queued_message -> txm_module_callback_message_application_function == callback_message -> txm_module_callback_message_application_function) &&
(queued_message -> txm_module_callback_message_param_1 == callback_message -> txm_module_callback_message_param_1) &&
@@ -113,62 +113,62 @@ UINT status;
(queued_message -> txm_module_callback_message_reserved1 == callback_message -> txm_module_callback_message_reserved1) &&
(queued_message -> txm_module_callback_message_reserved2 == callback_message -> txm_module_callback_message_reserved2))
{
-
+
/* Update the activation count in the queued request. */
queued_message -> txm_module_callback_message_activation_count++;
-
+
/* Set the found flag to true. */
found = TX_TRUE;
-
+
/* Get out of the loop. */
break;
}
-
+
/* Decrease the number of messages to examine. */
enqueued--;
-
+
/* Move the callback message to the next message. */
queued_message++;
-
+
/* Check for wrap? */
if (((ULONG *) queued_message) >= module_callback_queue -> tx_queue_end)
{
-
+
/* Yes, set the queued message to the beginning of the queue. */
queued_message = (TXM_MODULE_CALLBACK_MESSAGE *) module_callback_queue -> tx_queue_start;
- }
+ }
}
/* Restore interrupts. */
TX_RESTORE
-
+
/* Determine if we need to send the new callback request. */
if (found == TX_FALSE)
{
-
+
/* Yes, send the message. */
status = _tx_queue_send(module_callback_queue, (VOID *) callback_message, TX_NO_WAIT);
-
+
/* Determine if an error was detected. */
if (status != TX_SUCCESS)
{
-
+
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
}
}
-
+
/* Increment the total number of callbacks. */
_txm_module_manager_callback_total_count++;
}
else
{
-
+
/* Module instance is not valid. */
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
-
+
/* Restore interrupts. */
TX_RESTORE
}
diff --git a/common_modules/module_manager/src/txm_module_manager_event_flags_notify_trampoline.c b/common_modules/module_manager/src/txm_module_manager_event_flags_notify_trampoline.c
index b86c9e32..7e86e7f7 100644
--- a/common_modules/module_manager/src/txm_module_manager_event_flags_notify_trampoline.c
+++ b/common_modules/module_manager/src/txm_module_manager_event_flags_notify_trampoline.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -27,45 +27,45 @@
#include "tx_event_flags.h"
#include "tx_thread.h"
#include "txm_module.h"
-
+
#ifndef TX_DISABLE_NOTIFY_CALLBACKS
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_event_flags_notify_trampoline PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_event_flags_notify_trampoline PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the event flags set notification call from */
-/* ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* group_ptr Event flags group pointer */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_callback_request Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the event flags set notification call from */
+/* ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* group_ptr Event flags group pointer */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_callback_request Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_event_flags_notify_trampoline(TX_EVENT_FLAGS_GROUP *group_ptr)
@@ -77,9 +77,9 @@ TXM_MODULE_INSTANCE *module_instance;
TXM_MODULE_CALLBACK_MESSAGE callback_message;
TX_QUEUE *module_callback_queue;
-
+
/* We now know the callback is for a module. */
-
+
/* Disable interrupts. */
TX_DISABLE
@@ -90,9 +90,9 @@ TX_QUEUE *module_callback_queue;
if ((module_instance) && (module_instance -> txm_module_instance_id == TXM_MODULE_ID) &&
(module_instance -> txm_module_instance_state == TXM_MODULE_STARTED))
{
-
- /* Yes, the module is still valid. */
-
+
+ /* Yes, the module is still valid. */
+
/* Pickup the module's callback message queue. */
module_callback_queue = &(module_instance -> txm_module_instance_callback_request_queue);
@@ -113,21 +113,21 @@ TX_QUEUE *module_callback_queue;
/* Restore interrupts. */
TX_RESTORE
-
- /* Call the general processing that will place the callback on the
+
+ /* Call the general processing that will place the callback on the
module's callback request queue. */
_txm_module_manager_callback_request(module_callback_queue, &callback_message);
}
else
{
-
+
/* Module no longer valid. */
-
+
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
/* Restore interrupts. */
TX_RESTORE
}
-}
+}
#endif
diff --git a/common_modules/module_manager/src/txm_module_manager_file_load.c b/common_modules/module_manager/src/txm_module_manager_file_load.c
index 34053393..b44a533b 100644
--- a/common_modules/module_manager/src/txm_module_manager_file_load.c
+++ b/common_modules/module_manager/src/txm_module_manager_file_load.c
@@ -80,7 +80,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_file_load(TXM_MODULE_INSTANCE *module_instance, CHAR *module_name, FX_MEDIA *media_ptr, CHAR *file_name)
diff --git a/common_modules/module_manager/src/txm_module_manager_in_place_load.c b/common_modules/module_manager/src/txm_module_manager_in_place_load.c
index ae482ec1..5826536f 100644
--- a/common_modules/module_manager/src/txm_module_manager_in_place_load.c
+++ b/common_modules/module_manager/src/txm_module_manager_in_place_load.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -31,46 +31,46 @@
#include "txm_module_manager_util.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_in_place_load PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_in_place_load PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
+/* DESCRIPTION */
+/* */
/* This function ensures the code-related parts of the module preamble */
/* are valid and calls _txm_module_manager_internal_load to load the */
/* data and prepare the module for execution. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance pointer */
-/* module_name Module name pointer */
-/* module_location Module code location */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance pointer */
+/* module_name Module name pointer */
+/* module_location Module code location */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
/* _txm_module_manager_internal_load Load data and prepare module for */
/* execution */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_in_place_load(TXM_MODULE_INSTANCE *module_instance, CHAR *module_name, VOID *module_location)
diff --git a/common_modules/module_manager/src/txm_module_manager_initialize.c b/common_modules/module_manager/src/txm_module_manager_initialize.c
index a9190454..8ea3e693 100644
--- a/common_modules/module_manager/src/txm_module_manager_initialize.c
+++ b/common_modules/module_manager/src/txm_module_manager_initialize.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
#define TX_MODULE_MANAGER_INIT
@@ -80,7 +80,7 @@ ULONG _txm_module_manger_loaded_count;
/* Define the ready flag, which is checked by other module manager APIs
to make sure the manager has been initialized. */
-
+
UINT _txm_module_manager_ready;
@@ -97,44 +97,44 @@ ULONG _txm_module_manager_callback_error_count;
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_initialize PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_initialize PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function initializes the module manager. */
-/* */
-/* INPUT */
-/* */
-/* module_memory_start Start of module area */
-/* module_memory_size Size in bytes of module area */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_byte_pool_create Create module memory byte pool */
-/* _tx_mutex_create Create module manager */
-/* protection mutex */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function initializes the module manager. */
+/* */
+/* INPUT */
+/* */
+/* module_memory_start Start of module area */
+/* module_memory_size Size in bytes of module area */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_byte_pool_create Create module memory byte pool */
+/* _tx_mutex_create Create module manager */
+/* protection mutex */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_initialize(VOID *module_memory_start, ULONG module_memory_size)
@@ -143,11 +143,11 @@ UINT _txm_module_manager_initialize(VOID *module_memory_start, ULONG module_mem
/* Check for interrupt call. */
if (TX_THREAD_GET_SYSTEM_STATE() != 0)
{
-
+
/* Now, make sure the call is from an interrupt and not initialization. */
if (TX_THREAD_GET_SYSTEM_STATE() < TX_INITIALIZE_IN_PROGRESS)
{
-
+
/* Invalid caller of this function, return appropriate error code. */
return(TX_CALLER_ERROR);
}
@@ -171,7 +171,7 @@ UINT _txm_module_manager_initialize(VOID *module_memory_start, ULONG module_mem
/* Create the module manager protection mutex. */
_tx_mutex_create(&_txm_module_manager_mutex, "Module Manager Protection Mutex", TX_NO_INHERIT);
- /* Create a byte pool for allocating RAM areas for modules. */
+ /* Create a byte pool for allocating RAM areas for modules. */
_tx_byte_pool_create(&_txm_module_manager_byte_pool, "Module Manager Byte Pool", module_memory_start, module_memory_size);
/* Indicate the module manager object pool has not been created. */
@@ -179,7 +179,7 @@ UINT _txm_module_manager_initialize(VOID *module_memory_start, ULONG module_mem
/* Mark the module manager as ready! */
_txm_module_manager_ready = TX_TRUE;
-
+
/* Return success. */
return(TX_SUCCESS);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_internal_load.c b/common_modules/module_manager/src/txm_module_manager_internal_load.c
index 6b5ae54f..367b557e 100644
--- a/common_modules/module_manager/src/txm_module_manager_internal_load.c
+++ b/common_modules/module_manager/src/txm_module_manager_internal_load.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -31,49 +31,49 @@
#include "txm_module_manager_util.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_internal_load PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_internal_load PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function allocates data memory for module and prepares the */
-/* module for execution from the supplied code location. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance pointer */
-/* module_name Module name pointer */
-/* module_location Module code location */
-/* code_size Module code size */
-/* code_allocation_ptr Allocated code location */
-/* code_allocation_size Allocated code size */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_byte_allocate Allocate data area */
-/* _tx_mutex_get Get protection mutex */
-/* _tx_mutex_put Release protection mutex */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function allocates data memory for module and prepares the */
+/* module for execution from the supplied code location. */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance pointer */
+/* module_name Module name pointer */
+/* module_location Module code location */
+/* code_size Module code size */
+/* code_allocation_ptr Allocated code location */
+/* code_allocation_size Allocated code size */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_byte_allocate Allocate data area */
+/* _tx_mutex_get Get protection mutex */
+/* _tx_mutex_put Release protection mutex */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_internal_load(TXM_MODULE_INSTANCE *module_instance, CHAR *module_name, VOID *module_location,
@@ -81,7 +81,7 @@ UINT _txm_module_manager_internal_load(TXM_MODULE_INSTANCE *module_instance, CH
{
TX_INTERRUPT_SAVE_AREA
-
+
TXM_MODULE_PREAMBLE *module_preamble;
TXM_MODULE_INSTANCE *next_module, *previous_module;
ULONG shell_function_adjust;
@@ -104,11 +104,11 @@ UINT status;
/* Check for interrupt call. */
if (TX_THREAD_GET_SYSTEM_STATE() != 0)
{
-
+
/* Now, make sure the call is from an interrupt and not initialization. */
if (TX_THREAD_GET_SYSTEM_STATE() < TX_INITIALIZE_IN_PROGRESS)
{
-
+
/* Invalid caller of this function, return appropriate error code. */
return(TX_CALLER_ERROR);
}
@@ -117,15 +117,15 @@ UINT status;
/* Determine if the module manager has not been initialized yet. */
if (_txm_module_manager_ready != TX_TRUE)
{
-
+
/* Module manager has not been initialized. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
/* Determine if the module is valid. */
if (module_instance == TX_NULL)
{
-
+
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
@@ -150,7 +150,7 @@ UINT status;
/* Check to make sure there is a valid module to load. */
if (module_preamble -> txm_module_preamble_id != TXM_MODULE_ID)
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -175,12 +175,12 @@ UINT status;
/* Invalid properties. Return error. */
return(TXM_MODULE_INVALID_PROPERTIES);
}
-
+
/* Check for valid module entry offsets. */
if ((module_preamble -> txm_module_preamble_shell_entry_function == 0) ||
(module_preamble -> txm_module_preamble_start_function == 0))
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -194,7 +194,7 @@ UINT status;
(module_preamble -> txm_module_preamble_start_stop_stack_size == 0) ||
(module_preamble -> txm_module_preamble_callback_stack_size == 0))
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -227,11 +227,11 @@ UINT status;
/* Update the data size to account for the default thread stacks. */
TXM_MODULE_MANAGER_UTIL_MATH_ADD_ULONG(data_size, start_stop_stack_size, data_size);
TXM_MODULE_MANAGER_UTIL_MATH_ADD_ULONG(data_size, callback_stack_size, data_size);
-
+
/* Setup the default code and data alignments. */
data_alignment = (ULONG) TXM_MODULE_DATA_ALIGNMENT;
- /* Get the port-specific alignment for the data size. Note we only want data
+ /* Get the port-specific alignment for the data size. Note we only want data
so we pass values of 1 for code (to avoid any possible div by 0 errors). */
code_size_ignored = 1;
code_alignment_ignored = 1;
@@ -239,16 +239,16 @@ UINT status;
/* Calculate the module's total RAM memory requirement. This entire area is allocated from the module
manager's byte pool. The general layout is defined as follows:
-
+
Lowest Address: Start of start/stop thread stack
... [note: thread entry info is embedded near end of stack areas]
- End of start/stop thread stack
-
+ End of start/stop thread stack
+
Start of callback thread stack
... [note: thread entry info is embedded near end of stack areas]
- End of callback thread stack
-
- Module's Data Area
+ End of callback thread stack
+
+ Module's Data Area
...
End of Module's Data Area
Highest Address: */
@@ -258,11 +258,11 @@ UINT status;
/* Allocate memory for the module. */
status = _tx_byte_allocate(&_txm_module_manager_byte_pool, (VOID **) &memory_ptr, data_allocation_size, TX_NO_WAIT);
-
+
/* Determine if the module memory allocation was successful. */
if (status)
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -272,10 +272,10 @@ UINT status;
/* Clear the allocated memory. */
TX_MEMSET(memory_ptr, ((UCHAR) 0), data_allocation_size);
-
+
/* Disable interrupts. */
TX_DISABLE
-
+
/* Setup the module instance structure. */
module_instance -> txm_module_instance_id = TXM_MODULE_ID;
@@ -285,7 +285,7 @@ UINT status;
/* Save the module properties. */
module_instance -> txm_module_instance_property_flags = module_preamble -> txm_module_preamble_property_flags;
- /* Set the module data memory allocation. This is the address released
+ /* Set the module data memory allocation. This is the address released
when the module is unloaded. */
module_instance -> txm_module_instance_data_allocation_ptr = (VOID *) memory_ptr;
@@ -297,14 +297,14 @@ UINT status;
data_start = (data_start + (((ALIGN_TYPE)data_alignment) - 1)) & ~(((ALIGN_TYPE)data_alignment) - 1);
memory_ptr = (CHAR *) data_start;
module_instance -> txm_module_instance_data_start = (VOID *) memory_ptr;
-
+
/* Compute the end of the data memory allocation. */
module_instance -> txm_module_instance_data_end = (VOID *) (memory_ptr + (data_size - 1));
/* Save the size of the data area. */
module_instance -> txm_module_instance_data_size = data_size;
- /* Set the module code memory allocation. This is the address released
+ /* Set the module code memory allocation. This is the address released
when the module is unloaded. */
module_instance -> txm_module_instance_code_allocation_ptr = (VOID *) code_allocation_ptr;
@@ -329,7 +329,7 @@ UINT status;
/* Save the module application ID in the module instance. */
module_instance -> txm_module_instance_application_module_id = module_preamble -> txm_module_preamble_application_module_id;
-
+
/* Setup the module's start/stop thread stack area. */
module_instance -> txm_module_instance_start_stop_stack_start_address = (VOID *) (memory_ptr);
module_instance -> txm_module_instance_start_stop_stack_size = start_stop_stack_size;
@@ -358,36 +358,36 @@ UINT status;
/* Calculate the function adjustments based on the specific implementation of the module manager/module. */
TXM_MODULE_MANAGER_CALCULATE_ADJUSTMENTS(module_preamble -> txm_module_preamble_property_flags, shell_function_adjust, start_function_adjust, stop_function_adjust, callback_function_adjust)
- /* Build actual addresses based on load... Setup all the function pointers. Any adjustments needed to shell entry, start function, and callback function are defined in the
+ /* Build actual addresses based on load... Setup all the function pointers. Any adjustments needed to shell entry, start function, and callback function are defined in the
module preamble. */
- module_instance -> txm_module_instance_shell_entry_function = (VOID (*)(TX_THREAD *, TXM_MODULE_INSTANCE *)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
- (module_preamble -> txm_module_preamble_shell_entry_function) +
+ module_instance -> txm_module_instance_shell_entry_function = (VOID (*)(TX_THREAD *, TXM_MODULE_INSTANCE *)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
+ (module_preamble -> txm_module_preamble_shell_entry_function) +
(shell_function_adjust));
- module_instance -> txm_module_instance_start_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
- (module_preamble -> txm_module_preamble_start_function) +
+ module_instance -> txm_module_instance_start_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
+ (module_preamble -> txm_module_preamble_start_function) +
(start_function_adjust));
- module_instance -> txm_module_instance_callback_request_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
+ module_instance -> txm_module_instance_callback_request_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
(module_preamble -> txm_module_preamble_callback_function) +
- (callback_function_adjust));
+ (callback_function_adjust));
/* Determine if there is a stop function for this module. */
if (module_preamble -> txm_module_preamble_stop_function)
{
-
+
/* Yes, there is a stop function, build the address. */
- module_instance -> txm_module_instance_stop_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
- (module_preamble -> txm_module_preamble_stop_function) +
+ module_instance -> txm_module_instance_stop_thread_entry = (VOID (*)(ULONG)) (((CHAR *) module_instance -> txm_module_instance_code_start) +
+ (module_preamble -> txm_module_preamble_stop_function) +
(stop_function_adjust));
}
else
{
-
+
/* No, there is no stop function. Just set the pointer to NULL. */
module_instance -> txm_module_instance_stop_thread_entry = TX_NULL;
}
-
+
/* Load the module control block with port-specific information. */
TXM_MODULE_MANAGER_MODULE_SETUP(module_instance);
-
+
/* Now add the module to the linked list of created modules. */
if (_txm_module_manger_loaded_count++ == 0)
{
@@ -410,7 +410,7 @@ UINT status;
/* Setup this module's created links. */
module_instance -> txm_module_instance_loaded_previous = previous_module;
- module_instance -> txm_module_instance_loaded_next = next_module;
+ module_instance -> txm_module_instance_loaded_next = next_module;
}
/* Restore interrupts. */
diff --git a/common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c b/common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c
index a0929621..6839194a 100644
--- a/common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c
+++ b/common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c
@@ -29,7 +29,7 @@
#include "tx_queue.h"
#include "tx_mutex.h"
#include "tx_semaphore.h"
-#include "tx_thread.h"
+#include "tx_thread.h"
#include "tx_timer.h"
#include "tx_trace.h"
#include "txm_module.h"
@@ -41,7 +41,7 @@
/* FUNCTION RELEASE */
/* */
/* _txm_module_manager_kernel_dispatch PORTABLE C */
-/* 6.1.6 */
+/* 6.1.10 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
@@ -89,6 +89,9 @@
/* added optional defines to */
/* remove unneeded functions, */
/* resulting in version 6.1.6 */
+/* 01-31-2022 Scott Larson Modified comments and added */
+/* CALL_NOT_USED option, */
+/* resulting in version 6.1.10 */
/* */
/**************************************************************************/
ALIGN_TYPE _txm_module_manager_kernel_dispatch(ULONG kernel_request, ALIGN_TYPE param_0, ALIGN_TYPE param_1, ALIGN_TYPE param_2)
@@ -437,7 +440,7 @@ TXM_MODULE_INSTANCE *module_instance;
break;
}
#endif
-
+
#ifndef TXM_QUEUE_SEND_CALL_NOT_USED
case TXM_QUEUE_SEND_CALL:
{
@@ -888,14 +891,16 @@ TXM_MODULE_INSTANCE *module_instance;
return_value = (ALIGN_TYPE) _txm_module_manager_port_dispatch(module_instance, kernel_request, param_0, param_1, param_2);
}
#endif
-
- /* Determine if an application request is present. */
+
+ #ifndef TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED
+ /* Determine if an application request is present. */
if (kernel_request >= TXM_APPLICATION_REQUEST_ID_BASE)
{
/* Yes, call the module manager function that the application defines in order to
support application-specific requests. */
return_value = (ALIGN_TYPE) _txm_module_manager_application_request(kernel_request-TXM_APPLICATION_REQUEST_ID_BASE, param_0, param_1, param_2);
}
+ #endif
#ifdef TXM_MODULE_ENABLE_NETX
/* Determine if there is a NetX request. */
diff --git a/common_modules/module_manager/src/txm_module_manager_maximum_module_priority_set.c b/common_modules/module_manager/src/txm_module_manager_maximum_module_priority_set.c
index d725faf2..94367983 100644
--- a/common_modules/module_manager/src/txm_module_manager_maximum_module_priority_set.c
+++ b/common_modules/module_manager/src/txm_module_manager_maximum_module_priority_set.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -27,43 +27,43 @@
#include "txm_module.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_maximum_module_priority_set PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_maximum_module_priority_set PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function sets the maximum thread priority allowed in a module. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance pointer */
-/* priority Maximum thread priority */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_mutex_get Get protection mutex */
-/* _tx_mutex_put Release protection mutex */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function sets the maximum thread priority allowed in a module. */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance pointer */
+/* priority Maximum thread priority */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_mutex_get Get protection mutex */
+/* _tx_mutex_put Release protection mutex */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_maximum_module_priority_set(TXM_MODULE_INSTANCE *module_instance, UINT priority)
@@ -72,45 +72,45 @@ UINT _txm_module_manager_maximum_module_priority_set(TXM_MODULE_INSTANCE *module
if (_txm_module_manager_ready != TX_TRUE)
{
/* Module manager has not been initialized. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
-
+
/* Determine if the module is valid. */
if (module_instance == TX_NULL)
{
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
-
+
/* Get module manager protection mutex. */
_tx_mutex_get(&_txm_module_manager_mutex, TX_WAIT_FOREVER);
-
+
/* Determine if the module instance is valid. */
if (module_instance -> txm_module_instance_id != TXM_MODULE_ID)
{
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
-
+
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
-
+
/* Determine if the module instance is in the loaded state. */
if ((module_instance -> txm_module_instance_state != TXM_MODULE_LOADED) && (module_instance -> txm_module_instance_state != TXM_MODULE_STOPPED))
{
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
-
+
/* Return error if the module is not ready. */
return(TX_START_ERROR);
}
-
-
+
+
/* Set module's maximum priority. */
module_instance->txm_module_instance_maximum_priority = priority;
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
-
+
return(TX_SUCCESS);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_memory_load.c b/common_modules/module_manager/src/txm_module_manager_memory_load.c
index e35f01b9..8d35c554 100644
--- a/common_modules/module_manager/src/txm_module_manager_memory_load.c
+++ b/common_modules/module_manager/src/txm_module_manager_memory_load.c
@@ -71,7 +71,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_memory_load(TXM_MODULE_INSTANCE *module_instance, CHAR *module_name, VOID *module_location)
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. */
diff --git a/common_modules/module_manager/src/txm_module_manager_object_deallocate.c b/common_modules/module_manager/src/txm_module_manager_object_deallocate.c
index 5b90b995..fd9fefdb 100644
--- a/common_modules/module_manager/src/txm_module_manager_object_deallocate.c
+++ b/common_modules/module_manager/src/txm_module_manager_object_deallocate.c
@@ -23,7 +23,7 @@
#define TX_SOURCE_CODE
#include "tx_api.h"
-#include "tx_thread.h"
+#include "tx_thread.h"
#include "txm_module.h"
/**************************************************************************/
@@ -38,11 +38,11 @@
/* */
/* DESCRIPTION */
/* */
-/* This function deallocates a previously allocated object. */
+/* This function deallocates a previously allocated object. */
/* */
/* INPUT */
/* */
-/* object_ptr Object pointer to deallocate */
+/* object_ptr Object pointer to deallocate */
/* */
/* OUTPUT */
/* */
@@ -63,7 +63,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_deallocate(VOID *object_ptr)
@@ -78,18 +78,18 @@ UINT return_value;
/* Determine if an object pool was created. */
if (_txm_module_manager_object_pool_created)
{
-
+
TXM_MODULE_ALLOCATED_OBJECT *next_object, *previous_object;
-
+
/* Pickup module instance pointer. */
module_instance = _tx_thread_current_ptr -> tx_thread_module_instance_ptr;
-
+
/* Setup the memory pointer. */
module_allocated_object_ptr = (TXM_MODULE_ALLOCATED_OBJECT *) object_ptr;
-
+
/* Position the object pointer backwards to position back to the module manager information. */
previous_object = module_allocated_object_ptr--;
-
+
/* Make sure the object is valid. */
if ((module_allocated_object_ptr == TX_NULL) || (module_allocated_object_ptr -> txm_module_allocated_object_module_instance != module_instance) || (module_instance -> txm_module_instance_object_list_count == 0))
{
@@ -98,8 +98,8 @@ UINT return_value;
}
else
{
-
- /* Unlink the node. */
+
+ /* Unlink the node. */
if ((--module_instance -> txm_module_instance_object_list_count) == 0)
{
/* Only allocated object, just set the allocated list to NULL. */
@@ -112,16 +112,16 @@ UINT return_value;
previous_object = module_allocated_object_ptr -> txm_module_allocated_object_previous;
next_object -> txm_module_allocated_object_previous = previous_object;
previous_object -> txm_module_allocated_object_next = next_object;
-
+
/* See if we have to update the allocated object list head pointer. */
if (module_instance -> txm_module_instance_object_list_head == module_allocated_object_ptr)
{
/* Yes, move the head pointer to the next link. */
- module_instance -> txm_module_instance_object_list_head = next_object;
+ module_instance -> txm_module_instance_object_list_head = next_object;
}
}
-
- /* Release the object memory. */
+
+ /* Release the object memory. */
return_value = (ULONG) _txe_byte_release((VOID *) module_allocated_object_ptr);
}
}
@@ -130,9 +130,9 @@ UINT return_value;
/* Set return value to not enabled. */
return_value = TX_NOT_AVAILABLE;
}
-
+
/* Release the protection mutex. */
_txe_mutex_put(&_txm_module_manager_mutex);
-
+
return(return_value);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_object_pointer_get.c b/common_modules/module_manager/src/txm_module_manager_object_pointer_get.c
index 6a7927ea..dd58ff82 100644
--- a/common_modules/module_manager/src/txm_module_manager_object_pointer_get.c
+++ b/common_modules/module_manager/src/txm_module_manager_object_pointer_get.c
@@ -76,7 +76,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_pointer_get(UINT object_type, CHAR *name, VOID **object_ptr)
@@ -84,7 +84,7 @@ UINT _txm_module_manager_object_pointer_get(UINT object_type, CHAR *name, VOID
UINT status;
- /* Call the secure version of this function with the maximum length
+ /* Call the secure version of this function with the maximum length
possible since none was passed. */
status = _txm_module_manager_object_pointer_get_extended(object_type, name, TXM_MODULE_MANAGER_UTIL_MAX_VALUE_OF_TYPE_UNSIGNED(UINT), object_ptr);
return(status);
diff --git a/common_modules/module_manager/src/txm_module_manager_object_pointer_get_extended.c b/common_modules/module_manager/src/txm_module_manager_object_pointer_get_extended.c
index b62081ac..5ff38ccf 100644
--- a/common_modules/module_manager/src/txm_module_manager_object_pointer_get_extended.c
+++ b/common_modules/module_manager/src/txm_module_manager_object_pointer_get_extended.c
@@ -93,14 +93,14 @@
/* */
/* 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_pointer_get_extended(UINT object_type, CHAR *search_name, UINT search_name_length, VOID **object_ptr)
{
-
+
TX_INTERRUPT_SAVE_AREA
-
+
TX_THREAD *thread_ptr;
TX_TIMER *timer_ptr;
TX_QUEUE *queue_ptr;
@@ -117,7 +117,7 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if the name or object pointer are NULL. */
if ((search_name == TX_NULL) || (object_ptr == TX_NULL))
{
-
+
/* Return error! */
return(TX_PTR_ERROR);
}
@@ -133,36 +133,36 @@ TXM_MODULE_INSTANCE *module_instance;
/* Temporarily disable preemption. This will keep other threads from creating and deleting threads. */
_tx_thread_preempt_disable++;
-
+
/* Restore interrupts. */
TX_RESTORE
-
+
/* Process relative to the object type. */
switch(object_type)
{
-
+
/* Determine if a thread object is requested. */
case TXM_THREAD_OBJECT:
- {
-
+ {
+
/* Loop to find the first matching thread. */
i = 0;
thread_ptr = _tx_thread_created_ptr;
while (i < _tx_thread_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, thread_ptr -> tx_thread_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) thread_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
@@ -171,32 +171,32 @@ TXM_MODULE_INSTANCE *module_instance;
}
break;
}
-
+
/* Determine if a timer object is requested. */
case TXM_TIMER_OBJECT:
{
-
+
/* Loop to find the first matching timer. */
i = 0;
timer_ptr = _tx_timer_created_ptr;
while (i < _tx_timer_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, timer_ptr -> tx_timer_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) timer_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next timer. */
timer_ptr = timer_ptr -> tx_timer_created_next;
}
@@ -212,22 +212,22 @@ TXM_MODULE_INSTANCE *module_instance;
queue_ptr = _tx_queue_created_ptr;
while (i < _tx_queue_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, queue_ptr -> tx_queue_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) queue_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
/* Increment the counter. */
i++;
-
+
/* Move to next queue. */
queue_ptr = queue_ptr -> tx_queue_created_next;
}
@@ -243,22 +243,22 @@ TXM_MODULE_INSTANCE *module_instance;
events_ptr = _tx_event_flags_created_ptr;
while (i < _tx_event_flags_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, events_ptr -> tx_event_flags_group_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) events_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next event flags group. */
events_ptr = events_ptr -> tx_event_flags_group_created_next;
}
@@ -274,22 +274,22 @@ TXM_MODULE_INSTANCE *module_instance;
semaphore_ptr = _tx_semaphore_created_ptr;
while (i < _tx_semaphore_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, semaphore_ptr -> tx_semaphore_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) semaphore_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next semaphore. */
semaphore_ptr = semaphore_ptr -> tx_semaphore_created_next;
}
@@ -305,22 +305,22 @@ TXM_MODULE_INSTANCE *module_instance;
mutex_ptr = _tx_mutex_created_ptr;
while (i < _tx_mutex_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, mutex_ptr -> tx_mutex_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) mutex_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next mutex. */
mutex_ptr = mutex_ptr -> tx_mutex_created_next;
}
@@ -353,22 +353,22 @@ TXM_MODULE_INSTANCE *module_instance;
block_pool_ptr = _tx_block_pool_created_ptr;
while (i < _tx_block_pool_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, block_pool_ptr -> tx_block_pool_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) block_pool_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next block pool. */
block_pool_ptr = block_pool_ptr -> tx_block_pool_created_next;
}
@@ -401,22 +401,22 @@ TXM_MODULE_INSTANCE *module_instance;
byte_pool_ptr = _tx_byte_pool_created_ptr;
while (i < _tx_byte_pool_created_count)
{
-
+
/* Do we have a match? */
if (_txm_module_manager_object_name_compare(search_name, search_name_length, byte_pool_ptr -> tx_byte_pool_name))
{
-
+
/* Yes, we found it - return the necessary info! */
*object_ptr = (VOID *) byte_pool_ptr;
-
+
/* Set the the status to success! */
- status = TX_SUCCESS;
+ status = TX_SUCCESS;
break;
}
-
+
/* Increment the counter. */
i++;
-
+
/* Move to next byte pool. */
byte_pool_ptr = byte_pool_ptr -> tx_byte_pool_created_next;
}
@@ -435,7 +435,7 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if there is a NetX object get request. */
if ((object_type >= TXM_NETX_OBJECTS_START) && (object_type < TXM_NETX_OBJECTS_END))
{
-
+
/* Call the NetX module object get function. */
status = _txm_module_manager_netx_object_pointer_get(object_type, search_name, search_name_length, object_ptr);
}
@@ -446,7 +446,7 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if there is a NetX Duo object get request. */
if ((object_type >= TXM_NETXDUO_OBJECTS_START) && (object_type < TXM_NETXDUO_OBJECTS_END))
{
-
+
/* Call the NetX Duo module object get function. */
status = _txm_module_manager_netxduo_object_pointer_get(object_type, search_name, search_name_length, object_ptr);
}
@@ -457,7 +457,7 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if there is a FileX object get request. */
if ((object_type >= TXM_FILEX_OBJECTS_START) && (object_type < TXM_FILEX_OBJECTS_END))
{
-
+
/* Call the FileX module object get function. */
status = _txm_module_manager_filex_object_pointer_get(object_type, search_name, search_name_length, object_ptr);
}
@@ -469,7 +469,7 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if there is a GUIX object get request. */
if ((object_type >= TXM_GUIX_OBJECTS_START) && (object_type < TXM_GUIX_OBJECTS_END))
{
-
+
/* Call the GUIX module object get function. */
status = _txm_module_manager_guix_object_pointer_get(object_type, search_name, search_name_length, object_ptr);
}
@@ -480,13 +480,13 @@ TXM_MODULE_INSTANCE *module_instance;
/* Determine if there is a USBX object get request. */
if ((object_type >= TXM_USBX_OBJECTS_START) && (object_type < TXM_USBX_OBJECTS_END))
{
-
+
/* Call the USBX object get function. */
status = _txm_module_manager_usbx_object_pointer_get(object_type, search_name, search_name_length, object_ptr);
}
#endif
- break;
+ break;
}
/* Disable interrupts. */
diff --git a/common_modules/module_manager/src/txm_module_manager_object_pool_create.c b/common_modules/module_manager/src/txm_module_manager_object_pool_create.c
index 25a91340..9090432a 100644
--- a/common_modules/module_manager/src/txm_module_manager_object_pool_create.c
+++ b/common_modules/module_manager/src/txm_module_manager_object_pool_create.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -26,56 +26,56 @@
#include "txm_module.h"
#include "tx_byte_pool.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* txm_module_manager_object_pool_create PORTABLE C */
+/**************************************************************************/
+/* */
+/* 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 */
-/* */
+/* 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 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
UINT _txm_module_manager_object_pool_create(VOID *object_memory, ULONG object_memory_size)
{
- /* Create a byte pool for allocating RAM areas for modules. */
+ /* 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);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_properties_get.c b/common_modules/module_manager/src/txm_module_manager_properties_get.c
index 3a91812d..d46afa75 100644
--- a/common_modules/module_manager/src/txm_module_manager_properties_get.c
+++ b/common_modules/module_manager/src/txm_module_manager_properties_get.c
@@ -10,57 +10,57 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
#include "txm_module.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_properties_get PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_properties_get PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function returns the properties of the specified module so they*/
-/* may be checked before executing the module. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance pointer */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function returns the properties of the specified module so they*/
+/* may be checked before executing the module. */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance pointer */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_properties_get(TXM_MODULE_INSTANCE *module_instance, ULONG *module_properties_ptr)
@@ -69,15 +69,15 @@ UINT _txm_module_manager_properties_get(TXM_MODULE_INSTANCE *module_instance, U
/* Determine if the module manager has not been initialized yet. */
if (_txm_module_manager_ready != TX_TRUE)
{
-
+
/* Module manager has not been initialized. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
/* Determine if the module is valid. */
if (module_instance == TX_NULL)
{
-
+
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_queue_notify_trampoline.c b/common_modules/module_manager/src/txm_module_manager_queue_notify_trampoline.c
index 436bec4e..453e88f0 100644
--- a/common_modules/module_manager/src/txm_module_manager_queue_notify_trampoline.c
+++ b/common_modules/module_manager/src/txm_module_manager_queue_notify_trampoline.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -28,41 +28,41 @@
#include "txm_module.h"
#ifndef TX_DISABLE_NOTIFY_CALLBACKS
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_queue_notify_trampoline PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_queue_notify_trampoline PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the queue notification call from ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* queue_ptr Queue pointer */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_callback_request Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the queue notification call from ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* queue_ptr Queue pointer */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_callback_request Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_queue_notify_trampoline(TX_QUEUE *queue_ptr)
@@ -74,9 +74,9 @@ TXM_MODULE_INSTANCE *module_instance;
TXM_MODULE_CALLBACK_MESSAGE callback_message;
TX_QUEUE *module_callback_queue;
-
+
/* We now know the callback is for a module. */
-
+
/* Disable interrupts. */
TX_DISABLE
@@ -87,9 +87,9 @@ TX_QUEUE *module_callback_queue;
if ((module_instance) && (module_instance -> txm_module_instance_id == TXM_MODULE_ID) &&
(module_instance -> txm_module_instance_state == TXM_MODULE_STARTED))
{
-
- /* Yes, the module is still valid. */
-
+
+ /* Yes, the module is still valid. */
+
/* Pickup the module's callback message queue. */
module_callback_queue = &(module_instance -> txm_module_instance_callback_request_queue);
@@ -107,26 +107,26 @@ TX_QUEUE *module_callback_queue;
callback_message.txm_module_callback_message_param_8 = 0;
callback_message.txm_module_callback_message_reserved1 = 0;
callback_message.txm_module_callback_message_reserved2 = 0;
-
+
/* Restore interrupts. */
TX_RESTORE
-
- /* Call the general processing that will place the callback on the
+
+ /* Call the general processing that will place the callback on the
module's callback request queue. */
_txm_module_manager_callback_request(module_callback_queue, &callback_message);
}
else
{
-
+
/* Module no longer valid. */
-
+
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
/* Restore interrupts. */
TX_RESTORE
}
-}
+}
#endif
-
+
diff --git a/common_modules/module_manager/src/txm_module_manager_semaphore_notify_trampoline.c b/common_modules/module_manager/src/txm_module_manager_semaphore_notify_trampoline.c
index e90fd28c..4992a0b8 100644
--- a/common_modules/module_manager/src/txm_module_manager_semaphore_notify_trampoline.c
+++ b/common_modules/module_manager/src/txm_module_manager_semaphore_notify_trampoline.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -28,42 +28,42 @@
#include "txm_module.h"
#ifndef TX_DISABLE_NOTIFY_CALLBACKS
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_semaphore_notify_trampoline PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_semaphore_notify_trampoline PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the semaphore put notification call from */
-/* ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* semaphore_ptr Semaphore pointer */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_callback_request Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the semaphore put notification call from */
+/* ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* semaphore_ptr Semaphore pointer */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_callback_request Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_semaphore_notify_trampoline(TX_SEMAPHORE *semaphore_ptr)
@@ -75,9 +75,9 @@ TXM_MODULE_INSTANCE *module_instance;
TXM_MODULE_CALLBACK_MESSAGE callback_message;
TX_QUEUE *module_callback_queue;
-
+
/* We now know the callback is for a module. */
-
+
/* Disable interrupts. */
TX_DISABLE
@@ -88,9 +88,9 @@ TX_QUEUE *module_callback_queue;
if ((module_instance) && (module_instance -> txm_module_instance_id == TXM_MODULE_ID) &&
(module_instance -> txm_module_instance_state == TXM_MODULE_STARTED))
{
-
- /* Yes, the module is still valid. */
-
+
+ /* Yes, the module is still valid. */
+
/* Pickup the module's callback message queue. */
module_callback_queue = &(module_instance -> txm_module_instance_callback_request_queue);
@@ -108,24 +108,24 @@ TX_QUEUE *module_callback_queue;
callback_message.txm_module_callback_message_param_8 = 0;
callback_message.txm_module_callback_message_reserved1 = 0;
callback_message.txm_module_callback_message_reserved2 = 0;
-
+
/* Restore interrupts. */
TX_RESTORE
-
- /* Call the general processing that will place the callback on the
+
+ /* Call the general processing that will place the callback on the
module's callback request queue. */
_txm_module_manager_callback_request(module_callback_queue, &callback_message);
}
else
{
-
+
/* Module no longer valid. */
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
-
+
/* Restore interrupts. */
TX_RESTORE
}
-}
+}
#endif
diff --git a/common_modules/module_manager/src/txm_module_manager_start.c b/common_modules/module_manager/src/txm_module_manager_start.c
index 365803b5..9d839624 100644
--- a/common_modules/module_manager/src/txm_module_manager_start.c
+++ b/common_modules/module_manager/src/txm_module_manager_start.c
@@ -75,22 +75,22 @@
/**************************************************************************/
UINT _txm_module_manager_start(TXM_MODULE_INSTANCE *module_instance)
{
-
+
UINT status;
/* Determine if the module manager has not been initialized yet. */
if (_txm_module_manager_ready != TX_TRUE)
{
-
+
/* Module manager has not been initialized. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
/* Determine if the module is valid. */
if (module_instance == TX_NULL)
{
-
+
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
@@ -108,11 +108,11 @@ UINT status;
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
-
+
/* Determine if the module instance is in the loaded state. */
if ((module_instance -> txm_module_instance_state != TXM_MODULE_LOADED) && (module_instance -> txm_module_instance_state != TXM_MODULE_STOPPED))
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -124,7 +124,7 @@ UINT status;
if (module_instance -> txm_module_instance_start_stop_priority < module_instance -> txm_module_instance_maximum_priority ||
module_instance -> txm_module_instance_callback_priority < module_instance -> txm_module_instance_maximum_priority)
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -133,13 +133,13 @@ UINT status;
}
/* Create the module's callback request queue. */
- status = _tx_queue_create(&(module_instance -> txm_module_instance_callback_request_queue), "Module Callback Request Queue", (sizeof(TXM_MODULE_CALLBACK_MESSAGE)/sizeof(ULONG)),
+ status = _tx_queue_create(&(module_instance -> txm_module_instance_callback_request_queue), "Module Callback Request Queue", (sizeof(TXM_MODULE_CALLBACK_MESSAGE)/sizeof(ULONG)),
module_instance -> txm_module_instance_callback_request_queue_area, sizeof(module_instance -> txm_module_instance_callback_request_queue_area));
/* Determine if there was an error. */
if (status)
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -147,7 +147,7 @@ UINT status;
return(TX_START_ERROR);
}
- /* Create the module start thread. */
+ /* Create the module start thread. */
status = _txm_module_manager_thread_create(&(module_instance -> txm_module_instance_start_stop_thread),
"Module Start Thread",
module_instance -> txm_module_instance_shell_entry_function,
@@ -158,14 +158,14 @@ UINT status;
(UINT) module_instance -> txm_module_instance_start_stop_priority,
(UINT) module_instance -> txm_module_instance_start_stop_priority,
TXM_MODULE_TIME_SLICE,
- TX_DONT_START,
+ TX_DONT_START,
sizeof(TX_THREAD),
module_instance);
-
+
/* Determine if the thread create was successful. */
if (status != TX_SUCCESS)
{
-
+
/* Delete the callback notification queue. */
_tx_queue_delete(&(module_instance -> txm_module_instance_callback_request_queue));
@@ -173,10 +173,10 @@ UINT status;
_tx_mutex_put(&_txm_module_manager_mutex);
/* Return the error status. */
- return(status);
+ return(status);
}
- /* Create the module callback thread. */
+ /* Create the module callback thread. */
status = _txm_module_manager_thread_create(&(module_instance -> txm_module_instance_callback_request_thread),
"Module Callback Request Thread",
module_instance -> txm_module_instance_shell_entry_function,
@@ -187,20 +187,20 @@ UINT status;
(UINT) module_instance -> txm_module_instance_callback_priority,
(UINT) module_instance -> txm_module_instance_callback_priority,
TX_NO_TIME_SLICE,
- TX_DONT_START,
+ TX_DONT_START,
sizeof(TX_THREAD),
module_instance);
-
+
/* Determine if the thread create was successful. */
if (status != TX_SUCCESS)
{
/* Terminate the start thread. */
_tx_thread_terminate(&(module_instance -> txm_module_instance_start_stop_thread));
-
+
/* Delete the start thread. */
_tx_thread_delete(&(module_instance -> txm_module_instance_start_stop_thread));
-
+
/* Delete the callback notification queue. */
_tx_queue_delete(&(module_instance -> txm_module_instance_callback_request_queue));
@@ -208,7 +208,7 @@ UINT status;
_tx_mutex_put(&_txm_module_manager_mutex);
/* Return the error status. */
- return(status);
+ return(status);
}
diff --git a/common_modules/module_manager/src/txm_module_manager_thread_notify_trampoline.c b/common_modules/module_manager/src/txm_module_manager_thread_notify_trampoline.c
index d70ff718..daff01ce 100644
--- a/common_modules/module_manager/src/txm_module_manager_thread_notify_trampoline.c
+++ b/common_modules/module_manager/src/txm_module_manager_thread_notify_trampoline.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -28,43 +28,43 @@
#include "txm_module.h"
#ifndef TX_DISABLE_NOTIFY_CALLBACKS
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_thread_notify_trampoline PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_thread_notify_trampoline PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the thread entry/exit notification call */
-/* from ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Thread pointer */
-/* type Entry or exit type */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_callback_request Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the thread entry/exit notification call */
+/* from ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Thread pointer */
+/* type Entry or exit type */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_callback_request Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_thread_notify_trampoline(TX_THREAD *thread_ptr, UINT type)
@@ -77,9 +77,9 @@ TXM_MODULE_CALLBACK_MESSAGE callback_message;
TX_QUEUE *module_callback_queue;
TXM_MODULE_THREAD_ENTRY_INFO *thread_info;
-
+
/* We now know the callback is for a module. */
-
+
/* Disable interrupts. */
TX_DISABLE
@@ -97,9 +97,9 @@ TXM_MODULE_THREAD_ENTRY_INFO *thread_info;
if ((module_instance) && (module_instance -> txm_module_instance_id == TXM_MODULE_ID) &&
(module_instance -> txm_module_instance_state == TXM_MODULE_STARTED))
{
-
- /* Yes, the module is still valid. */
-
+
+ /* Yes, the module is still valid. */
+
/* Pickup the module's callback message queue. */
module_callback_queue = &(module_instance -> txm_module_instance_callback_request_queue);
@@ -117,19 +117,19 @@ TXM_MODULE_THREAD_ENTRY_INFO *thread_info;
callback_message.txm_module_callback_message_param_8 = 0;
callback_message.txm_module_callback_message_reserved1 = 0;
callback_message.txm_module_callback_message_reserved2 = 0;
-
+
/* Restore interrupts. */
TX_RESTORE
-
- /* Call the general processing that will place the callback on the
+
+ /* Call the general processing that will place the callback on the
module's callback request queue. */
_txm_module_manager_callback_request(module_callback_queue, &callback_message);
}
else
{
-
+
/* Module no longer valid. */
-
+
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
@@ -139,15 +139,15 @@ TXM_MODULE_THREAD_ENTRY_INFO *thread_info;
}
else
{
-
+
/* Thread pointer is not valid. */
-
+
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
/* Restore interrupts. */
TX_RESTORE
}
-}
+}
#endif
-
+
diff --git a/common_modules/module_manager/src/txm_module_manager_thread_reset.c b/common_modules/module_manager/src/txm_module_manager_thread_reset.c
index 0fd0b2af..1a9d2ac8 100644
--- a/common_modules/module_manager/src/txm_module_manager_thread_reset.c
+++ b/common_modules/module_manager/src/txm_module_manager_thread_reset.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -27,45 +27,45 @@
#include "tx_thread.h"
#include "txm_module.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_thread_reset PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_thread_reset PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function prepares the thread to run again from the entry */
-/* point specified during thread creation. The application must */
-/* call tx_thread_resume after this call completes for the thread */
-/* to actually run. */
-/* */
-/* INPUT */
-/* */
-/* thread_ptr Pointer to thread to reset */
-/* */
-/* OUTPUT */
-/* */
-/* status Service return status */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_thread_stack_build Build initial thread */
-/* stack */
-/* */
-/* CALLED BY */
-/* */
-/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function prepares the thread to run again from the entry */
+/* point specified during thread creation. The application must */
+/* call tx_thread_resume after this call completes for the thread */
+/* to actually run. */
+/* */
+/* INPUT */
+/* */
+/* thread_ptr Pointer to thread to reset */
+/* */
+/* OUTPUT */
+/* */
+/* status Service return status */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_thread_stack_build Build initial thread */
+/* stack */
+/* */
+/* CALLED BY */
+/* */
+/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_thread_reset(TX_THREAD *thread_ptr)
@@ -101,7 +101,7 @@ TXM_MODULE_THREAD_ENTRY_INFO *thread_entry_info;
{
/* Check for proper status of this thread to reset. */
- if (thread_ptr -> tx_thread_state != TX_COMPLETED)
+ if (thread_ptr -> tx_thread_state != TX_COMPLETED)
{
/* Now check for terminated state. */
@@ -139,18 +139,18 @@ TXM_MODULE_THREAD_ENTRY_INFO *thread_entry_info;
#endif
/* Setup pointer to the thread entry information structure, which will live at the top of each
- module thread's stack. This will allow the module thread entry function to avoid direct
+ module thread's stack. This will allow the module thread entry function to avoid direct
access to the actual thread control block. */
thread_entry_info = (TXM_MODULE_THREAD_ENTRY_INFO *) (((UCHAR *) thread_ptr -> tx_thread_stack_end) + (2*sizeof(ULONG)) + 1);
thread_entry_info = (TXM_MODULE_THREAD_ENTRY_INFO *) (((ALIGN_TYPE)(thread_entry_info)) & (~0x3));
-
+
/* Place the thread entry information pointer in the thread control block so it can be picked up
in the following stack build function. This is supplied to the module's shell entry function
to avoid direct access to the actual thread control block. Note that this is overwritten
with the actual stack pointer at the end of stack build. */
thread_ptr -> tx_thread_stack_ptr = (VOID *) thread_entry_info;
-
- /* Call the target specific stack frame building routine to build the
+
+ /* Call the target specific stack frame building routine to build the
thread's initial stack and to setup the actual stack pointer in the
control block. */
_txm_module_manager_thread_stack_build(thread_ptr, module_instance -> txm_module_instance_shell_entry_function);
diff --git a/common_modules/module_manager/src/txm_module_manager_timer_notify_trampoline.c b/common_modules/module_manager/src/txm_module_manager_timer_notify_trampoline.c
index 9bcdd5d9..a7566c92 100644
--- a/common_modules/module_manager/src/txm_module_manager_timer_notify_trampoline.c
+++ b/common_modules/module_manager/src/txm_module_manager_timer_notify_trampoline.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -27,43 +27,43 @@
#include "tx_thread.h"
#include "tx_timer.h"
#include "txm_module.h"
-
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_timer_notify_trampoline PORTABLE C */
+
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_timer_notify_trampoline PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function processes the timer expirations from ThreadX. */
-/* */
-/* INPUT */
-/* */
-/* id Timer ID */
-/* */
-/* OUTPUT */
-/* */
-/* None */
-/* */
-/* CALLS */
-/* */
-/* _txm_module_manager_callback_request Send module callback request */
-/* */
-/* CALLED BY */
-/* */
-/* ThreadX */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function processes the timer expirations from ThreadX. */
+/* */
+/* INPUT */
+/* */
+/* id Timer ID */
+/* */
+/* OUTPUT */
+/* */
+/* None */
+/* */
+/* CALLS */
+/* */
+/* _txm_module_manager_callback_request Send module callback request */
+/* */
+/* CALLED BY */
+/* */
+/* ThreadX */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
VOID _txm_module_manager_timer_notify_trampoline(ULONG id)
@@ -77,20 +77,20 @@ TX_QUEUE *module_callback_queue;
TX_TIMER *timer_ptr;
CHAR *internal_ptr;
-
+
/* We now know the callback is for a module. */
-
+
/* Disable interrupts. */
TX_DISABLE
-
- /* Our expired timer pointer points to the internal timer,
+
+ /* Our expired timer pointer points to the internal timer,
* we need to get to the full timer pointer. */
/* Pickup the current internal timer pointer. */
- internal_ptr = (CHAR *) _tx_timer_expired_timer_ptr;
-
+ internal_ptr = (CHAR *) _tx_timer_expired_timer_ptr;
+
/* Get the timer pointer from the internal pointer. */
TX_USER_TIMER_POINTER_GET((TX_TIMER_INTERNAL *) internal_ptr, timer_ptr);
-
+
/* Pickup the module instance pointer. */
module_instance = (TXM_MODULE_INSTANCE *) timer_ptr -> tx_timer_module_instance;
@@ -98,9 +98,9 @@ CHAR *internal_ptr;
if ((module_instance) && (module_instance -> txm_module_instance_id == TXM_MODULE_ID) &&
(module_instance -> txm_module_instance_state == TXM_MODULE_STARTED))
{
-
- /* Yes, the module is still valid. */
-
+
+ /* Yes, the module is still valid. */
+
/* Pickup the module's callback message queue. */
module_callback_queue = &(module_instance -> txm_module_instance_callback_request_queue);
@@ -118,24 +118,24 @@ CHAR *internal_ptr;
callback_message.txm_module_callback_message_param_8 = 0;
callback_message.txm_module_callback_message_reserved1 = 0;
callback_message.txm_module_callback_message_reserved2 = 0;
-
+
/* Restore interrupts. */
TX_RESTORE
-
- /* Call the general processing that will place the callback on the
+
+ /* Call the general processing that will place the callback on the
module's callback request queue. */
_txm_module_manager_callback_request(module_callback_queue, &callback_message);
}
else
{
-
+
/* Module no longer valid. */
/* Error, increment the error counter and return. */
_txm_module_manager_callback_error_count++;
-
+
/* Restore interrupts. */
TX_RESTORE
}
-}
-
+}
+
diff --git a/common_modules/module_manager/src/txm_module_manager_unload.c b/common_modules/module_manager/src/txm_module_manager_unload.c
index 4f83f726..fd5f88af 100644
--- a/common_modules/module_manager/src/txm_module_manager_unload.c
+++ b/common_modules/module_manager/src/txm_module_manager_unload.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
#define TX_SOURCE_CODE
@@ -30,50 +30,50 @@
#include "txm_module.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_unload PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_unload PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function unloads a previously loaded module. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance pointer */
-/* */
-/* OUTPUT */
-/* */
-/* status Completion status */
-/* */
-/* CALLS */
-/* */
-/* _tx_byte_release Release data area */
-/* _tx_mutex_get Get protection mutex */
-/* _tx_mutex_put Release protection mutex */
-/* */
-/* CALLED BY */
-/* */
-/* Application code */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function unloads a previously loaded module. */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance pointer */
+/* */
+/* OUTPUT */
+/* */
+/* status Completion status */
+/* */
+/* CALLS */
+/* */
+/* _tx_byte_release Release data area */
+/* _tx_mutex_get Get protection mutex */
+/* _tx_mutex_put Release protection mutex */
+/* */
+/* CALLED BY */
+/* */
+/* Application code */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_unload(TXM_MODULE_INSTANCE *module_instance)
{
TX_INTERRUPT_SAVE_AREA
-
+
TXM_MODULE_INSTANCE *next_module, *previous_module;
CHAR *memory_ptr;
@@ -81,11 +81,11 @@ CHAR *memory_ptr;
/* Check for interrupt call. */
if (TX_THREAD_GET_SYSTEM_STATE() != 0)
{
-
+
/* Now, make sure the call is from an interrupt and not initialization. */
if (TX_THREAD_GET_SYSTEM_STATE() < TX_INITIALIZE_IN_PROGRESS)
{
-
+
/* Invalid caller of this function, return appropriate error code. */
return(TX_CALLER_ERROR);
}
@@ -94,15 +94,15 @@ CHAR *memory_ptr;
/* Determine if the module manager has not been initialized yet. */
if (_txm_module_manager_ready != TX_TRUE)
{
-
+
/* Module manager has not been initialized. */
- return(TX_NOT_AVAILABLE);
+ return(TX_NOT_AVAILABLE);
}
/* Determine if the module is valid. */
if (module_instance == TX_NULL)
{
-
+
/* Invalid module pointer. */
return(TX_PTR_ERROR);
}
@@ -124,7 +124,7 @@ CHAR *memory_ptr;
/* Determine if the module instance is in the state. */
if ((module_instance -> txm_module_instance_state != TXM_MODULE_LOADED) && (module_instance -> txm_module_instance_state != TXM_MODULE_STOPPED))
{
-
+
/* Release the protection mutex. */
_tx_mutex_put(&_txm_module_manager_mutex);
@@ -141,14 +141,14 @@ CHAR *memory_ptr;
/* Determine if there was memory allocated for the code. */
if (module_instance -> txm_module_instance_code_allocation_ptr)
{
-
+
/* Yes, release the module's code memory. */
memory_ptr = module_instance -> txm_module_instance_code_allocation_ptr;
/* Release the module's data memory. */
_tx_byte_release(memory_ptr);
}
-
+
/* Temporarily disable interrupts. */
TX_DISABLE
@@ -158,7 +158,7 @@ CHAR *memory_ptr;
/* Call port-specific unload function. */
TXM_MODULE_MANAGER_MODULE_UNLOAD(module_instance);
-
+
/* Remove the module from the linked list of loaded modules. */
/* See if the module is the only one on the list. */
@@ -180,9 +180,9 @@ CHAR *memory_ptr;
/* See if we have to update the created list head pointer. */
if (_txm_module_manager_loaded_list_ptr == module_instance)
{
-
+
/* Yes, move the head pointer to the next link. */
- _txm_module_manager_loaded_list_ptr = next_module;
+ _txm_module_manager_loaded_list_ptr = next_module;
}
}
diff --git a/common_modules/module_manager/src/txm_module_manager_util.c b/common_modules/module_manager/src/txm_module_manager_util.c
index 8511fce6..bd6c79eb 100644
--- a/common_modules/module_manager/src/txm_module_manager_util.c
+++ b/common_modules/module_manager/src/txm_module_manager_util.c
@@ -10,15 +10,15 @@
/**************************************************************************/
-/**************************************************************************/
-/**************************************************************************/
-/** */
-/** ThreadX Component */
-/** */
-/** Module Manager */
-/** */
-/**************************************************************************/
-/**************************************************************************/
+/**************************************************************************/
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** Module Manager */
+/** */
+/**************************************************************************/
+/**************************************************************************/
/* Include necessary system files. */
@@ -29,115 +29,115 @@
#include "txm_module_manager_util.h"
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_object_memory_check PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_object_memory_check PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks if the object is inside a module's object pool */
-/* or, if it's a privileged module, inside the module's data area. */
-/* */
-/* INPUT */
-/* */
-/* module_instance Module instance that the object */
-/* belongs to */
-/* object_ptr Pointer to object to check */
-/* object_size Size of the object to check */
-/* */
-/* OUTPUT */
-/* */
-/* status Whether the object resides in a */
-/* valid location */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks if the object is inside a module's object pool */
+/* or, if it's a privileged module, inside the module's data area. */
+/* */
+/* INPUT */
+/* */
+/* module_instance Module instance that the object */
+/* belongs to */
+/* object_ptr Pointer to object to check */
+/* object_size Size of the object to check */
+/* */
+/* OUTPUT */
+/* */
+/* status Whether the object resides in a */
+/* valid location */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_memory_check(TXM_MODULE_INSTANCE *module_instance, ALIGN_TYPE object_ptr, ULONG object_size)
{
-
+
/* Is the object pointer from the module manager's object pool? */
- if ((_txm_module_manager_object_pool_created == TX_TRUE) &&
- (object_ptr >= (ALIGN_TYPE) _txm_module_manager_object_pool.tx_byte_pool_start) &&
+ if ((_txm_module_manager_object_pool_created == TX_TRUE) &&
+ (object_ptr >= (ALIGN_TYPE) _txm_module_manager_object_pool.tx_byte_pool_start) &&
((object_ptr+object_size) <= (ALIGN_TYPE) (_txm_module_manager_object_pool.tx_byte_pool_start + _txm_module_manager_object_pool.tx_byte_pool_size)))
{
/* Object is from manager object pool. */
return(TX_SUCCESS);
}
-
+
/* If memory protection is not required, check if object is in module data. */
else if (!(module_instance -> txm_module_instance_property_flags & TXM_MODULE_MEMORY_PROTECTION))
{
- if ((object_ptr >= (ALIGN_TYPE) module_instance -> txm_module_instance_data_start) &&
+ if ((object_ptr >= (ALIGN_TYPE) module_instance -> txm_module_instance_data_start) &&
((object_ptr+object_size) <= (ALIGN_TYPE) module_instance -> txm_module_instance_data_end))
{
/* Object is from the local module memory. */
return(TX_SUCCESS);
}
}
-
+
/* Object is from invalid memory. */
return(TXM_MODULE_INVALID_MEMORY);
-
+
}
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_created_object_check PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_created_object_check PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
+/* DESCRIPTION */
+/* */
/* This functions checks if the specified object was created by the */
-/* specified module */
-/* */
-/* INPUT */
-/* */
-/* module_instance The module instance to check */
-/* object_ptr The object to check */
-/* */
-/* OUTPUT */
-/* */
-/* status Whether the module created the */
-/* object */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* txm_module_manager*_stop Module manager stop functions */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* specified module */
+/* */
+/* INPUT */
+/* */
+/* module_instance The module instance to check */
+/* object_ptr The object to check */
+/* */
+/* OUTPUT */
+/* */
+/* status Whether the module created the */
+/* object */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* txm_module_manager*_stop Module manager stop functions */
+/* */
+/* RELEASE HISTORY */
+/* */
/* DATE NAME DESCRIPTION */
/* */
-/* 09-30-2020 Scott Larson Initial Version 6.1 */
+/* 09-30-2020 Scott Larson Initial Version 6.1 */
/* */
/**************************************************************************/
UCHAR _txm_module_manager_created_object_check(TXM_MODULE_INSTANCE *module_instance, VOID *object_ptr)
@@ -179,51 +179,51 @@ TXM_MODULE_ALLOCATED_OBJECT *allocated_object_ptr;
}
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_object_size_check PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_object_size_check PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function checks if the specified object's size matches what is */
-/* inside the object pool. */
-/* */
-/* INPUT */
-/* */
-/* object_ptr Pointer to object to check */
-/* object_size Size of the object to check */
-/* */
-/* OUTPUT */
-/* */
-/* status Whether the object's size matches */
-/* what's inside the object pool */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function checks if the specified object's size matches what is */
+/* inside the object pool. */
+/* */
+/* INPUT */
+/* */
+/* object_ptr Pointer to object to check */
+/* object_size Size of the object to check */
+/* */
+/* OUTPUT */
+/* */
+/* status Whether the object's size matches */
+/* what's inside the object pool */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* _txm_module_manager_kernel_dispatch Kernel dispatch function */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_size_check(ALIGN_TYPE object_ptr, ULONG object_size)
{
TXM_MODULE_ALLOCATED_OBJECT *module_allocated_object_ptr;
UINT return_value;
-
+
/* Pickup the allocated object pointer. */
module_allocated_object_ptr = ((TXM_MODULE_ALLOCATED_OBJECT *) object_ptr) - 1;
@@ -232,50 +232,50 @@ UINT return_value;
return_value = TX_SUCCESS;
else
return_value = TXM_MODULE_INVALID_MEMORY;
-
+
return(return_value);
}
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_name_compare PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_name_compare PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function compares the specified object names. */
-/* */
-/* INPUT */
-/* */
-/* search_name String pointer to the object's */
-/* name being searched for */
-/* search_name_length Length of search_name */
-/* object_name String pointer to an object's name*/
-/* to compare the search name to */
-/* */
-/* OUTPUT */
-/* */
-/* status Whether the names are equal */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* *_object_pointer_get Kernel dispatch function */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function compares the specified object names. */
+/* */
+/* INPUT */
+/* */
+/* search_name String pointer to the object's */
+/* name being searched for */
+/* search_name_length Length of search_name */
+/* object_name String pointer to an object's name*/
+/* to compare the search name to */
+/* */
+/* OUTPUT */
+/* */
+/* status Whether the names are equal */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* *_object_pointer_get Kernel dispatch function */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_name_compare(CHAR *search_name, UINT search_name_length, CHAR *object_name)
@@ -337,48 +337,48 @@ CHAR object_name_char;
}
-/**************************************************************************/
-/* */
-/* FUNCTION RELEASE */
-/* */
-/* _txm_module_manager_util_code_allocation_size_and_alignment_get */
-/* PORTABLE C */
+/**************************************************************************/
+/* */
+/* FUNCTION RELEASE */
+/* */
+/* _txm_module_manager_util_code_allocation_size_and_alignment_get */
+/* PORTABLE C */
/* 6.1 */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
/* */
-/* DESCRIPTION */
-/* */
-/* This function returns the required alignment and allocation size */
-/* for a module's code area. */
-/* */
-/* INPUT */
-/* */
-/* module_preamble Preamble of module to return code */
-/* values for */
-/* code_alignment_dest Address to return code alignment */
-/* code_allocation_size_desk Address to return code allocation */
-/* size */
-/* */
-/* OUTPUT */
-/* */
-/* status Success if no math overflow */
-/* occurred during calculation */
-/* */
-/* CALLS */
-/* */
-/* None */
-/* */
-/* CALLED BY */
-/* */
-/* txm_module_manager_*_load Module load functions */
-/* */
-/* RELEASE HISTORY */
-/* */
+/* DESCRIPTION */
+/* */
+/* This function returns the required alignment and allocation size */
+/* for a module's code area. */
+/* */
+/* INPUT */
+/* */
+/* module_preamble Preamble of module to return code */
+/* values for */
+/* code_alignment_dest Address to return code alignment */
+/* code_allocation_size_desk Address to return code allocation */
+/* size */
+/* */
+/* OUTPUT */
+/* */
+/* status Success if no math overflow */
+/* occurred during calculation */
+/* */
+/* CALLS */
+/* */
+/* None */
+/* */
+/* CALLED BY */
+/* */
+/* txm_module_manager_*_load Module load functions */
+/* */
+/* RELEASE HISTORY */
+/* */
/* 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_util_code_allocation_size_and_alignment_get(TXM_MODULE_PREAMBLE *module_preamble,