1
10
13
14
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
96
97
98
104
105
106
112
113
114
120
121
122
128
129
130
131
132
133
134
135
136
137
138
...
...
...
#define NX_SOURCE_CODE
#include "nx_api.h"
#include "nx_packet.h"
...
...
UINT _nx_packet_pool_info_get(NX_PACKET_POOL *pool_ptr, ULONG *total_packets, ULONG *free_packets,
ULONG *empty_pool_requests, ULONG *empty_pool_suspensions,
ULONG *invalid_packet_releases)
{
TX_INTERRUPT_SAVE_AREA
TX_DISABLE
if (total_packets)
{
*total_packets = pool_ptr -> nx_packet_pool_total;
}if (total_packets) { ... }
if (free_packets)
{
*free_packets = pool_ptr -> nx_packet_pool_available;
}if (free_packets) { ... }
if (empty_pool_requests)
{
*empty_pool_requests = pool_ptr -> nx_packet_pool_empty_requests;
}if (empty_pool_requests) { ... }
if (empty_pool_suspensions)
{
*empty_pool_suspensions = pool_ptr -> nx_packet_pool_empty_suspensions;
}if (empty_pool_suspensions) { ... }
if (invalid_packet_releases)
{
*invalid_packet_releases = pool_ptr -> nx_packet_pool_invalid_releases;
}if (invalid_packet_releases) { ... }
TX_RESTORE
NX_TRACE_IN_LINE_INSERT(NX_TRACE_PACKET_POOL_INFO_GET, pool_ptr, pool_ptr -> nx_packet_pool_total, pool_ptr -> nx_packet_pool_available, pool_ptr -> nx_packet_pool_empty_requests, NX_TRACE_PACKET_EVENTS, 0, 0);
return(NX_SUCCESS);
}{ ... }