nl-linux 0.3.0 → 0.4.1

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +5 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Rakefile +14 -2
  5. data/generated/nl/linux/binder.rb +172 -44
  6. data/generated/nl/linux/conntrack.rb +1293 -370
  7. data/generated/nl/linux/dev_energymodel.rb +278 -93
  8. data/generated/nl/linux/devlink.rb +5654 -1954
  9. data/generated/nl/linux/dpll.rb +1838 -669
  10. data/generated/nl/linux/drm_ras.rb +234 -72
  11. data/generated/nl/linux/ethtool.rb +6683 -2885
  12. data/generated/nl/linux/fou.rb +308 -129
  13. data/generated/nl/linux/handshake.rb +277 -99
  14. data/generated/nl/linux/lockd.rb +88 -33
  15. data/generated/nl/linux/mptcp_pm.rb +639 -186
  16. data/generated/nl/linux/net_shaper.rb +782 -224
  17. data/generated/nl/linux/netdev.rb +2105 -631
  18. data/generated/nl/linux/nfsd.rb +1030 -358
  19. data/generated/nl/linux/nftables.rb +5041 -1612
  20. data/generated/nl/linux/nl80211.rb +4531 -871
  21. data/generated/nl/linux/nlctrl.rb +411 -119
  22. data/generated/nl/linux/ovpn.rb +1211 -293
  23. data/generated/nl/linux/ovs_datapath.rb +271 -106
  24. data/generated/nl/linux/ovs_flow.rb +1819 -354
  25. data/generated/nl/linux/ovs_packet.rb +257 -82
  26. data/generated/nl/linux/ovs_vport.rb +334 -132
  27. data/generated/nl/linux/psp.rb +916 -281
  28. data/generated/nl/linux/rt_addr.rb +369 -166
  29. data/generated/nl/linux/rt_link.rb +6708 -1450
  30. data/generated/nl/linux/rt_neigh.rb +919 -364
  31. data/generated/nl/linux/rt_route.rb +1034 -448
  32. data/generated/nl/linux/rt_rule.rb +775 -395
  33. data/generated/nl/linux/sunrpc_cache.rb +297 -102
  34. data/generated/nl/linux/tc.rb +9989 -1780
  35. data/generated/nl/linux/tcp_metrics.rb +327 -105
  36. data/generated/nl/linux/team.rb +279 -93
  37. data/generated/nl/linux/wireguard.rb +432 -95
  38. data/generated/nl/linux.rb +1 -0
  39. data/lib/nl/linux/nlctrl_resolver.rb +31 -0
  40. data/lib/nl/linux/version.rb +1 -1
  41. data/sig/generated/nl/linux/binder.rbs +366 -0
  42. data/sig/generated/nl/linux/conntrack.rbs +2787 -0
  43. data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
  44. data/sig/generated/nl/linux/devlink.rbs +12496 -0
  45. data/sig/generated/nl/linux/dpll.rbs +3461 -0
  46. data/sig/generated/nl/linux/drm_ras.rbs +553 -0
  47. data/sig/generated/nl/linux/ethtool.rbs +15291 -0
  48. data/sig/generated/nl/linux/fou.rbs +702 -0
  49. data/sig/generated/nl/linux/handshake.rbs +622 -0
  50. data/sig/generated/nl/linux/lockd.rbs +234 -0
  51. data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
  52. data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
  53. data/sig/generated/nl/linux/netdev.rbs +4187 -0
  54. data/sig/generated/nl/linux/nfsd.rbs +2520 -0
  55. data/sig/generated/nl/linux/nftables.rbs +10304 -0
  56. data/sig/generated/nl/linux/nl80211.rbs +9786 -0
  57. data/sig/generated/nl/linux/nlctrl.rbs +944 -0
  58. data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
  59. data/sig/generated/nl/linux/ovpn.rbs +2564 -0
  60. data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
  61. data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
  62. data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
  63. data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
  64. data/sig/generated/nl/linux/psp.rbs +1846 -0
  65. data/sig/generated/nl/linux/rt_addr.rbs +866 -0
  66. data/sig/generated/nl/linux/rt_link.rbs +13438 -0
  67. data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
  68. data/sig/generated/nl/linux/rt_route.rbs +2218 -0
  69. data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
  70. data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
  71. data/sig/generated/nl/linux/tc.rbs +19931 -0
  72. data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
  73. data/sig/generated/nl/linux/team.rbs +733 -0
  74. data/sig/generated/nl/linux/version.rbs +7 -0
  75. data/sig/generated/nl/linux/wireguard.rbs +1006 -0
  76. data/sig/generated/nl/linux.rbs +6 -0
  77. data/sig/generated/nl-linux.rbs +2 -0
  78. metadata +46 -7
