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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/NLSPEC_VERSION +1 -1
  4. data/generated/nl/linux/binder.rb +103 -187
  5. data/generated/nl/linux/conntrack.rb +1053 -1649
  6. data/generated/nl/linux/dev_energymodel.rb +303 -265
  7. data/generated/nl/linux/devlink.rb +4904 -5576
  8. data/generated/nl/linux/dpll.rb +1097 -1467
  9. data/generated/nl/linux/drm_ras.rb +235 -195
  10. data/generated/nl/linux/ethtool.rb +6652 -7415
  11. data/generated/nl/linux/fou.rb +234 -255
  12. data/generated/nl/linux/handshake.rb +208 -280
  13. data/generated/nl/linux/lockd.rb +99 -73
  14. data/generated/nl/linux/mptcp_pm.rb +589 -687
  15. data/generated/nl/linux/net_shaper.rb +520 -615
  16. data/generated/nl/linux/netdev.rb +1640 -1987
  17. data/generated/nl/linux/nfsd.rb +1341 -1215
  18. data/generated/nl/linux/nftables.rb +5143 -4870
  19. data/generated/nl/linux/nl80211.rb +2542 -6316
  20. data/generated/nl/linux/nlctrl.rb +338 -483
  21. data/generated/nl/linux/ovpn.rb +1006 -1522
  22. data/generated/nl/linux/ovs_datapath.rb +291 -186
  23. data/generated/nl/linux/ovs_flow.rb +1393 -2065
  24. data/generated/nl/linux/ovs_packet.rb +186 -223
  25. data/generated/nl/linux/ovs_vport.rb +328 -285
  26. data/generated/nl/linux/psp.rb +812 -717
  27. data/generated/nl/linux/rt_addr.rb +513 -243
  28. data/generated/nl/linux/rt_link.rb +4504 -7238
  29. data/generated/nl/linux/rt_neigh.rb +935 -847
  30. data/generated/nl/linux/rt_route.rb +1198 -871
  31. data/generated/nl/linux/rt_rule.rb +680 -659
  32. data/generated/nl/linux/sunrpc_cache.rb +323 -321
  33. data/generated/nl/linux/tc.rb +9058 -10454
  34. data/generated/nl/linux/tcp_metrics.rb +258 -367
  35. data/generated/nl/linux/team.rb +327 -345
  36. data/generated/nl/linux/wireguard.rb +270 -434
  37. data/lib/nl/linux/nlctrl_resolver.rb +1 -1
  38. data/lib/nl/linux/version.rb +1 -1
  39. data/linux/conntrack.yaml +18 -3
  40. data/linux/devlink.yaml +26 -4
  41. data/linux/dpll.yaml +19 -0
  42. data/linux/netdev.yaml +21 -0
  43. data/linux/nfsd.yaml +111 -0
  44. data/linux/nl80211.yaml +2 -2
  45. data/linux/rt-addr.yaml +4 -0
  46. data/linux/rt-link.yaml +7 -0
  47. data/linux/rt-neigh.yaml +3 -0
  48. data/linux/rt-route.yaml +83 -2
  49. data/sig/generated/nl/linux/binder.rbs +77 -220
  50. data/sig/generated/nl/linux/conntrack.rbs +770 -1954
  51. data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
  52. data/sig/generated/nl/linux/devlink.rbs +3318 -6068
  53. data/sig/generated/nl/linux/dpll.rbs +791 -1589
  54. data/sig/generated/nl/linux/drm_ras.rbs +160 -208
  55. data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
  56. data/sig/generated/nl/linux/fou.rbs +139 -254
  57. data/sig/generated/nl/linux/handshake.rbs +144 -319
  58. data/sig/generated/nl/linux/lockd.rbs +64 -74
  59. data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
  60. data/sig/generated/nl/linux/net_shaper.rbs +351 -644
  61. data/sig/generated/nl/linux/netdev.rbs +1151 -2146
  62. data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
  63. data/sig/generated/nl/linux/nftables.rbs +2907 -5030
  64. data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
  65. data/sig/generated/nl/linux/nlctrl.rbs +220 -544
  66. data/sig/generated/nl/linux/ovpn.rbs +835 -1859
  67. data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
  68. data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
  69. data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
  70. data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
  71. data/sig/generated/nl/linux/psp.rbs +550 -741
  72. data/sig/generated/nl/linux/rt_addr.rbs +188 -226
  73. data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
  74. data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
  75. data/sig/generated/nl/linux/rt_route.rbs +632 -862
  76. data/sig/generated/nl/linux/rt_rule.rbs +217 -639
  77. data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
  78. data/sig/generated/nl/linux/tc.rbs +6199 -13391
  79. data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
  80. data/sig/generated/nl/linux/team.rbs +232 -391
  81. data/sig/generated/nl/linux/wireguard.rbs +197 -502
  82. metadata +6 -6
