1
10
13
14
20
21
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
99
100
103
104
110
111
112
113
114
115
116
117
118
119
120
...
...
...
#define TX_SOURCE_CODE
#include "tx_api.h"
#include "tx_initialize.h"
#include "tx_mutex.h"
#include "tx_thread.h"
#include "tx_byte_pool.h"
#include "txm_module.h"
#include "txm_module_manager_util.h"
7 includes
...
...
UINT _txm_module_manager_in_place_load(TXM_MODULE_INSTANCE *module_instance, CHAR *module_name, VOID *module_location)
{
TXM_MODULE_PREAMBLE *module_preamble;
ULONG code_size;
ULONG code_alignment;
ULONG code_allocation_size_ignored;
UINT status;
module_preamble = (TXM_MODULE_PREAMBLE *) module_location;
code_size = module_preamble -> txm_module_preamble_code_size;
if (code_size == 0)
{
return(TXM_MODULE_INVALID);
}if (code_size == 0) { ... }
/* ... */
status = _txm_module_manager_util_code_allocation_size_and_alignment_get(module_preamble, &code_alignment, &code_allocation_size_ignored);
if (status != TX_SUCCESS)
{
return(status);
}if (status != TX_SUCCESS) { ... }
TXM_MODULE_MANAGER_CHECK_CODE_ALIGNMENT(module_location, code_alignment)
status = _txm_module_manager_internal_load(module_instance, module_name, module_location,
code_size, TX_NULL, 0);
return(status);
}{ ... }