nl-linux 0.2.4 → 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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +3 -0
  3. data/.yardopts +5 -0
  4. data/CHANGELOG.md +8 -0
  5. data/Rakefile +27 -5
  6. data/generated/nl/linux/binder.rb +227 -19
  7. data/generated/nl/linux/conntrack.rb +1325 -365
  8. data/generated/nl/linux/dev_energymodel.rb +357 -66
  9. data/generated/nl/linux/devlink.rb +6310 -1859
  10. data/generated/nl/linux/dpll.rb +2202 -376
  11. data/generated/nl/linux/drm_ras.rb +312 -63
  12. data/generated/nl/linux/ethtool.rb +7555 -2447
  13. data/generated/nl/linux/fou.rb +381 -133
  14. data/generated/nl/linux/handshake.rb +340 -70
  15. data/generated/nl/linux/lockd.rb +132 -27
  16. data/generated/nl/linux/mptcp_pm.rb +773 -161
  17. data/generated/nl/linux/net_shaper.rb +892 -211
  18. data/generated/nl/linux/netdev.rb +2366 -518
  19. data/generated/nl/linux/nfsd.rb +1299 -317
  20. data/generated/nl/linux/nftables.rb +5351 -1533
  21. data/generated/nl/linux/nl80211.rb +4601 -882
  22. data/generated/nl/linux/nlctrl.rb +460 -117
  23. data/generated/nl/linux/ovpn.rb +1360 -262
  24. data/generated/nl/linux/ovs_datapath.rb +312 -98
  25. data/generated/nl/linux/ovs_flow.rb +1866 -358
  26. data/generated/nl/linux/ovs_packet.rb +331 -45
  27. data/generated/nl/linux/ovs_vport.rb +374 -123
  28. data/generated/nl/linux/psp.rb +1093 -201
  29. data/generated/nl/linux/rt_addr.rb +423 -165
  30. data/generated/nl/linux/rt_link.rb +6928 -1336
  31. data/generated/nl/linux/rt_neigh.rb +1063 -297
  32. data/generated/nl/linux/rt_route.rb +1112 -483
  33. data/generated/nl/linux/rt_rule.rb +931 -262
  34. data/generated/nl/linux/sunrpc_cache.rb +407 -82
  35. data/generated/nl/linux/tc.rb +10081 -1763
  36. data/generated/nl/linux/tcp_metrics.rb +388 -109
  37. data/generated/nl/linux/team.rb +350 -84
  38. data/generated/nl/linux/wireguard.rb +525 -96
  39. data/generated/nl/linux.rb +1 -0
  40. data/lib/nl/linux/nlctrl_resolver.rb +31 -0
  41. data/lib/nl/linux/version.rb +1 -1
  42. data/sig/generated/nl/linux/binder.rbs +366 -0
  43. data/sig/generated/nl/linux/conntrack.rbs +2787 -0
  44. data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
  45. data/sig/generated/nl/linux/devlink.rbs +12496 -0
  46. data/sig/generated/nl/linux/dpll.rbs +3461 -0
  47. data/sig/generated/nl/linux/drm_ras.rbs +553 -0
  48. data/sig/generated/nl/linux/ethtool.rbs +15291 -0
  49. data/sig/generated/nl/linux/fou.rbs +702 -0
  50. data/sig/generated/nl/linux/handshake.rbs +622 -0
  51. data/sig/generated/nl/linux/lockd.rbs +234 -0
  52. data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
  53. data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
  54. data/sig/generated/nl/linux/netdev.rbs +4187 -0
  55. data/sig/generated/nl/linux/nfsd.rbs +2520 -0
  56. data/sig/generated/nl/linux/nftables.rbs +10304 -0
  57. data/sig/generated/nl/linux/nl80211.rbs +9786 -0
  58. data/sig/generated/nl/linux/nlctrl.rbs +944 -0
  59. data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
  60. data/sig/generated/nl/linux/ovpn.rbs +2564 -0
  61. data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
  62. data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
  63. data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
  64. data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
  65. data/sig/generated/nl/linux/psp.rbs +1846 -0
  66. data/sig/generated/nl/linux/rt_addr.rbs +866 -0
  67. data/sig/generated/nl/linux/rt_link.rbs +13438 -0
  68. data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
  69. data/sig/generated/nl/linux/rt_route.rbs +2218 -0
  70. data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
  71. data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
  72. data/sig/generated/nl/linux/tc.rbs +19931 -0
  73. data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
  74. data/sig/generated/nl/linux/team.rbs +733 -0
  75. data/sig/generated/nl/linux/version.rbs +7 -0
  76. data/sig/generated/nl/linux/wireguard.rbs +1006 -0
  77. data/sig/generated/nl/linux.rbs +6 -0
  78. data/sig/generated/nl-linux.rbs +2 -0
  79. metadata +51 -10