@@ -0,0 +1,553 @@
1
+ # Generated from generated/nl/linux/drm_ras.rb with RBS::Inline
2
+
3
+ module Nl
4
+ module Linux
5
+ # DRM RAS (Reliability, Availability, Serviceability) over Generic Netlink. Provides a standardized mechanism for DRM drivers to register "nodes" representing hardware/software components capable of reporting error counters. Userspace tools can query the list of nodes or individual error counters via the Generic Netlink interface.
6
+ class DrmRas < ::Nl::Genl::Family
7
+ NAME: ::String
8
+
9
+ VERSION: ::Integer
10
+
11
+ # @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
12
+ # @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
13
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
14
+ # @param [#call] resolver
15
+ # @param [Symbol, nil] executor
16
+ # @param [Integer, nil] notification_capacity
17
+ # @return [DrmRas]
18
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
19
+ # @param [#call] resolver
20
+ # @param [Symbol, nil] executor
21
+ # @param [Integer, nil] notification_capacity
22
+ # @yieldparam [DrmRas] family
23
+ # @return [Object] the result of the block
24
+ def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
25
+
26
+ # @private
27
+ MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
28
+
29
+ module Enums
30
+ # Type of the node. Currently, only error-counter nodes are supported, which expose reliability counters for a hardware/software component.
31
+ module NodeType
32
+ ErrorCounter: ::Integer
33
+ end
34
+ end
35
+
36
+ module Structs
37
+ end
38
+
39
+ module AttributeSets
40
+ class NodeAttrs < ::Nl::AttributeSet
41
+ # Abstract class
42
+ class Attribute < ::Nl::AttributeSet::Attribute
43
+ end
44
+
45
+ # Unique identifier for the node. Assigned dynamically by the DRM RAS core upon registration.
46
+ class NodeId < Attribute
47
+ TYPE: ::Integer
48
+
49
+ NAME: ::Symbol
50
+
51
+ # @private
52
+ ORDER: ::Integer
53
+
54
+ # @private
55
+ DATATYPE: untyped
56
+ end
57
+
58
+ # Device name chosen by the driver at registration. Can be a PCI BDF, UUID, or module name if unique.
59
+ class DeviceName < Attribute
60
+ TYPE: ::Integer
61
+
62
+ NAME: ::Symbol
63
+
64
+ # @private
65
+ ORDER: ::Integer
66
+
67
+ # @private
68
+ DATATYPE: untyped
69
+ end
70
+
71
+ # Node name chosen by the driver at registration. Can be an IP block name, or any name that identifies the RAS node inside the device.
72
+ class NodeName < Attribute
73
+ TYPE: ::Integer
74
+
75
+ NAME: ::Symbol
76
+
77
+ # @private
78
+ ORDER: ::Integer
79
+
80
+ # @private
81
+ DATATYPE: untyped
82
+ end
83
+
84
+ # Type of this node, identifying its function.
85
+ #
86
+ # Known enum values are defined in {Enums::NodeType}.
87
+ class NodeType < Attribute
88
+ TYPE: ::Integer
89
+
90
+ NAME: ::Symbol
91
+
92
+ # @private
93
+ ORDER: ::Integer
94
+
95
+ # @private
96
+ DATATYPE: untyped
97
+ end
98
+
99
+ # @private
100
+ BY_NAME: Hash[::Symbol, Attribute]
101
+
102
+ # @private
103
+ BY_TYPE: Hash[::Integer, Attribute]
104
+
105
+ # Unique identifier for the node. Assigned dynamically by the DRM RAS core upon registration.
106
+ # @rbs return: ::Integer
107
+ # @return [Integer]
108
+ # @see NodeId
109
+ def node_id: () -> ::Integer
110
+
111
+ # Device name chosen by the driver at registration. Can be a PCI BDF, UUID, or module name if unique.
112
+ # @rbs return: ::String
113
+ # @return [String]
114
+ # @see DeviceName
115
+ def device_name: () -> ::String
116
+
117
+ # Node name chosen by the driver at registration. Can be an IP block name, or any name that identifies the RAS node inside the device.
118
+ # @rbs return: ::String
119
+ # @return [String]
120
+ # @see NodeName
121
+ def node_name: () -> ::String
122
+
123
+ # Type of this node, identifying its function.
124
+ #
125
+ # Known enum values are defined in {Enums::NodeType}.
126
+ # @rbs return: ::Integer
127
+ # @return [Integer]
128
+ # @see NodeType
129
+ def node_type: () -> ::Integer
130
+
131
+ # Looks up Attribute class by name.
132
+ # @rbs name: Symbol
133
+ # @rbs return: Attribute
134
+ # @param [Symbol] name
135
+ # @return [Attribute]
136
+ def self.by_name: (Symbol name) -> Attribute
137
+
138
+ # Looks up Attribute class by type value.
139
+ # @rbs type: Integer
140
+ # @rbs return: Attribute
141
+ # @param [Integer] type
142
+ # @return [Attribute]
143
+ def self.by_type: (Integer type) -> Attribute
144
+ end
145
+
146
+ class ErrorCounterAttrs < ::Nl::AttributeSet
147
+ # Abstract class
148
+ class Attribute < ::Nl::AttributeSet::Attribute
149
+ end
150
+
151
+ # Node ID targeted by this error counter operation.
152
+ class NodeId < Attribute
153
+ TYPE: ::Integer
154
+
155
+ NAME: ::Symbol
156
+
157
+ # @private
158
+ ORDER: ::Integer
159
+
160
+ # @private
161
+ DATATYPE: untyped
162
+ end
163
+
164
+ # Unique identifier for a specific error counter within an node.
165
+ class ErrorId < Attribute
166
+ TYPE: ::Integer
167
+
168
+ NAME: ::Symbol
169
+
170
+ # @private
171
+ ORDER: ::Integer
172
+
173
+ # @private
174
+ DATATYPE: untyped
175
+ end
176
+
177
+ # Name of the error.
178
+ class ErrorName < Attribute
179
+ TYPE: ::Integer
180
+
181
+ NAME: ::Symbol
182
+
183
+ # @private
184
+ ORDER: ::Integer
185
+
186
+ # @private
187
+ DATATYPE: untyped
188
+ end
189
+
190
+ # Current value of the requested error counter.
191
+ class ErrorValue < Attribute
192
+ TYPE: ::Integer
193
+
194
+ NAME: ::Symbol
195
+
196
+ # @private
197
+ ORDER: ::Integer
198
+
199
+ # @private
200
+ DATATYPE: untyped
201
+ end
202
+
203
+ # @private
204
+ BY_NAME: Hash[::Symbol, Attribute]
205
+
206
+ # @private
207
+ BY_TYPE: Hash[::Integer, Attribute]
208
+
209
+ # Node ID targeted by this error counter operation.
210
+ # @rbs return: ::Integer
211
+ # @return [Integer]
212
+ # @see NodeId
213
+ def node_id: () -> ::Integer
214
+
215
+ # Unique identifier for a specific error counter within an node.
216
+ # @rbs return: ::Integer
217
+ # @return [Integer]
218
+ # @see ErrorId
219
+ def error_id: () -> ::Integer
220
+
221
+ # Name of the error.
222
+ # @rbs return: ::String
223
+ # @return [String]
224
+ # @see ErrorName
225
+ def error_name: () -> ::String
226
+
227
+ # Current value of the requested error counter.
228
+ # @rbs return: ::Integer
229
+ # @return [Integer]
230
+ # @see ErrorValue
231
+ def error_value: () -> ::Integer
232
+
233
+ # Looks up Attribute class by name.
234
+ # @rbs name: Symbol
235
+ # @rbs return: Attribute
236
+ # @param [Symbol] name
237
+ # @return [Attribute]
238
+ def self.by_name: (Symbol name) -> Attribute
239
+
240
+ # Looks up Attribute class by type value.
241
+ # @rbs type: Integer
242
+ # @rbs return: Attribute
243
+ # @param [Integer] type
244
+ # @return [Attribute]
245
+ def self.by_type: (Integer type) -> Attribute
246
+ end
247
+ end
248
+
249
+ module Messages
250
+ # Retrieve the full list of currently registered DRM RAS nodes. Each node includes its dynamically assigned ID, name, and type. **Important:** User space must call this operation first to obtain the node IDs. These IDs are required for all subsequent operations on nodes, such as querying error counters.
251
+ #
252
+ # Requires CAP_NET_ADMIN in the initial user namespace.
253
+ class DumpListNodesRequest < ::Nl::Genl::Message
254
+ TYPE: ::Integer
255
+
256
+ FIXED_HEADER: untyped
257
+
258
+ ATTRIBUTE_SET: untyped
259
+
260
+ ATTRIBUTES: untyped
261
+ end
262
+
263
+ # Retrieve the full list of currently registered DRM RAS nodes. Each node includes its dynamically assigned ID, name, and type. **Important:** User space must call this operation first to obtain the node IDs. These IDs are required for all subsequent operations on nodes, such as querying error counters.
264
+ #
265
+ # Requires CAP_NET_ADMIN in the initial user namespace.
266
+ class DumpListNodesReply < ::Nl::Genl::Message
267
+ TYPE: ::Integer
268
+
269
+ FIXED_HEADER: untyped
270
+
271
+ ATTRIBUTE_SET: untyped
272
+
273
+ ATTRIBUTES: untyped
274
+
275
+ # Unique identifier for the node. Assigned dynamically by the DRM RAS core upon registration.
276
+ # @rbs return: ::Integer
277
+ # @return [Integer]
278
+ # @see AttributeSets::NodeAttrs::NodeId
279
+ def node_id: () -> ::Integer
280
+
281
+ # Device name chosen by the driver at registration. Can be a PCI BDF, UUID, or module name if unique.
282
+ # @rbs return: ::String
283
+ # @return [String]
284
+ # @see AttributeSets::NodeAttrs::DeviceName
285
+ def device_name: () -> ::String
286
+
287
+ # Node name chosen by the driver at registration. Can be an IP block name, or any name that identifies the RAS node inside the device.
288
+ # @rbs return: ::String
289
+ # @return [String]
290
+ # @see AttributeSets::NodeAttrs::NodeName
291
+ def node_name: () -> ::String
292
+
293
+ # Type of this node, identifying its function.
294
+ #
295
+ # Known enum values are defined in {Enums::NodeType}.
296
+ # @rbs return: ::Integer
297
+ # @return [Integer]
298
+ # @see AttributeSets::NodeAttrs::NodeType
299
+ def node_type: () -> ::Integer
300
+ end
301
+
302
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
303
+ #
304
+ # Requires CAP_NET_ADMIN in the initial user namespace.
305
+ class DoGetErrorCounterRequest < ::Nl::Genl::Message
306
+ TYPE: ::Integer
307
+
308
+ FIXED_HEADER: untyped
309
+
310
+ ATTRIBUTE_SET: untyped
311
+
312
+ ATTRIBUTES: untyped
313
+
314
+ # Node ID targeted by this error counter operation.
315
+ # @rbs return: ::Integer
316
+ # @return [Integer]
317
+ # @see AttributeSets::ErrorCounterAttrs::NodeId
318
+ def node_id: () -> ::Integer
319
+
320
+ # Unique identifier for a specific error counter within an node.
321
+ # @rbs return: ::Integer
322
+ # @return [Integer]
323
+ # @see AttributeSets::ErrorCounterAttrs::ErrorId
324
+ def error_id: () -> ::Integer
325
+ end
326
+
327
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
328
+ #
329
+ # Requires CAP_NET_ADMIN in the initial user namespace.
330
+ class DoGetErrorCounterReply < ::Nl::Genl::Message
331
+ TYPE: ::Integer
332
+
333
+ FIXED_HEADER: untyped
334
+
335
+ ATTRIBUTE_SET: untyped
336
+
337
+ ATTRIBUTES: untyped
338
+
339
+ # Unique identifier for a specific error counter within an node.
340
+ # @rbs return: ::Integer
341
+ # @return [Integer]
342
+ # @see AttributeSets::ErrorCounterAttrs::ErrorId
343
+ def error_id: () -> ::Integer
344
+
345
+ # Name of the error.
346
+ # @rbs return: ::String
347
+ # @return [String]
348
+ # @see AttributeSets::ErrorCounterAttrs::ErrorName
349
+ def error_name: () -> ::String
350
+
351
+ # Current value of the requested error counter.
352
+ # @rbs return: ::Integer
353
+ # @return [Integer]
354
+ # @see AttributeSets::ErrorCounterAttrs::ErrorValue
355
+ def error_value: () -> ::Integer
356
+ end
357
+
358
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
359
+ #
360
+ # Requires CAP_NET_ADMIN in the initial user namespace.
361
+ class DumpGetErrorCounterRequest < ::Nl::Genl::Message
362
+ TYPE: ::Integer
363
+
364
+ FIXED_HEADER: untyped
365
+
366
+ ATTRIBUTE_SET: untyped
367
+
368
+ ATTRIBUTES: untyped
369
+
370
+ # Node ID targeted by this error counter operation.
371
+ # @rbs return: ::Integer
372
+ # @return [Integer]
373
+ # @see AttributeSets::ErrorCounterAttrs::NodeId
374
+ def node_id: () -> ::Integer
375
+ end
376
+
377
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
378
+ #
379
+ # Requires CAP_NET_ADMIN in the initial user namespace.
380
+ class DumpGetErrorCounterReply < ::Nl::Genl::Message
381
+ TYPE: ::Integer
382
+
383
+ FIXED_HEADER: untyped
384
+
385
+ ATTRIBUTE_SET: untyped
386
+
387
+ ATTRIBUTES: untyped
388
+
389
+ # Unique identifier for a specific error counter within an node.
390
+ # @rbs return: ::Integer
391
+ # @return [Integer]
392
+ # @see AttributeSets::ErrorCounterAttrs::ErrorId
393
+ def error_id: () -> ::Integer
394
+
395
+ # Name of the error.
396
+ # @rbs return: ::String
397
+ # @return [String]
398
+ # @see AttributeSets::ErrorCounterAttrs::ErrorName
399
+ def error_name: () -> ::String
400
+
401
+ # Current value of the requested error counter.
402
+ # @rbs return: ::Integer
403
+ # @return [Integer]
404
+ # @see AttributeSets::ErrorCounterAttrs::ErrorValue
405
+ def error_value: () -> ::Integer
406
+ end
407
+
408
+ # Clear error counter for a given node. The request includes the error-id and node-id of the counter to be cleared.
409
+ #
410
+ # Requires CAP_NET_ADMIN in the initial user namespace.
411
+ class DoClearErrorCounterRequest < ::Nl::Genl::Message
412
+ TYPE: ::Integer
413
+
414
+ FIXED_HEADER: untyped
415
+
416
+ ATTRIBUTE_SET: untyped
417
+
418
+ ATTRIBUTES: untyped
419
+
420
+ # Node ID targeted by this error counter operation.
421
+ # @rbs return: ::Integer
422
+ # @return [Integer]
423
+ # @see AttributeSets::ErrorCounterAttrs::NodeId
424
+ def node_id: () -> ::Integer
425
+
426
+ # Unique identifier for a specific error counter within an node.
427
+ # @rbs return: ::Integer
428
+ # @return [Integer]
429
+ # @see AttributeSets::ErrorCounterAttrs::ErrorId
430
+ def error_id: () -> ::Integer
431
+ end
432
+ end
433
+
434
+ module Notifications
435
+ end
436
+
437
+ # @private
438
+ NOTIFICATIONS: Hash[::Integer, ::Class]
439
+
440
+ # Retrieve the full list of currently registered DRM RAS nodes. Each node includes its dynamically assigned ID, name, and type. **Important:** User space must call this operation first to obtain the node IDs. These IDs are required for all subsequent operations on nodes, such as querying error counters.
441
+ #
442
+ # Requires CAP_NET_ADMIN in the initial user namespace.
443
+ # @rbs () -> Array[Messages::DumpListNodesReply]
444
+ # | () { (Messages::DumpListNodesReply) -> void } -> void
445
+ # @overload dump_list_nodes(**args)
446
+ # Returns an array when no block is given.
447
+ # @param [Hash] args
448
+ # @return [Array<Messages::DumpListNodesReply>]
449
+ # @overload dump_list_nodes(**args, &block)
450
+ # Yields each reply when a block is given.
451
+ # @param [Hash] args
452
+ # @yieldparam [Messages::DumpListNodesReply] reply
453
+ # @return [void]
454
+ # @see Messages::DumpListNodesRequest
455
+ def dump_list_nodes: () -> Array[Messages::DumpListNodesReply]
456
+ | () { (Messages::DumpListNodesReply) -> void } -> void
457
+
458
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
459
+ #
460
+ # Requires CAP_NET_ADMIN in the initial user namespace.
461
+ # @rbs (?node_id: ::Integer, ?error_id: ::Integer) -> Messages::DoGetErrorCounterReply
462
+ # @param [Hash] args
463
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
464
+ # @option args [Integer] error_id Unique identifier for a specific error counter within an node.
465
+ # @return [Messages::DoGetErrorCounterReply]
466
+ # @see Messages::DoGetErrorCounterRequest
467
+ def do_get_error_counter: (?node_id: ::Integer, ?error_id: ::Integer) -> Messages::DoGetErrorCounterReply
468
+
469
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
470
+ #
471
+ # Requires CAP_NET_ADMIN in the initial user namespace.
472
+ # @rbs (?node_id: ::Integer) -> Array[Messages::DumpGetErrorCounterReply]
473
+ # | (?node_id: ::Integer) { (Messages::DumpGetErrorCounterReply) -> void } -> void
474
+ # @overload dump_get_error_counter(**args)
475
+ # Returns an array when no block is given.
476
+ # @param [Hash] args
477
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
478
+ # @return [Array<Messages::DumpGetErrorCounterReply>]
479
+ # @overload dump_get_error_counter(**args, &block)
480
+ # Yields each reply when a block is given.
481
+ # @param [Hash] args
482
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
483
+ # @yieldparam [Messages::DumpGetErrorCounterReply] reply
484
+ # @return [void]
485
+ # @see Messages::DumpGetErrorCounterRequest
486
+ def dump_get_error_counter: (?node_id: ::Integer) -> Array[Messages::DumpGetErrorCounterReply]
487
+ | (?node_id: ::Integer) { (Messages::DumpGetErrorCounterReply) -> void } -> void
488
+
489
+ # Clear error counter for a given node. The request includes the error-id and node-id of the counter to be cleared.
490
+ #
491
+ # Requires CAP_NET_ADMIN in the initial user namespace.
492
+ # @rbs (?node_id: ::Integer, ?error_id: ::Integer) -> void
493
+ # @param [Hash] args
494
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
495
+ # @option args [Integer] error_id Unique identifier for a specific error counter within an node.
496
+ # @return [void]
497
+ # @see Messages::DoClearErrorCounterRequest
498
+ def do_clear_error_counter: (?node_id: ::Integer, ?error_id: ::Integer) -> void
499
+
500
+ class AsyncOperations
501
+ # @private
502
+ def initialize: () ?{ (?) -> untyped } -> untyped
503
+
504
+ # Retrieve the full list of currently registered DRM RAS nodes. Each node includes its dynamically assigned ID, name, and type. **Important:** User space must call this operation first to obtain the node IDs. These IDs are required for all subsequent operations on nodes, such as querying error counters.
505
+ #
506
+ # Requires CAP_NET_ADMIN in the initial user namespace.
507
+ # @rbs () -> ::Nl::Async::Stream[Messages::DumpListNodesReply]
508
+ # @param [Hash] args
509
+ # @return [Nl::Async::Stream<Messages::DumpListNodesReply>]
510
+ # @see Messages::DumpListNodesRequest
511
+ def dump_list_nodes: () -> ::Nl::Async::Stream[Messages::DumpListNodesReply]
512
+
513
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
514
+ #
515
+ # Requires CAP_NET_ADMIN in the initial user namespace.
516
+ # @rbs (?node_id: ::Integer, ?error_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetErrorCounterReply]
517
+ # @param [Hash] args
518
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
519
+ # @option args [Integer] error_id Unique identifier for a specific error counter within an node.
520
+ # @return [Nl::Async::Future<Messages::DoGetErrorCounterReply>]
521
+ # @see Messages::DoGetErrorCounterRequest
522
+ def do_get_error_counter: (?node_id: ::Integer, ?error_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetErrorCounterReply]
523
+
524
+ # Retrieve error counter for a given node. The response includes the id, the name, and even the current value of each counter.
525
+ #
526
+ # Requires CAP_NET_ADMIN in the initial user namespace.
527
+ # @rbs (?node_id: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetErrorCounterReply]
528
+ # @param [Hash] args
529
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
530
+ # @return [Nl::Async::Stream<Messages::DumpGetErrorCounterReply>]
531
+ # @see Messages::DumpGetErrorCounterRequest
532
+ def dump_get_error_counter: (?node_id: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetErrorCounterReply]
533
+
534
+ # Clear error counter for a given node. The request includes the error-id and node-id of the counter to be cleared.
535
+ #
536
+ # Requires CAP_NET_ADMIN in the initial user namespace.
537
+ # @rbs (?node_id: ::Integer, ?error_id: ::Integer) -> ::Nl::Async::Future[void]
538
+ # @param [Hash] args
539
+ # @option args [Integer] node_id Node ID targeted by this error counter operation.
540
+ # @option args [Integer] error_id Unique identifier for a specific error counter within an node.
541
+ # @return [Nl::Async::Future<void>]
542
+ # @see Messages::DoClearErrorCounterRequest
543
+ def do_clear_error_counter: (?node_id: ::Integer, ?error_id: ::Integer) -> ::Nl::Async::Future[void]
544
+ end
545
+
546
+ # Returns the asynchronous operation facade for this family.
547
+ # @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
548
+ # @param [::Integer, nil] stream_capacity
549
+ # @return [AsyncOperations]
550
+ def async: (?stream_capacity: ::Integer?) -> AsyncOperations
551
+ end
552
+ end
553
+ end