@@ -34,223 +34,77 @@ module Nl
34
34
  # correspond directly with the specific transaction that failed, along
35
35
  # with the error returned to the sender e.g. BR_DEAD_REPLY.
36
36
  class Report < ::Nl::AttributeSet
37
- # Abstract class
38
- class Attribute < ::Nl::AttributeSet::Attribute
37
+ module Definitions
38
+ # The enum binder_driver_return_protocol returned to the sender.
39
+ # @rbs return: ::Integer
40
+ # @return [Integer]
41
+ def error: () -> ::Integer
42
+
43
+ # The binder context where the transaction occurred.
44
+ # @rbs return: ::String
45
+ # @return [String]
46
+ def context: () -> ::String
47
+
48
+ # The PID of the sender process.
49
+ # @rbs return: ::Integer
50
+ # @return [Integer]
51
+ def from_pid: () -> ::Integer
52
+
53
+ # The TID of the sender thread.
54
+ # @rbs return: ::Integer
55
+ # @return [Integer]
56
+ def from_tid: () -> ::Integer
57
+
58
+ # The PID of the recipient process. This attribute may not be present
59
+ # if the target could not be determined.
60
+ # @rbs return: ::Integer
61
+ # @return [Integer]
62
+ def to_pid: () -> ::Integer
63
+
64
+ # The TID of the recipient thread. This attribute may not be present
65
+ # if the target could not be determined.
66
+ # @rbs return: ::Integer
67
+ # @return [Integer]
68
+ def to_tid: () -> ::Integer
69
+
70
+ # When present, indicates the failed transaction is a reply.
71
+ # @rbs return: ::Integer
72
+ # @return [Integer]
73
+ def is_reply: () -> ::Integer
74
+
75
+ # The bitmask of enum transaction_flags from the transaction.
76
+ # @rbs return: ::Integer
77
+ # @return [Integer]
78
+ def flags: () -> ::Integer
79
+
80
+ # The application-defined code from the transaction.
81
+ # @rbs return: ::Integer
82
+ # @return [Integer]
83
+ def code: () -> ::Integer
84
+
85
+ # The transaction payload size in bytes.
86
+ # @rbs return: ::Integer
87
+ # @return [Integer]
88
+ def data_size: () -> ::Integer
39
89
  end
40
90
 
41
- # The enum binder_driver_return_protocol returned to the sender.
42
- class Error < Attribute
43
- TYPE: ::Integer
44
-
45
- NAME: ::Symbol
46
-
47
- # @private
48
- ORDER: ::Integer
49
-
50
- # @private
51
- DATATYPE: untyped
52
- end
53
-
54
- # The binder context where the transaction occurred.
55
- class Context < Attribute
56
- TYPE: ::Integer
57
-
58
- NAME: ::Symbol
59
-
60
- # @private
61
- ORDER: ::Integer
62
-
63
- # @private
64
- DATATYPE: untyped
65
- end
66
-
67
- # The PID of the sender process.
68
- class FromPid < Attribute
69
- TYPE: ::Integer
70
-
71
- NAME: ::Symbol
91
+ include Definitions
72
92
 