@@ -0,0 +1,944 @@
1
+ # Generated from generated/nl/linux/nlctrl.rb with RBS::Inline
2
+
3
+ module Nl
4
+ module Linux
5
+ # genetlink meta-family that exposes information about all genetlink
6
+ # families registered in the kernel (including itself).
7
+ class Nlctrl < ::Nl::Genl::Family
8
+ NAME: ::String
9
+
10
+ VERSION: ::Integer
11
+
12
+ # @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
13
+ # @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
14
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
15
+ # @param [#call] resolver
16
+ # @param [Symbol, nil] executor
17
+ # @param [Integer, nil] notification_capacity
18
+ # @return [Nlctrl]
19
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
20
+ # @param [#call] resolver
21
+ # @param [Symbol, nil] executor
22
+ # @param [Integer, nil] notification_capacity
23
+ # @yieldparam [Nlctrl] family
24
+ # @return [Object] the result of the block
25
+ def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
26
+
27
+ # @private
28
+ MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
29
+
30
+ module Enums
31
+ module AttrType
32
+ Invalid: ::Integer
33
+
34
+ Flag: ::Integer
35
+
36
+ U8: ::Integer
37
+
38
+ U16: ::Integer
39
+
40
+ U32: ::Integer
41
+
42
+ U64: ::Integer
43
+
44
+ S8: ::Integer
45
+
46
+ S16: ::Integer
47
+
48
+ S32: ::Integer
49
+
50
+ S64: ::Integer
51
+
52
+ Binary: ::Integer
53
+
54
+ String: ::Integer
55
+
56
+ NulString: ::Integer
57
+
58
+ Nested: ::Integer
59
+
60
+ NestedArray: ::Integer
61
+
62
+ Bitfield32: ::Integer
63
+
64
+ Sint: ::Integer
65
+
66
+ Uint: ::Integer
67
+ end
68
+ end
69
+
70
+ module Flags
71
+ module OpFlags
72
+ AdminPerm: ::Integer
73
+
74
+ CmdCapDo: ::Integer
75
+
76
+ CmdCapDump: ::Integer
77
+
78
+ CmdCapHaspol: ::Integer
79
+
80
+ UnsAdminPerm: ::Integer
81
+ end
82
+ end
83
+
84
+ module Structs
85
+ end
86
+
87
+ module AttributeSets
88
+ class CtrlAttrs < ::Nl::AttributeSet
89
+ # Abstract class
90
+ class Attribute < ::Nl::AttributeSet::Attribute
91
+ end
92
+
93
+ class FamilyId < Attribute
94
+ TYPE: ::Integer
95
+
96
+ NAME: ::Symbol
97
+
98
+ # @private
99
+ ORDER: ::Integer
100
+
101
+ # @private
102
+ DATATYPE: untyped
103
+ end
104
+
105
+ class FamilyName < Attribute
106
+ TYPE: ::Integer
107
+
108
+ NAME: ::Symbol
109
+
110
+ # @private
111
+ ORDER: ::Integer
112
+
113
+ # @private
114
+ DATATYPE: untyped
115
+ end
116
+
117
+ class Version < Attribute
118
+ TYPE: ::Integer
119
+
120
+ NAME: ::Symbol
121
+
122
+ # @private
123
+ ORDER: ::Integer
124
+
125
+ # @private
126
+ DATATYPE: untyped
127
+ end
128
+
129
+ class Hdrsize < Attribute
130
+ TYPE: ::Integer
131
+
132
+ NAME: ::Symbol
133
+
134
+ # @private
135
+ ORDER: ::Integer
136
+
137
+ # @private
138
+ DATATYPE: untyped
139
+ end
140
+
141
+ class Maxattr < Attribute
142
+ TYPE: ::Integer
143
+
144
+ NAME: ::Symbol
145
+
146
+ # @private
147
+ ORDER: ::Integer
148
+
149
+ # @private
150
+ DATATYPE: untyped
151
+ end
152
+
153
+ class Ops < Attribute
154
+ TYPE: ::Integer
155
+
156
+ NAME: ::Symbol
157
+
158
+ # @private
159
+ ORDER: ::Integer
160
+ end
161
+
162
+ class McastGroups < Attribute
163
+ TYPE: ::Integer
164
+
165
+ NAME: ::Symbol
166
+
167
+ # @private
168
+ ORDER: ::Integer
169
+ end
170
+
171
+ class Policy < Attribute
172
+ TYPE: ::Integer
173
+
174
+ NAME: ::Symbol
175
+
176
+ # @private
177
+ ORDER: ::Integer
178
+ end
179
+
180
+ class OpPolicy < Attribute
181
+ TYPE: ::Integer
182
+
183
+ NAME: ::Symbol
184
+
185
+ # @private
186
+ ORDER: ::Integer
187
+ end
188
+
189
+ class Op < Attribute
190
+ TYPE: ::Integer
191
+
192
+ NAME: ::Symbol
193
+
194
+ # @private
195
+ ORDER: ::Integer
196
+
197
+ # @private
198
+ DATATYPE: untyped
199
+ end
200
+
201
+ # @private
202
+ BY_NAME: Hash[::Symbol, Attribute]
203
+
204
+ # @private
205
+ BY_TYPE: Hash[::Integer, Attribute]
206
+
207
+ # @rbs return: ::Integer
208
+ # @return [Integer]
209
+ # @see FamilyId
210
+ def family_id: () -> ::Integer
211
+
212
+ # @rbs return: ::String
213
+ # @return [String]
214
+ # @see FamilyName
215
+ def family_name: () -> ::String
216
+
217
+ # @rbs return: ::Integer
218
+ # @return [Integer]
219
+ # @see Version
220
+ def version: () -> ::Integer
221
+
222
+ # @rbs return: ::Integer
223
+ # @return [Integer]
224
+ # @see Hdrsize
225
+ def hdrsize: () -> ::Integer
226
+
227
+ # @rbs return: ::Integer
228
+ # @return [Integer]
229
+ # @see Maxattr
230
+ def maxattr: () -> ::Integer
231
+
232
+ # @rbs return: ::Array[AttributeSets::OpAttrs]
233
+ # @return [Array<AttributeSets::OpAttrs>]
234
+ # @see Ops
235
+ def ops: () -> ::Array[AttributeSets::OpAttrs]
236
+
237
+ # @rbs return: ::Array[AttributeSets::McastGroupAttrs]
238
+ # @return [Array<AttributeSets::McastGroupAttrs>]
239
+ # @see McastGroups
240
+ def mcast_groups: () -> ::Array[AttributeSets::McastGroupAttrs]
241
+
242
+ # @rbs return: ::Hash[::Integer, ::Hash[::Integer, AttributeSets::PolicyAttrs]]
243
+ # @return [Hash<Integer, Hash<Integer, AttributeSets::PolicyAttrs>>]
244
+ # @see Policy
245
+ def policy: () -> ::Hash[::Integer, ::Hash[::Integer, AttributeSets::PolicyAttrs]]
246
+
247
+ # @rbs return: ::Hash[::Integer, AttributeSets::OpPolicyAttrs]
248
+ # @return [Hash<Integer, AttributeSets::OpPolicyAttrs>]
249
+ # @see OpPolicy
250
+ def op_policy: () -> ::Hash[::Integer, AttributeSets::OpPolicyAttrs]
251
+
252
+ # @rbs return: ::Integer
253
+ # @return [Integer]
254
+ # @see Op
255
+ def op: () -> ::Integer
256
+
257
+ # Looks up Attribute class by name.
258
+ # @rbs name: Symbol
259
+ # @rbs return: Attribute
260
+ # @param [Symbol] name
261
+ # @return [Attribute]
262
+ def self.by_name: (Symbol name) -> Attribute
263
+
264
+ # Looks up Attribute class by type value.
265
+ # @rbs type: Integer
266
+ # @rbs return: Attribute
267
+ # @param [Integer] type
268
+ # @return [Attribute]
269
+ def self.by_type: (Integer type) -> Attribute
270
+ end
271
+
272
+ class McastGroupAttrs < ::Nl::AttributeSet
273
+ # Abstract class
274
+ class Attribute < ::Nl::AttributeSet::Attribute
275
+ end
276
+
277
+ class Name < Attribute
278
+ TYPE: ::Integer
279
+
280
+ NAME: ::Symbol
281
+
282
+ # @private
283
+ ORDER: ::Integer
284
+
285
+ # @private
286
+ DATATYPE: untyped
287
+ end
288
+
289
+ class Id < Attribute
290
+ TYPE: ::Integer
291
+
292
+ NAME: ::Symbol
293
+
294
+ # @private
295
+ ORDER: ::Integer
296
+
297
+ # @private
298
+ DATATYPE: untyped
299
+ end
300
+
301
+ # @private
302
+ BY_NAME: Hash[::Symbol, Attribute]
303
+
304
+ # @private
305
+ BY_TYPE: Hash[::Integer, Attribute]
306
+
307
+ # @rbs return: ::String
308
+ # @return [String]
309
+ # @see Name
310
+ def name: () -> ::String
311
+
312
+ # @rbs return: ::Integer
313
+ # @return [Integer]
314
+ # @see Id
315
+ def id: () -> ::Integer
316
+
317
+ # Looks up Attribute class by name.
318
+ # @rbs name: Symbol
319
+ # @rbs return: Attribute
320
+ # @param [Symbol] name
321
+ # @return [Attribute]
322
+ def self.by_name: (Symbol name) -> Attribute
323
+
324
+ # Looks up Attribute class by type value.
325
+ # @rbs type: Integer
326
+ # @rbs return: Attribute
327
+ # @param [Integer] type
328
+ # @return [Attribute]
329
+ def self.by_type: (Integer type) -> Attribute
330
+ end
331
+
332
+ class OpAttrs < ::Nl::AttributeSet
333
+ # Abstract class
334
+ class Attribute < ::Nl::AttributeSet::Attribute
335
+ end
336
+
337
+ class Id < Attribute
338
+ TYPE: ::Integer
339
+
340
+ NAME: ::Symbol
341
+
342
+ # @private
343
+ ORDER: ::Integer
344
+
345
+ # @private
346
+ DATATYPE: untyped
347
+ end
348
+
349
+ # Known flags are defined in {Flags::OpFlags}.
350
+ class Flags < Attribute
351
+ TYPE: ::Integer
352
+
353
+ NAME: ::Symbol
354
+
355
+ # @private
356
+ ORDER: ::Integer
357
+
358
+ # @private
359
+ DATATYPE: untyped
360
+ end
361
+
362
+ # @private
363
+ BY_NAME: Hash[::Symbol, Attribute]
364
+
365
+ # @private
366
+ BY_TYPE: Hash[::Integer, Attribute]
367
+
368
+ # @rbs return: ::Integer
369
+ # @return [Integer]
370
+ # @see Id
371
+ def id: () -> ::Integer
372
+
373
+ # Known flags are defined in {Flags::OpFlags}.
374
+ # @rbs return: ::Integer
375
+ # @return [Integer]
376
+ # @see Flags
377
+ def flags: () -> ::Integer
378
+
379
+ # Looks up Attribute class by name.
380
+ # @rbs name: Symbol
381
+ # @rbs return: Attribute
382
+ # @param [Symbol] name
383
+ # @return [Attribute]
384
+ def self.by_name: (Symbol name) -> Attribute
385
+
386
+ # Looks up Attribute class by type value.
387
+ # @rbs type: Integer
388
+ # @rbs return: Attribute
389
+ # @param [Integer] type
390
+ # @return [Attribute]
391
+ def self.by_type: (Integer type) -> Attribute
392
+ end
393
+
394
+ class PolicyAttrs < ::Nl::AttributeSet
395
+ # Abstract class
396
+ class Attribute < ::Nl::AttributeSet::Attribute
397
+ end
398
+
399
+ # Known enum values are defined in {Enums::AttrType}.
400
+ class Type < Attribute
401
+ TYPE: ::Integer
402
+
403
+ NAME: ::Symbol
404
+
405
+ # @private
406
+ ORDER: ::Integer
407
+
408
+ # @private
409
+ DATATYPE: untyped
410
+ end
411
+
412
+ class MinValueS < Attribute
413
+ TYPE: ::Integer
414
+
415
+ NAME: ::Symbol
416
+
417
+ # @private
418
+ ORDER: ::Integer
419
+
420
+ # @private
421
+ DATATYPE: untyped
422
+ end
423
+
424
+ class MaxValueS < Attribute
425
+ TYPE: ::Integer
426
+
427
+ NAME: ::Symbol
428
+
429
+ # @private
430
+ ORDER: ::Integer
431
+
432
+ # @private
433
+ DATATYPE: untyped
434
+ end
435
+
436
+ class MinValueU < Attribute
437
+ TYPE: ::Integer
438
+
439
+ NAME: ::Symbol
440
+
441
+ # @private
442
+ ORDER: ::Integer
443
+
444
+ # @private
445
+ DATATYPE: untyped
446
+ end
447
+
448
+ class MaxValueU < Attribute
449
+ TYPE: ::Integer
450
+
451
+ NAME: ::Symbol
452
+
453
+ # @private
454
+ ORDER: ::Integer
455
+
456
+ # @private
457
+ DATATYPE: untyped
458
+ end
459
+
460
+ class MinLength < Attribute
461
+ TYPE: ::Integer
462
+
463
+ NAME: ::Symbol
464
+
465
+ # @private
466
+ ORDER: ::Integer
467
+
468
+ # @private
469
+ DATATYPE: untyped
470
+ end
471
+
472
+ class MaxLength < Attribute
473
+ TYPE: ::Integer
474
+
475
+ NAME: ::Symbol
476
+
477
+ # @private
478
+ ORDER: ::Integer
479
+
480
+ # @private
481
+ DATATYPE: untyped
482
+ end
483
+
484
+ class PolicyIdx < Attribute
485
+ TYPE: ::Integer
486
+
487
+ NAME: ::Symbol
488
+
489
+ # @private
490
+ ORDER: ::Integer
491
+
492
+ # @private
493
+ DATATYPE: untyped
494
+ end
495
+
496
+ class PolicyMaxtype < Attribute
497
+ TYPE: ::Integer
498
+
499
+ NAME: ::Symbol
500
+
501
+ # @private
502
+ ORDER: ::Integer
503
+
504
+ # @private
505
+ DATATYPE: untyped
506
+ end
507
+
508
+ class Bitfield32Mask < Attribute
509
+ TYPE: ::Integer
510
+
511
+ NAME: ::Symbol
512
+
513
+ # @private
514
+ ORDER: ::Integer
515
+
516
+ # @private
517
+ DATATYPE: untyped
518
+ end
519
+
520
+ class Mask < Attribute
521
+ TYPE: ::Integer
522
+
523
+ NAME: ::Symbol
524
+
525
+ # @private
526
+ ORDER: ::Integer
527
+
528
+ # @private
529
+ DATATYPE: untyped
530
+ end
531
+
532
+ class Pad < Attribute
533
+ TYPE: ::Integer
534
+
535
+ NAME: ::Symbol
536
+
537
+ # @private
538
+ ORDER: ::Integer
539
+
540
+ # @private
541
+ DATATYPE: untyped
542
+ end
543
+
544
+ # @private
545
+ BY_NAME: Hash[::Symbol, Attribute]
546
+
547
+ # @private
548
+ BY_TYPE: Hash[::Integer, Attribute]
549
+
550
+ # Known enum values are defined in {Enums::AttrType}.
551
+ # @rbs return: ::Integer
552
+ # @return [Integer]
553
+ # @see Type
554
+ def type: () -> ::Integer
555
+
556
+ # @rbs return: ::Integer
557
+ # @return [Integer]
558
+ # @see MinValueS
559
+ def min_value_s: () -> ::Integer
560
+
561
+ # @rbs return: ::Integer
562
+ # @return [Integer]
563
+ # @see MaxValueS
564
+ def max_value_s: () -> ::Integer
565
+
566
+ # @rbs return: ::Integer
567
+ # @return [Integer]
568
+ # @see MinValueU
569
+ def min_value_u: () -> ::Integer
570
+
571
+ # @rbs return: ::Integer
572
+ # @return [Integer]
573
+ # @see MaxValueU
574
+ def max_value_u: () -> ::Integer
575
+
576
+ # @rbs return: ::Integer
577
+ # @return [Integer]
578
+ # @see MinLength
579
+ def min_length: () -> ::Integer
580
+
581
+ # @rbs return: ::Integer
582
+ # @return [Integer]
583
+ # @see MaxLength
584
+ def max_length: () -> ::Integer
585
+
586
+ # @rbs return: ::Integer
587
+ # @return [Integer]
588
+ # @see PolicyIdx
589
+ def policy_idx: () -> ::Integer
590
+
591
+ # @rbs return: ::Integer
592
+ # @return [Integer]
593
+ # @see PolicyMaxtype
594
+ def policy_maxtype: () -> ::Integer
595
+
596
+ # @rbs return: ::Integer
597
+ # @return [Integer]
598
+ # @see Bitfield32Mask
599
+ def bitfield32_mask: () -> ::Integer
600
+
601
+ # @rbs return: ::Integer
602
+ # @return [Integer]
603
+ # @see Mask
604
+ def mask: () -> ::Integer
605
+
606
+ # Looks up Attribute class by name.
607
+ # @rbs name: Symbol
608
+ # @rbs return: Attribute
609
+ # @param [Symbol] name
610
+ # @return [Attribute]
611
+ def self.by_name: (Symbol name) -> Attribute
612
+
613
+ # Looks up Attribute class by type value.
614
+ # @rbs type: Integer
615
+ # @rbs return: Attribute
616
+ # @param [Integer] type
617
+ # @return [Attribute]
618
+ def self.by_type: (Integer type) -> Attribute
619
+ end
620
+
621
+ class OpPolicyAttrs < ::Nl::AttributeSet
622
+ # Abstract class
623
+ class Attribute < ::Nl::AttributeSet::Attribute
624
+ end
625
+
626
+ class Do < Attribute
627
+ TYPE: ::Integer
628
+
629
+ NAME: ::Symbol
630
+
631
+ # @private
632
+ ORDER: ::Integer
633
+
634
+ # @private
635
+ DATATYPE: untyped
636
+ end
637
+
638
+ class Dump < Attribute
639
+ TYPE: ::Integer
640
+
641
+ NAME: ::Symbol
642
+
643
+ # @private
644
+ ORDER: ::Integer
645
+
646
+ # @private
647
+ DATATYPE: untyped
648
+ end
649
+
650
+ # @private
651
+ BY_NAME: Hash[::Symbol, Attribute]
652
+
653
+ # @private
654
+ BY_TYPE: Hash[::Integer, Attribute]
655
+
656
+ # @rbs return: ::Integer
657
+ # @return [Integer]
658
+ # @see Do
659
+ def do: () -> ::Integer
660
+
661
+ # @rbs return: ::Integer
662
+ # @return [Integer]
663
+ # @see Dump
664
+ def dump: () -> ::Integer
665
+
666
+ # Looks up Attribute class by name.
667
+ # @rbs name: Symbol
668
+ # @rbs return: Attribute
669
+ # @param [Symbol] name
670
+ # @return [Attribute]
671
+ def self.by_name: (Symbol name) -> Attribute
672
+
673
+ # Looks up Attribute class by type value.
674
+ # @rbs type: Integer
675
+ # @rbs return: Attribute
676
+ # @param [Integer] type
677
+ # @return [Attribute]
678
+ def self.by_type: (Integer type) -> Attribute
679
+ end
680
+ end
681
+
682
+ module Messages
683
+ # Get / dump genetlink families
684
+ class DoGetfamilyRequest < ::Nl::Genl::Message
685
+ TYPE: ::Integer
686
+
687
+ FIXED_HEADER: untyped
688
+
689
+ ATTRIBUTE_SET: untyped
690
+
691
+ ATTRIBUTES: untyped
692
+
693
+ # @rbs return: ::String
694
+ # @return [String]
695
+ # @see AttributeSets::CtrlAttrs::FamilyName
696
+ def family_name: () -> ::String
697
+ end
698
+
699
+ # Get / dump genetlink families
700
+ class DoGetfamilyReply < ::Nl::Genl::Message
701
+ TYPE: ::Integer
702
+
703
+ FIXED_HEADER: untyped
704
+
705
+ ATTRIBUTE_SET: untyped
706
+
707
+ ATTRIBUTES: untyped
708
+
709
+ # @rbs return: ::Integer
710
+ # @return [Integer]
711
+ # @see AttributeSets::CtrlAttrs::FamilyId
712
+ def family_id: () -> ::Integer
713
+
714
+ # @rbs return: ::String
715
+ # @return [String]
716
+ # @see AttributeSets::CtrlAttrs::FamilyName
717
+ def family_name: () -> ::String
718
+
719
+ # @rbs return: ::Integer
720
+ # @return [Integer]
721
+ # @see AttributeSets::CtrlAttrs::Version
722
+ def version: () -> ::Integer
723
+
724
+ # @rbs return: ::Integer
725
+ # @return [Integer]
726
+ # @see AttributeSets::CtrlAttrs::Hdrsize
727
+ def hdrsize: () -> ::Integer
728
+
729
+ # @rbs return: ::Integer
730
+ # @return [Integer]
731
+ # @see AttributeSets::CtrlAttrs::Maxattr
732
+ def maxattr: () -> ::Integer
733
+
734
+ # @rbs return: ::Array[AttributeSets::OpAttrs]
735
+ # @return [Array<AttributeSets::OpAttrs>]
736
+ # @see AttributeSets::CtrlAttrs::Ops
737
+ def ops: () -> ::Array[AttributeSets::OpAttrs]
738
+
739
+ # @rbs return: ::Array[AttributeSets::McastGroupAttrs]
740
+ # @return [Array<AttributeSets::McastGroupAttrs>]
741
+ # @see AttributeSets::CtrlAttrs::McastGroups
742
+ def mcast_groups: () -> ::Array[AttributeSets::McastGroupAttrs]
743
+ end
744
+
745
+ # Get / dump genetlink families
746
+ class DumpGetfamilyRequest < ::Nl::Genl::Message
747
+ TYPE: ::Integer
748
+
749
+ FIXED_HEADER: untyped
750
+
751
+ ATTRIBUTE_SET: untyped
752
+
753
+ ATTRIBUTES: untyped
754
+ end
755
+
756
+ # Get / dump genetlink families
757
+ class DumpGetfamilyReply < ::Nl::Genl::Message
758
+ TYPE: ::Integer
759
+
760
+ FIXED_HEADER: untyped
761
+
762
+ ATTRIBUTE_SET: untyped
763
+
764
+ ATTRIBUTES: untyped
765
+
766
+ # @rbs return: ::Integer
767
+ # @return [Integer]
768
+ # @see AttributeSets::CtrlAttrs::FamilyId
769
+ def family_id: () -> ::Integer
770
+
771
+ # @rbs return: ::String
772
+ # @return [String]
773
+ # @see AttributeSets::CtrlAttrs::FamilyName
774
+ def family_name: () -> ::String
775
+
776
+ # @rbs return: ::Integer
777
+ # @return [Integer]
778
+ # @see AttributeSets::CtrlAttrs::Version
779
+ def version: () -> ::Integer
780
+
781
+ # @rbs return: ::Integer
782
+ # @return [Integer]
783
+ # @see AttributeSets::CtrlAttrs::Hdrsize
784
+ def hdrsize: () -> ::Integer
785
+
786
+ # @rbs return: ::Integer
787
+ # @return [Integer]
788
+ # @see AttributeSets::CtrlAttrs::Maxattr
789
+ def maxattr: () -> ::Integer
790
+
791
+ # @rbs return: ::Array[AttributeSets::OpAttrs]
792
+ # @return [Array<AttributeSets::OpAttrs>]
793
+ # @see AttributeSets::CtrlAttrs::Ops
794
+ def ops: () -> ::Array[AttributeSets::OpAttrs]
795
+
796
+ # @rbs return: ::Array[AttributeSets::McastGroupAttrs]
797
+ # @return [Array<AttributeSets::McastGroupAttrs>]
798
+ # @see AttributeSets::CtrlAttrs::McastGroups
799
+ def mcast_groups: () -> ::Array[AttributeSets::McastGroupAttrs]
800
+ end
801
+
802
+ # Get / dump genetlink policies
803
+ class DumpGetpolicyRequest < ::Nl::Genl::Message
804
+ TYPE: ::Integer
805
+
806
+ FIXED_HEADER: untyped
807
+
808
+ ATTRIBUTE_SET: untyped
809
+
810
+ ATTRIBUTES: untyped
811
+
812
+ # @rbs return: ::Integer
813
+ # @return [Integer]
814
+ # @see AttributeSets::CtrlAttrs::FamilyId
815
+ def family_id: () -> ::Integer
816
+
817
+ # @rbs return: ::String
818
+ # @return [String]
819
+ # @see AttributeSets::CtrlAttrs::FamilyName
820
+ def family_name: () -> ::String
821
+
822
+ # @rbs return: ::Integer
823
+ # @return [Integer]
824
+ # @see AttributeSets::CtrlAttrs::Op
825
+ def op: () -> ::Integer
826
+ end
827
+
828
+ # Get / dump genetlink policies
829
+ class DumpGetpolicyReply < ::Nl::Genl::Message
830
+ TYPE: ::Integer
831
+
832
+ FIXED_HEADER: untyped
833
+
834
+ ATTRIBUTE_SET: untyped
835
+
836
+ ATTRIBUTES: untyped
837
+
838
+ # @rbs return: ::Integer
839
+ # @return [Integer]
840
+ # @see AttributeSets::CtrlAttrs::FamilyId
841
+ def family_id: () -> ::Integer
842
+
843
+ # @rbs return: ::Hash[::Integer, ::Hash[::Integer, AttributeSets::PolicyAttrs]]
844
+ # @return [Hash<Integer, Hash<Integer, AttributeSets::PolicyAttrs>>]
845
+ # @see AttributeSets::CtrlAttrs::Policy
846
+ def policy: () -> ::Hash[::Integer, ::Hash[::Integer, AttributeSets::PolicyAttrs]]
847
+
848
+ # @rbs return: ::Hash[::Integer, AttributeSets::OpPolicyAttrs]
849
+ # @return [Hash<Integer, AttributeSets::OpPolicyAttrs>]
850
+ # @see AttributeSets::CtrlAttrs::OpPolicy
851
+ def op_policy: () -> ::Hash[::Integer, AttributeSets::OpPolicyAttrs]
852
+ end
853
+ end
854
+
855
+ module Notifications
856
+ end
857
+
858
+ # @private
859
+ NOTIFICATIONS: Hash[::Integer, ::Class]
860
+
861
+ # Get / dump genetlink families
862
+ # @rbs (?family_name: ::String) -> Messages::DoGetfamilyReply
863
+ # @param [Hash] args
864
+ # @option args [String] family_name
865
+ # @return [Messages::DoGetfamilyReply]
866
+ # @see Messages::DoGetfamilyRequest
867
+ def do_getfamily: (?family_name: ::String) -> Messages::DoGetfamilyReply
868
+
869
+ # Get / dump genetlink families
870
+ # @rbs () -> Array[Messages::DumpGetfamilyReply]
871
+ # | () { (Messages::DumpGetfamilyReply) -> void } -> void
872
+ # @overload dump_getfamily(**args)
873
+ # Returns an array when no block is given.
874
+ # @param [Hash] args
875
+ # @return [Array<Messages::DumpGetfamilyReply>]
876
+ # @overload dump_getfamily(**args, &block)
877
+ # Yields each reply when a block is given.
878
+ # @param [Hash] args
879
+ # @yieldparam [Messages::DumpGetfamilyReply] reply
880
+ # @return [void]
881
+ # @see Messages::DumpGetfamilyRequest
882
+ def dump_getfamily: () -> Array[Messages::DumpGetfamilyReply]
883
+ | () { (Messages::DumpGetfamilyReply) -> void } -> void
884
+
885
+ # Get / dump genetlink policies
886
+ # @rbs (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) -> Array[Messages::DumpGetpolicyReply]
887
+ # | (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) { (Messages::DumpGetpolicyReply) -> void } -> void
888
+ # @overload dump_getpolicy(**args)
889
+ # Returns an array when no block is given.
890
+ # @param [Hash] args
891
+ # @option args [Integer] family_id
892
+ # @option args [String] family_name
893
+ # @option args [Integer] op
894
+ # @return [Array<Messages::DumpGetpolicyReply>]
895
+ # @overload dump_getpolicy(**args, &block)
896
+ # Yields each reply when a block is given.
897
+ # @param [Hash] args
898
+ # @option args [Integer] family_id
899
+ # @option args [String] family_name
900
+ # @option args [Integer] op
901
+ # @yieldparam [Messages::DumpGetpolicyReply] reply
902
+ # @return [void]
903
+ # @see Messages::DumpGetpolicyRequest
904
+ def dump_getpolicy: (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) -> Array[Messages::DumpGetpolicyReply]
905
+ | (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) { (Messages::DumpGetpolicyReply) -> void } -> void
906
+
907
+ class AsyncOperations
908
+ # @private
909
+ def initialize: () ?{ (?) -> untyped } -> untyped
910
+
911
+ # Get / dump genetlink families
912
+ # @rbs (?family_name: ::String) -> ::Nl::Async::Future[Messages::DoGetfamilyReply]
913
+ # @param [Hash] args
914
+ # @option args [String] family_name
915
+ # @return [Nl::Async::Future<Messages::DoGetfamilyReply>]
916
+ # @see Messages::DoGetfamilyRequest
917
+ def do_getfamily: (?family_name: ::String) -> ::Nl::Async::Future[Messages::DoGetfamilyReply]
918
+
919
+ # Get / dump genetlink families
920
+ # @rbs () -> ::Nl::Async::Stream[Messages::DumpGetfamilyReply]
921
+ # @param [Hash] args
922
+ # @return [Nl::Async::Stream<Messages::DumpGetfamilyReply>]
923
+ # @see Messages::DumpGetfamilyRequest
924
+ def dump_getfamily: () -> ::Nl::Async::Stream[Messages::DumpGetfamilyReply]
925
+
926
+ # Get / dump genetlink policies
927
+ # @rbs (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetpolicyReply]
928
+ # @param [Hash] args
929
+ # @option args [Integer] family_id
930
+ # @option args [String] family_name
931
+ # @option args [Integer] op
932
+ # @return [Nl::Async::Stream<Messages::DumpGetpolicyReply>]
933
+ # @see Messages::DumpGetpolicyRequest
934
+ def dump_getpolicy: (?family_id: ::Integer, ?family_name: ::String, ?op: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetpolicyReply]
935
+ end
936
+
937
+ # Returns the asynchronous operation facade for this family.
938
+ # @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
939
+ # @param [::Integer, nil] stream_capacity
940
+ # @return [AsyncOperations]
941
+ def async: (?stream_capacity: ::Integer?) -> AsyncOperations
942
+ end
943
+ end
944
+ end