nl-linux 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/NLSPEC_VERSION +1 -1
- data/generated/nl/linux/binder.rb +103 -187
- data/generated/nl/linux/conntrack.rb +1053 -1649
- data/generated/nl/linux/dev_energymodel.rb +303 -265
- data/generated/nl/linux/devlink.rb +4904 -5576
- data/generated/nl/linux/dpll.rb +1097 -1467
- data/generated/nl/linux/drm_ras.rb +235 -195
- data/generated/nl/linux/ethtool.rb +6652 -7415
- data/generated/nl/linux/fou.rb +234 -255
- data/generated/nl/linux/handshake.rb +208 -280
- data/generated/nl/linux/lockd.rb +99 -73
- data/generated/nl/linux/mptcp_pm.rb +589 -687
- data/generated/nl/linux/net_shaper.rb +520 -615
- data/generated/nl/linux/netdev.rb +1640 -1987
- data/generated/nl/linux/nfsd.rb +1341 -1215
- data/generated/nl/linux/nftables.rb +5143 -4870
- data/generated/nl/linux/nl80211.rb +2542 -6316
- data/generated/nl/linux/nlctrl.rb +338 -483
- data/generated/nl/linux/ovpn.rb +1006 -1522
- data/generated/nl/linux/ovs_datapath.rb +291 -186
- data/generated/nl/linux/ovs_flow.rb +1393 -2065
- data/generated/nl/linux/ovs_packet.rb +186 -223
- data/generated/nl/linux/ovs_vport.rb +328 -285
- data/generated/nl/linux/psp.rb +812 -717
- data/generated/nl/linux/rt_addr.rb +513 -243
- data/generated/nl/linux/rt_link.rb +4504 -7238
- data/generated/nl/linux/rt_neigh.rb +935 -847
- data/generated/nl/linux/rt_route.rb +1198 -871
- data/generated/nl/linux/rt_rule.rb +680 -659
- data/generated/nl/linux/sunrpc_cache.rb +323 -321
- data/generated/nl/linux/tc.rb +9058 -10454
- data/generated/nl/linux/tcp_metrics.rb +258 -367
- data/generated/nl/linux/team.rb +327 -345
- data/generated/nl/linux/wireguard.rb +270 -434
- data/lib/nl/linux/nlctrl_resolver.rb +1 -1
- data/lib/nl/linux/version.rb +1 -1
- data/linux/conntrack.yaml +18 -3
- data/linux/devlink.yaml +26 -4
- data/linux/dpll.yaml +19 -0
- data/linux/netdev.yaml +21 -0
- data/linux/nfsd.yaml +111 -0
- data/linux/nl80211.yaml +2 -2
- data/linux/rt-addr.yaml +4 -0
- data/linux/rt-link.yaml +7 -0
- data/linux/rt-neigh.yaml +3 -0
- data/linux/rt-route.yaml +83 -2
- data/sig/generated/nl/linux/binder.rbs +77 -220
- data/sig/generated/nl/linux/conntrack.rbs +770 -1954
- data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
- data/sig/generated/nl/linux/devlink.rbs +3318 -6068
- data/sig/generated/nl/linux/dpll.rbs +791 -1589
- data/sig/generated/nl/linux/drm_ras.rbs +160 -208
- data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
- data/sig/generated/nl/linux/fou.rbs +139 -254
- data/sig/generated/nl/linux/handshake.rbs +144 -319
- data/sig/generated/nl/linux/lockd.rbs +64 -74
- data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
- data/sig/generated/nl/linux/net_shaper.rbs +351 -644
- data/sig/generated/nl/linux/netdev.rbs +1151 -2146
- data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
- data/sig/generated/nl/linux/nftables.rbs +2907 -5030
- data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
- data/sig/generated/nl/linux/nlctrl.rbs +220 -544
- data/sig/generated/nl/linux/ovpn.rbs +835 -1859
- data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
- data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
- data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
- data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
- data/sig/generated/nl/linux/psp.rbs +550 -741
- data/sig/generated/nl/linux/rt_addr.rbs +188 -226
- data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
- data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
- data/sig/generated/nl/linux/rt_route.rbs +632 -862
- data/sig/generated/nl/linux/rt_rule.rbs +217 -639
- data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
- data/sig/generated/nl/linux/tc.rbs +6199 -13391
- data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
- data/sig/generated/nl/linux/team.rbs +232 -391
- data/sig/generated/nl/linux/wireguard.rbs +197 -502
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c5ce470d2df05576eea3c7c261f7f00f4faef2f0ccd71c153d45421392d8ab9
|
|
4
|
+
data.tar.gz: 3667f44d4d332a094eef2a3a886e7c5db0890952ba1f9263999df910c3088e03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12212bc6b0b9d59ae52d5c9a552a6ef36be5fcb917599b5e9321c21b0eab7a13d304210af0c6d4845e3010e4efacade85c4ab7da703c6100ca15e40f6d660b73
|
|
7
|
+
data.tar.gz: 44562ed04c39c604cbab2212e24c9fa8110f017e26785eb9a5e3798e98f098e3bf04685c5e99d4bf03ccd747420b4624c47dd39c217b82d54a7203dd7d50f8d8
|
data/CHANGELOG.md
CHANGED
data/NLSPEC_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
2
|
#
|
|
3
|
-
# This file is based on Documentation/netlink/specs/binder.yaml from Linux v7.
|
|
3
|
+
# This file is based on Documentation/netlink/specs/binder.yaml from Linux v7.3.
|
|
4
4
|
#
|
|
5
5
|
# Original YNL comment:
|
|
6
6
|
#
|
|
@@ -32,7 +32,7 @@ class Binder < ::Nl::Genl::Family
|
|
|
32
32
|
super
|
|
33
33
|
end
|
|
34
34
|
# @private
|
|
35
|
-
MCAST_GROUPS =
|
|
35
|
+
MCAST_GROUPS = {:"report" => ::Nl::McastGroup.new("report", nil)}.freeze #: Hash[::Symbol, ::Nl::McastGroup]
|
|
36
36
|
module Structs
|
|
37
37
|
end
|
|
38
38
|
module AttributeSets
|
|
@@ -40,170 +40,77 @@ class Binder < ::Nl::Genl::Family
|
|
|
40
40
|
# correspond directly with the specific transaction that failed, along
|
|
41
41
|
# with the error returned to the sender e.g. BR_DEAD_REPLY.
|
|
42
42
|
class Report < ::Nl::AttributeSet
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
module Definitions
|
|
44
|
+
# The enum binder_driver_return_protocol returned to the sender.
|
|
45
|
+
# @rbs return: ::Integer
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
def error; self[:"error"]; end
|
|
48
|
+
# The binder context where the transaction occurred.
|
|
49
|
+
# @rbs return: ::String
|
|
50
|
+
# @return [String]
|
|
51
|
+
def context; self[:"context"]; end
|
|
52
|
+
# The PID of the sender process.
|
|
53
|
+
# @rbs return: ::Integer
|
|
54
|
+
# @return [Integer]
|
|
55
|
+
def from_pid; self[:"from_pid"]; end
|
|
56
|
+
# The TID of the sender thread.
|
|
57
|
+
# @rbs return: ::Integer
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
def from_tid; self[:"from_tid"]; end
|
|
60
|
+
# The PID of the recipient process. This attribute may not be present
|
|
61
|
+
# if the target could not be determined.
|
|
62
|
+
# @rbs return: ::Integer
|
|
63
|
+
# @return [Integer]
|
|
64
|
+
def to_pid; self[:"to_pid"]; end
|
|
65
|
+
# The TID of the recipient thread. This attribute may not be present
|
|
66
|
+
# if the target could not be determined.
|
|
67
|
+
# @rbs return: ::Integer
|
|
68
|
+
# @return [Integer]
|
|
69
|
+
def to_tid; self[:"to_tid"]; end
|
|
70
|
+
# When present, indicates the failed transaction is a reply.
|
|
71
|
+
# @rbs return: ::Integer
|
|
72
|
+
# @return [Integer]
|
|
73
|
+
def is_reply; self[:"is_reply"]; end
|
|
74
|
+
# The bitmask of enum transaction_flags from the transaction.
|
|
75
|
+
# @rbs return: ::Integer
|
|
76
|
+
# @return [Integer]
|
|
77
|
+
def flags; self[:"flags"]; end
|
|
78
|
+
# The application-defined code from the transaction.
|
|
79
|
+
# @rbs return: ::Integer
|
|
80
|
+
# @return [Integer]
|
|
81
|
+
def code; self[:"code"]; end
|
|
82
|
+
# The transaction payload size in bytes.
|
|
83
|
+
# @rbs return: ::Integer
|
|
84
|
+
# @return [Integer]
|
|
85
|
+
def data_size; self[:"data_size"]; end
|
|
45
86
|
end
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ORDER = 0
|
|
52
|
-
# @private
|
|
53
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
54
|
-
end
|
|
55
|
-
# The binder context where the transaction occurred.
|
|
56
|
-
class Context < Attribute
|
|
57
|
-
TYPE = 2
|
|
58
|
-
NAME = :"context"
|
|
59
|
-
# @private
|
|
60
|
-
ORDER = 1
|
|
61
|
-
# @private
|
|
62
|
-
DATATYPE = ::Nl::DataTypes::String.new(check: nil)
|
|
63
|
-
end
|
|
64
|
-
# The PID of the sender process.
|
|
65
|
-
class FromPid < Attribute
|
|
66
|
-
TYPE = 3
|
|
67
|
-
NAME = :"from_pid"
|
|
68
|
-
# @private
|
|
69
|
-
ORDER = 2
|
|
70
|
-
# @private
|
|
71
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
72
|
-
end
|
|
73
|
-
# The TID of the sender thread.
|
|
74
|
-
class FromTid < Attribute
|
|
75
|
-
TYPE = 4
|
|
76
|
-
NAME = :"from_tid"
|
|
77
|
-
# @private
|
|
78
|
-
ORDER = 3
|
|
79
|
-
# @private
|
|
80
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
81
|
-
end
|
|
82
|
-
# The PID of the recipient process. This attribute may not be present
|
|
83
|
-
# if the target could not be determined.
|
|
84
|
-
class ToPid < Attribute
|
|
85
|
-
TYPE = 5
|
|
86
|
-
NAME = :"to_pid"
|
|
87
|
-
# @private
|
|
88
|
-
ORDER = 4
|
|
89
|
-
# @private
|
|
90
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
91
|
-
end
|
|
92
|
-
# The TID of the recipient thread. This attribute may not be present
|
|
93
|
-
# if the target could not be determined.
|
|
94
|
-
class ToTid < Attribute
|
|
95
|
-
TYPE = 6
|
|
96
|
-
NAME = :"to_tid"
|
|
97
|
-
# @private
|
|
98
|
-
ORDER = 5
|
|
99
|
-
# @private
|
|
100
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
87
|
+
include Definitions
|
|
88
|
+
# Decodes attributes from the decoder into a new attribute set.
|
|
89
|
+
# @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
|
|
90
|
+
def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
91
|
+
super(decoder, BY_TYPE, 0, external_selectors)
|
|
101
92
|
end
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
NAME = :"code"
|
|
124
|
-
# @private
|
|
125
|
-
ORDER = 8
|
|
126
|
-
# @private
|
|
127
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
128
|
-
end
|
|
129
|
-
# The transaction payload size in bytes.
|
|
130
|
-
class DataSize < Attribute
|
|
131
|
-
TYPE = 10
|
|
132
|
-
NAME = :"data_size"
|
|
133
|
-
# @private
|
|
134
|
-
ORDER = 9
|
|
135
|
-
# @private
|
|
136
|
-
DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
|
|
137
|
-
end
|
|
138
|
-
# @private
|
|
139
|
-
BY_NAME = Ractor.make_shareable({:"error" => Error, :"context" => Context, :"from_pid" => FromPid, :"from_tid" => FromTid, :"to_pid" => ToPid, :"to_tid" => ToTid, :"is_reply" => IsReply, :"flags" => Flags, :"code" => Code, :"data_size" => DataSize}) #: Hash[::Symbol, Attribute]
|
|
140
|
-
# @private
|
|
141
|
-
BY_TYPE = Ractor.make_shareable({1 => Error, 2 => Context, 3 => FromPid, 4 => FromTid, 5 => ToPid, 6 => ToTid, 7 => IsReply, 8 => Flags, 9 => Code, 10 => DataSize}) #: Hash[::Integer, Attribute]
|
|
142
|
-
# The enum binder_driver_return_protocol returned to the sender.
|
|
143
|
-
# @rbs return: ::Integer
|
|
144
|
-
# @return [Integer]
|
|
145
|
-
# @see Error
|
|
146
|
-
def error; self[:"error"]&.value; end
|
|
147
|
-
# The binder context where the transaction occurred.
|
|
148
|
-
# @rbs return: ::String
|
|
149
|
-
# @return [String]
|
|
150
|
-
# @see Context
|
|
151
|
-
def context; self[:"context"]&.value; end
|
|
152
|
-
# The PID of the sender process.
|
|
153
|
-
# @rbs return: ::Integer
|
|
154
|
-
# @return [Integer]
|
|
155
|
-
# @see FromPid
|
|
156
|
-
def from_pid; self[:"from_pid"]&.value; end
|
|
157
|
-
# The TID of the sender thread.
|
|
158
|
-
# @rbs return: ::Integer
|
|
159
|
-
# @return [Integer]
|
|
160
|
-
# @see FromTid
|
|
161
|
-
def from_tid; self[:"from_tid"]&.value; end
|
|
162
|
-
# The PID of the recipient process. This attribute may not be present
|
|
163
|
-
# if the target could not be determined.
|
|
164
|
-
# @rbs return: ::Integer
|
|
165
|
-
# @return [Integer]
|
|
166
|
-
# @see ToPid
|
|
167
|
-
def to_pid; self[:"to_pid"]&.value; end
|
|
168
|
-
# The TID of the recipient thread. This attribute may not be present
|
|
169
|
-
# if the target could not be determined.
|
|
170
|
-
# @rbs return: ::Integer
|
|
171
|
-
# @return [Integer]
|
|
172
|
-
# @see ToTid
|
|
173
|
-
def to_tid; self[:"to_tid"]&.value; end
|
|
174
|
-
# When present, indicates the failed transaction is a reply.
|
|
175
|
-
# @rbs return: ::Integer
|
|
176
|
-
# @return [Integer]
|
|
177
|
-
# @see IsReply
|
|
178
|
-
def is_reply; self[:"is_reply"]&.value; end
|
|
179
|
-
# The bitmask of enum transaction_flags from the transaction.
|
|
180
|
-
# @rbs return: ::Integer
|
|
181
|
-
# @return [Integer]
|
|
182
|
-
# @see Flags
|
|
183
|
-
def flags; self[:"flags"]&.value; end
|
|
184
|
-
# The application-defined code from the transaction.
|
|
185
|
-
# @rbs return: ::Integer
|
|
186
|
-
# @return [Integer]
|
|
187
|
-
# @see Code
|
|
188
|
-
def code; self[:"code"]&.value; end
|
|
189
|
-
# The transaction payload size in bytes.
|
|
190
|
-
# @rbs return: ::Integer
|
|
191
|
-
# @return [Integer]
|
|
192
|
-
# @see DataSize
|
|
193
|
-
def data_size; self[:"data_size"]&.value; end
|
|
194
|
-
class << self
|
|
195
|
-
# Looks up Attribute class by name.
|
|
196
|
-
# @rbs name: Symbol
|
|
197
|
-
# @rbs return: Attribute
|
|
198
|
-
# @param [Symbol] name
|
|
199
|
-
# @return [Attribute]
|
|
200
|
-
def by_name(name); BY_NAME.fetch(name); end
|
|
201
|
-
# Looks up Attribute class by type value.
|
|
202
|
-
# @rbs type: Integer
|
|
203
|
-
# @rbs return: Attribute
|
|
204
|
-
# @param [Integer] type
|
|
205
|
-
# @return [Attribute]
|
|
206
|
-
def by_type(type); BY_TYPE.fetch(type); end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
module AttributeSets
|
|
96
|
+
class Report
|
|
97
|
+
module Definitions
|
|
98
|
+
# @private
|
|
99
|
+
BY_TYPE = ::Array.new(11).tap do |definitions|
|
|
100
|
+
definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"error", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
|
|
101
|
+
definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"context", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
|
|
102
|
+
definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"from_pid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 2, selector_slot: nil)
|
|
103
|
+
definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"from_tid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 3, selector_slot: nil)
|
|
104
|
+
definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"to_pid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
|
|
105
|
+
definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"to_tid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 5, selector_slot: nil)
|
|
106
|
+
definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"is_reply", datatype: ::Nl::DataTypes::Flag.new, multi: false, order: 6, selector_slot: nil)
|
|
107
|
+
definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 7, selector_slot: nil)
|
|
108
|
+
definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"code", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 8, selector_slot: nil)
|
|
109
|
+
definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"data_size", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 9, selector_slot: nil)
|
|
110
|
+
end.freeze #: Array[::Nl::AttributeSet::Definition?]
|
|
111
|
+
Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
|
|
112
|
+
# @private
|
|
113
|
+
BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
|
|
207
114
|
end
|
|
208
115
|
end
|
|
209
116
|
end
|
|
@@ -217,67 +124,76 @@ class Binder < ::Nl::Genl::Family
|
|
|
217
124
|
#
|
|
218
125
|
#
|
|
219
126
|
# Multicast group: `report`.
|
|
220
|
-
class Report < ::Nl::
|
|
127
|
+
class Report < ::Nl::Message
|
|
221
128
|
TYPE = 1
|
|
222
129
|
FIXED_HEADER = nil
|
|
223
130
|
ATTRIBUTE_SET = AttributeSets::Report
|
|
224
|
-
ATTRIBUTES =
|
|
131
|
+
ATTRIBUTES = %i[error context from_pid from_tid to_pid to_tid is_reply flags code data_size].freeze
|
|
132
|
+
include ATTRIBUTE_SET::Definitions
|
|
133
|
+
def initialize(attributes = [])
|
|
134
|
+
@attributes = attributes
|
|
135
|
+
end
|
|
136
|
+
# @private
|
|
137
|
+
def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
138
|
+
validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
|
|
139
|
+
new(
|
|
140
|
+
build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
# Decodes a message payload from the decoder into a new instance.
|
|
144
|
+
# @rbs (::Nl::Decoder decoder) -> instance
|
|
145
|
+
def self.decode(decoder)
|
|
146
|
+
new(decode_attributes(decoder, BY_TYPE, 0))
|
|
147
|
+
end
|
|
148
|
+
def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
|
|
149
|
+
encode_attributes(encoder, external_selectors:)
|
|
150
|
+
end
|
|
225
151
|
# The enum binder_driver_return_protocol returned to the sender.
|
|
226
152
|
# @rbs return: ::Integer
|
|
227
153
|
# @return [Integer]
|
|
228
|
-
|
|
229
|
-
def error; attributes[:"error"]&.value; end
|
|
154
|
+
def error; self[:"error"]; end
|
|
230
155
|
# The binder context where the transaction occurred.
|
|
231
156
|
# @rbs return: ::String
|
|
232
157
|
# @return [String]
|
|
233
|
-
|
|
234
|
-
def context; attributes[:"context"]&.value; end
|
|
158
|
+
def context; self[:"context"]; end
|
|
235
159
|
# The PID of the sender process.
|
|
236
160
|
# @rbs return: ::Integer
|
|
237
161
|
# @return [Integer]
|
|
238
|
-
|
|
239
|
-
def from_pid; attributes[:"from_pid"]&.value; end
|
|
162
|
+
def from_pid; self[:"from_pid"]; end
|
|
240
163
|
# The TID of the sender thread.
|
|
241
164
|
# @rbs return: ::Integer
|
|
242
165
|
# @return [Integer]
|
|
243
|
-
|
|
244
|
-
def from_tid; attributes[:"from_tid"]&.value; end
|
|
166
|
+
def from_tid; self[:"from_tid"]; end
|
|
245
167
|
# The PID of the recipient process. This attribute may not be present
|
|
246
168
|
# if the target could not be determined.
|
|
247
169
|
# @rbs return: ::Integer
|
|
248
170
|
# @return [Integer]
|
|
249
|
-
|
|
250
|
-
def to_pid; attributes[:"to_pid"]&.value; end
|
|
171
|
+
def to_pid; self[:"to_pid"]; end
|
|
251
172
|
# The TID of the recipient thread. This attribute may not be present
|
|
252
173
|
# if the target could not be determined.
|
|
253
174
|
# @rbs return: ::Integer
|
|
254
175
|
# @return [Integer]
|
|
255
|
-
|
|
256
|
-
def to_tid; attributes[:"to_tid"]&.value; end
|
|
176
|
+
def to_tid; self[:"to_tid"]; end
|
|
257
177
|
# When present, indicates the failed transaction is a reply.
|
|
258
178
|
# @rbs return: ::Integer
|
|
259
179
|
# @return [Integer]
|
|
260
|
-
|
|
261
|
-
def is_reply; attributes[:"is_reply"]&.value; end
|
|
180
|
+
def is_reply; self[:"is_reply"]; end
|
|
262
181
|
# The bitmask of enum transaction_flags from the transaction.
|
|
263
182
|
# @rbs return: ::Integer
|
|
264
183
|
# @return [Integer]
|
|
265
|
-
|
|
266
|
-
def flags; attributes[:"flags"]&.value; end
|
|
184
|
+
def flags; self[:"flags"]; end
|
|
267
185
|
# The application-defined code from the transaction.
|
|
268
186
|
# @rbs return: ::Integer
|
|
269
187
|
# @return [Integer]
|
|
270
|
-
|
|
271
|
-
def code; attributes[:"code"]&.value; end
|
|
188
|
+
def code; self[:"code"]; end
|
|
272
189
|
# The transaction payload size in bytes.
|
|
273
190
|
# @rbs return: ::Integer
|
|
274
191
|
# @return [Integer]
|
|
275
|
-
|
|
276
|
-
def data_size; attributes[:"data_size"]&.value; end
|
|
192
|
+
def data_size; self[:"data_size"]; end
|
|
277
193
|
end
|
|
278
194
|
end
|
|
279
195
|
# @private
|
|
280
|
-
NOTIFICATIONS =
|
|
196
|
+
NOTIFICATIONS = {1 => Notifications::Report}.freeze #: Hash[::Integer, ::Class]
|
|
281
197
|
class AsyncOperations
|
|
282
198
|
# @private
|
|
283
199
|
def initialize(&exchange)
|