73
- # @private
74
- ORDER: ::Integer
75
-
76
- # @private
77
- DATATYPE: untyped
78
- end
79
-
80
- # The TID of the sender thread.
81
- class FromTid < Attribute
82
- TYPE: ::Integer
83
-
84
- NAME: ::Symbol
85
-
86
- # @private
87
- ORDER: ::Integer
88
-
89
- # @private
90
- DATATYPE: untyped
91
- end
92
-
93
- # The PID of the recipient process. This attribute may not be present
94
- # if the target could not be determined.
95
- class ToPid < Attribute
96
- TYPE: ::Integer
97
-
98
- NAME: ::Symbol
99
-
100
- # @private
101
- ORDER: ::Integer
102
-
103
- # @private
104
- DATATYPE: untyped
105
- end
106
-
107
- # The TID of the recipient thread. This attribute may not be present
108
- # if the target could not be determined.
109
- class ToTid < Attribute
110
- TYPE: ::Integer
111
-
112
- NAME: ::Symbol
113
-
114
- # @private
115
- ORDER: ::Integer
116
-
117
- # @private
118
- DATATYPE: untyped
119
- end
120
-
121
- # When present, indicates the failed transaction is a reply.
122
- class IsReply < Attribute
123
- TYPE: ::Integer
124
-
125
- NAME: ::Symbol
126
-
127
- # @private
128
- ORDER: ::Integer
129
-
130
- # @private
131
- DATATYPE: untyped
132
- end
133
-
134
- # The bitmask of enum transaction_flags from the transaction.
135
- class Flags < Attribute
136
- TYPE: ::Integer
137
-
138
- NAME: ::Symbol
139
-
140
- # @private
141
- ORDER: ::Integer
142
-
143
- # @private
144
- DATATYPE: untyped
145
- end
146
-
147
- # The application-defined code from the transaction.
148
- class Code < Attribute
149
- TYPE: ::Integer
150
-
151
- NAME: ::Symbol
152
-
153
- # @private
154
- ORDER: ::Integer
155
-
156
- # @private
157
- DATATYPE: untyped
158
- end
159
-
160
- # The transaction payload size in bytes.
161
- class DataSize < Attribute
162
- TYPE: ::Integer
163
-
164
- NAME: ::Symbol
93
+ # Decodes attributes from the decoder into a new attribute set.
94
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
95
+ def self.decode: (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
96
+ end
97
+ end
165
98
 
99
+ module AttributeSets
100
+ class Report
101
+ module Definitions
166
102
  # @private
167
- ORDER: ::Integer
103
+ BY_TYPE: Array[::Nl::AttributeSet::Definition?]
168
104
 
169
105
  # @private
170
- DATATYPE: untyped
106
+ BY_NAME: Hash[::Symbol, ::Nl::AttributeSet::Definition]
171
107
  end
172
-
173
- # @private
174
- BY_NAME: Hash[::Symbol, Attribute]
175
-
176
- # @private
177
- BY_TYPE: Hash[::Integer, Attribute]
178
-
179
- # The enum binder_driver_return_protocol returned to the sender.
180
- # @rbs return: ::Integer
181
- # @return [Integer]
182
- # @see Error
183
- def error: () -> ::Integer
184
-
185
- # The binder context where the transaction occurred.
186
- # @rbs return: ::String
187
- # @return [String]
188
- # @see Context
189
- def context: () -> ::String
190
-
191
- # The PID of the sender process.
192
- # @rbs return: ::Integer
193
- # @return [Integer]
194
- # @see FromPid
195
- def from_pid: () -> ::Integer
196
-
197
- # The TID of the sender thread.
198
- # @rbs return: ::Integer
199
- # @return [Integer]
200
- # @see FromTid
201
- def from_tid: () -> ::Integer
202
-
203
- # The PID of the recipient process. This attribute may not be present
204
- # if the target could not be determined.
205
- # @rbs return: ::Integer
206
- # @return [Integer]
207
- # @see ToPid
208
- def to_pid: () -> ::Integer
209
-
210
- # The TID of the recipient thread. This attribute may not be present
211
- # if the target could not be determined.
212
- # @rbs return: ::Integer
213
- # @return [Integer]
214
- # @see ToTid
215
- def to_tid: () -> ::Integer
216
-
217
- # When present, indicates the failed transaction is a reply.
218
- # @rbs return: ::Integer
219
- # @return [Integer]
220
- # @see IsReply
221
- def is_reply: () -> ::Integer
222
-
223
- # The bitmask of enum transaction_flags from the transaction.
224
- # @rbs return: ::Integer
225
- # @return [Integer]
226
- # @see Flags
227
- def flags: () -> ::Integer
228
-
229
- # The application-defined code from the transaction.
230
- # @rbs return: ::Integer
231
- # @return [Integer]
232
- # @see Code
233
- def code: () -> ::Integer
234
-
235
- # The transaction payload size in bytes.
236
- # @rbs return: ::Integer
237
- # @return [Integer]
238
- # @see DataSize
239
- def data_size: () -> ::Integer
240
-
241
- # Looks up Attribute class by name.
242
- # @rbs name: Symbol
243
- # @rbs return: Attribute
244
- # @param [Symbol] name
245
- # @return [Attribute]
246
- def self.by_name: (Symbol name) -> Attribute
247
-
248
- # Looks up Attribute class by type value.
249
- # @rbs type: Integer
250
- # @rbs return: Attribute
251
- # @param [Integer] type
252
- # @return [Attribute]
253
- def self.by_type: (Integer type) -> Attribute
254
108
  end
255
109
  end
256
110
 
@@ -265,7 +119,7 @@ module Nl
265
119
  #
266
120
  #
267
121
  # Multicast group: `report`.
268
- class Report < ::Nl::Genl::Message
122
+ class Report < ::Nl::Message
269
123
  TYPE: ::Integer
270
124
 
271
125
  FIXED_HEADER: untyped
@@ -274,66 +128,69 @@ module Nl
274
128
 
275
129
  ATTRIBUTES: untyped
276
130
 
131
+ include ATTRIBUTE_SET::Definitions
132
+
133
+ def initialize: (?untyped attributes) -> untyped
134
+
135
+ # @private
136
+ def self.build_instance: (untyped params, ?external_selectors: untyped) -> untyped
137
+
138
+ # Decodes a message payload from the decoder into a new instance.
139
+ # @rbs (::Nl::Decoder decoder) -> instance
140
+ def self.decode: (::Nl::Decoder decoder) -> instance
141
+
142
+ def encode: (untyped encoder, ?external_selectors: untyped) -> untyped
143
+
277
144
  # The enum binder_driver_return_protocol returned to the sender.
278
145
  # @rbs return: ::Integer
279
146
  # @return [Integer]
280
- # @see AttributeSets::Report::Error
281
147
  def error: () -> ::Integer
282
148
 
283
149
  # The binder context where the transaction occurred.
284
150
  # @rbs return: ::String
285
151
  # @return [String]
286
- # @see AttributeSets::Report::Context
287
152
  def context: () -> ::String
288
153
 
289
154
  # The PID of the sender process.
290
155
  # @rbs return: ::Integer
291
156
  # @return [Integer]
292
- # @see AttributeSets::Report::FromPid
293
157
  def from_pid: () -> ::Integer
294
158
 
295
159
  # The TID of the sender thread.
296
160
  # @rbs return: ::Integer
297
161
  # @return [Integer]
298
- # @see AttributeSets::Report::FromTid
299
162
  def from_tid: () -> ::Integer
300
163
 
301
164
  # The PID of the recipient process. This attribute may not be present
302
165
  # if the target could not be determined.
303
166
  # @rbs return: ::Integer
304
167
  # @return [Integer]
305
- # @see AttributeSets::Report::ToPid
306
168
  def to_pid: () -> ::Integer
307
169
 
308
170
  # The TID of the recipient thread. This attribute may not be present
309
171
  # if the target could not be determined.
310
172
  # @rbs return: ::Integer
311
173
  # @return [Integer]
312
- # @see AttributeSets::Report::ToTid
313
174
  def to_tid: () -> ::Integer
314
175
 
315
176
  # When present, indicates the failed transaction is a reply.
316
177
  # @rbs return: ::Integer
317
178
  # @return [Integer]
318
- # @see AttributeSets::Report::IsReply
319
179
  def is_reply: () -> ::Integer
320
180
 
321
181
  # The bitmask of enum transaction_flags from the transaction.
322
182
  # @rbs return: ::Integer
323
183
  # @return [Integer]
324
- # @see AttributeSets::Report::Flags
325
184
  def flags: () -> ::Integer
326
185
 
327
186
  # The application-defined code from the transaction.
328
187
  # @rbs return: ::Integer
329
188
  # @return [Integer]
330
- # @see AttributeSets::Report::Code
331
189
  def code: () -> ::Integer
332
190
 
333
191
  # The transaction payload size in bytes.
334
192
  # @rbs return: ::Integer
335
193
  # @return [Integer]
336
- # @see AttributeSets::Report::DataSize
337
194
  def data_size: () -> ::Integer
338
195
  end
339
196
  end