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.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +8 -0
- data/Rakefile +27 -5
- data/generated/nl/linux/binder.rb +227 -19
- data/generated/nl/linux/conntrack.rb +1325 -365
- data/generated/nl/linux/dev_energymodel.rb +357 -66
- data/generated/nl/linux/devlink.rb +6310 -1859
- data/generated/nl/linux/dpll.rb +2202 -376
- data/generated/nl/linux/drm_ras.rb +312 -63
- data/generated/nl/linux/ethtool.rb +7555 -2447
- data/generated/nl/linux/fou.rb +381 -133
- data/generated/nl/linux/handshake.rb +340 -70
- data/generated/nl/linux/lockd.rb +132 -27
- data/generated/nl/linux/mptcp_pm.rb +773 -161
- data/generated/nl/linux/net_shaper.rb +892 -211
- data/generated/nl/linux/netdev.rb +2366 -518
- data/generated/nl/linux/nfsd.rb +1299 -317
- data/generated/nl/linux/nftables.rb +5351 -1533
- data/generated/nl/linux/nl80211.rb +4601 -882
- data/generated/nl/linux/nlctrl.rb +460 -117
- data/generated/nl/linux/ovpn.rb +1360 -262
- data/generated/nl/linux/ovs_datapath.rb +312 -98
- data/generated/nl/linux/ovs_flow.rb +1866 -358
- data/generated/nl/linux/ovs_packet.rb +331 -45
- data/generated/nl/linux/ovs_vport.rb +374 -123
- data/generated/nl/linux/psp.rb +1093 -201
- data/generated/nl/linux/rt_addr.rb +423 -165
- data/generated/nl/linux/rt_link.rb +6928 -1336
- data/generated/nl/linux/rt_neigh.rb +1063 -297
- data/generated/nl/linux/rt_route.rb +1112 -483
- data/generated/nl/linux/rt_rule.rb +931 -262
- data/generated/nl/linux/sunrpc_cache.rb +407 -82
- data/generated/nl/linux/tc.rb +10081 -1763
- data/generated/nl/linux/tcp_metrics.rb +388 -109
- data/generated/nl/linux/team.rb +350 -84
- data/generated/nl/linux/wireguard.rb +525 -96
- data/generated/nl/linux.rb +1 -0
- data/lib/nl/linux/nlctrl_resolver.rb +31 -0
- data/lib/nl/linux/version.rb +1 -1
- data/sig/generated/nl/linux/binder.rbs +366 -0
- data/sig/generated/nl/linux/conntrack.rbs +2787 -0
- data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
- data/sig/generated/nl/linux/devlink.rbs +12496 -0
- data/sig/generated/nl/linux/dpll.rbs +3461 -0
- data/sig/generated/nl/linux/drm_ras.rbs +553 -0
- data/sig/generated/nl/linux/ethtool.rbs +15291 -0
- data/sig/generated/nl/linux/fou.rbs +702 -0
- data/sig/generated/nl/linux/handshake.rbs +622 -0
- data/sig/generated/nl/linux/lockd.rbs +234 -0
- data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
- data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
- data/sig/generated/nl/linux/netdev.rbs +4187 -0
- data/sig/generated/nl/linux/nfsd.rbs +2520 -0
- data/sig/generated/nl/linux/nftables.rbs +10304 -0
- data/sig/generated/nl/linux/nl80211.rbs +9786 -0
- data/sig/generated/nl/linux/nlctrl.rbs +944 -0
- data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
- data/sig/generated/nl/linux/ovpn.rbs +2564 -0
- data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
- data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
- data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
- data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
- data/sig/generated/nl/linux/psp.rbs +1846 -0
- data/sig/generated/nl/linux/rt_addr.rbs +866 -0
- data/sig/generated/nl/linux/rt_link.rbs +13438 -0
- data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
- data/sig/generated/nl/linux/rt_route.rbs +2218 -0
- data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
- data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
- data/sig/generated/nl/linux/tc.rbs +19931 -0
- data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
- data/sig/generated/nl/linux/team.rbs +733 -0
- data/sig/generated/nl/linux/version.rbs +7 -0
- data/sig/generated/nl/linux/wireguard.rbs +1006 -0
- data/sig/generated/nl/linux.rbs +6 -0
- data/sig/generated/nl-linux.rbs +2 -0
- metadata +51 -10
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
# Generated from generated/nl/linux/dev_energymodel.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Nl
|
|
4
|
+
module Linux
|
|
5
|
+
# Energy model netlink interface to notify its changes.
|
|
6
|
+
class DevEnergymodel < ::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 [DevEnergymodel]
|
|
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 [DevEnergymodel] 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 Flags
|
|
30
|
+
module PerfStateFlags
|
|
31
|
+
# The performance state is inefficient. There is in this perf-domain, another performance state with a higher frequency but a lower or equal power cost.
|
|
32
|
+
PerfStateInefficient: ::Integer
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
module PerfDomainFlags
|
|
36
|
+
# The power values are in micro-Watts or some other scale.
|
|
37
|
+
PerfDomainMicrowatts: ::Integer
|
|
38
|
+
|
|
39
|
+
# Skip inefficient states when estimating energy consumption.
|
|
40
|
+
PerfDomainSkipInefficiencies: ::Integer
|
|
41
|
+
|
|
42
|
+
# The power values are artificial and might be created by platform missing real power information.
|
|
43
|
+
PerfDomainArtificial: ::Integer
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
module Structs
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
module AttributeSets
|
|
51
|
+
# Information on a single performance domains.
|
|
52
|
+
class PerfDomain < ::Nl::AttributeSet
|
|
53
|
+
# Abstract class
|
|
54
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
class Pad < Attribute
|
|
58
|
+
TYPE: ::Integer
|
|
59
|
+
|
|
60
|
+
NAME: ::Symbol
|
|
61
|
+
|
|
62
|
+
# @private
|
|
63
|
+
ORDER: ::Integer
|
|
64
|
+
|
|
65
|
+
# @private
|
|
66
|
+
DATATYPE: untyped
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# A unique ID number for each performance domain.
|
|
70
|
+
class PerfDomainId < Attribute
|
|
71
|
+
TYPE: ::Integer
|
|
72
|
+
|
|
73
|
+
NAME: ::Symbol
|
|
74
|
+
|
|
75
|
+
# @private
|
|
76
|
+
ORDER: ::Integer
|
|
77
|
+
|
|
78
|
+
# @private
|
|
79
|
+
DATATYPE: untyped
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Bitmask of performance domain flags.
|
|
83
|
+
#
|
|
84
|
+
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
85
|
+
class Flags < Attribute
|
|
86
|
+
TYPE: ::Integer
|
|
87
|
+
|
|
88
|
+
NAME: ::Symbol
|
|
89
|
+
|
|
90
|
+
# @private
|
|
91
|
+
ORDER: ::Integer
|
|
92
|
+
|
|
93
|
+
# @private
|
|
94
|
+
DATATYPE: untyped
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# CPUs that belong to this performance domain.
|
|
98
|
+
class Cpus < Attribute
|
|
99
|
+
TYPE: ::Integer
|
|
100
|
+
|
|
101
|
+
NAME: ::Symbol
|
|
102
|
+
|
|
103
|
+
# @private
|
|
104
|
+
MULTI: bool
|
|
105
|
+
|
|
106
|
+
# @private
|
|
107
|
+
ORDER: ::Integer
|
|
108
|
+
|
|
109
|
+
# @private
|
|
110
|
+
DATATYPE: untyped
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @private
|
|
114
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
115
|
+
|
|
116
|
+
# @private
|
|
117
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
118
|
+
|
|
119
|
+
# A unique ID number for each performance domain.
|
|
120
|
+
# @rbs return: ::Integer
|
|
121
|
+
# @return [Integer]
|
|
122
|
+
# @see PerfDomainId
|
|
123
|
+
def perf_domain_id: () -> ::Integer
|
|
124
|
+
|
|
125
|
+
# Bitmask of performance domain flags.
|
|
126
|
+
#
|
|
127
|
+
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
128
|
+
# @rbs return: ::Integer
|
|
129
|
+
# @return [Integer]
|
|
130
|
+
# @see Flags
|
|
131
|
+
def flags: () -> ::Integer
|
|
132
|
+
|
|
133
|
+
# CPUs that belong to this performance domain.
|
|
134
|
+
# @rbs return: ::Array[::Integer]
|
|
135
|
+
# @return [Array<Integer>]
|
|
136
|
+
# @see Cpus
|
|
137
|
+
def cpus: () -> ::Array[::Integer]
|
|
138
|
+
|
|
139
|
+
# Looks up Attribute class by name.
|
|
140
|
+
# @rbs name: Symbol
|
|
141
|
+
# @rbs return: Attribute
|
|
142
|
+
# @param [Symbol] name
|
|
143
|
+
# @return [Attribute]
|
|
144
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
145
|
+
|
|
146
|
+
# Looks up Attribute class by type value.
|
|
147
|
+
# @rbs type: Integer
|
|
148
|
+
# @rbs return: Attribute
|
|
149
|
+
# @param [Integer] type
|
|
150
|
+
# @return [Attribute]
|
|
151
|
+
def self.by_type: (Integer type) -> Attribute
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Performance states table.
|
|
155
|
+
class PerfTable < ::Nl::AttributeSet
|
|
156
|
+
# Abstract class
|
|
157
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# A unique ID number for each performance domain.
|
|
161
|
+
class PerfDomainId < Attribute
|
|
162
|
+
TYPE: ::Integer
|
|
163
|
+
|
|
164
|
+
NAME: ::Symbol
|
|
165
|
+
|
|
166
|
+
# @private
|
|
167
|
+
ORDER: ::Integer
|
|
168
|
+
|
|
169
|
+
# @private
|
|
170
|
+
DATATYPE: untyped
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
class PerfState < Attribute
|
|
174
|
+
TYPE: ::Integer
|
|
175
|
+
|
|
176
|
+
NAME: ::Symbol
|
|
177
|
+
|
|
178
|
+
# @private
|
|
179
|
+
MULTI: bool
|
|
180
|
+
|
|
181
|
+
# @private
|
|
182
|
+
ORDER: ::Integer
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# @private
|
|
186
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
187
|
+
|
|
188
|
+
# @private
|
|
189
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
190
|
+
|
|
191
|
+
# A unique ID number for each performance domain.
|
|
192
|
+
# @rbs return: ::Integer
|
|
193
|
+
# @return [Integer]
|
|
194
|
+
# @see PerfDomainId
|
|
195
|
+
def perf_domain_id: () -> ::Integer
|
|
196
|
+
|
|
197
|
+
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
198
|
+
# @return [Array<AttributeSets::PerfState>]
|
|
199
|
+
# @see PerfState
|
|
200
|
+
def perf_state: () -> ::Array[AttributeSets::PerfState]
|
|
201
|
+
|
|
202
|
+
# Looks up Attribute class by name.
|
|
203
|
+
# @rbs name: Symbol
|
|
204
|
+
# @rbs return: Attribute
|
|
205
|
+
# @param [Symbol] name
|
|
206
|
+
# @return [Attribute]
|
|
207
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
208
|
+
|
|
209
|
+
# Looks up Attribute class by type value.
|
|
210
|
+
# @rbs type: Integer
|
|
211
|
+
# @rbs return: Attribute
|
|
212
|
+
# @param [Integer] type
|
|
213
|
+
# @return [Attribute]
|
|
214
|
+
def self.by_type: (Integer type) -> Attribute
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Performance state of a performance domain.
|
|
218
|
+
class PerfState < ::Nl::AttributeSet
|
|
219
|
+
# Abstract class
|
|
220
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class Pad < Attribute
|
|
224
|
+
TYPE: ::Integer
|
|
225
|
+
|
|
226
|
+
NAME: ::Symbol
|
|
227
|
+
|
|
228
|
+
# @private
|
|
229
|
+
ORDER: ::Integer
|
|
230
|
+
|
|
231
|
+
# @private
|
|
232
|
+
DATATYPE: untyped
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# CPU performance (capacity) at a given frequency.
|
|
236
|
+
class Performance < Attribute
|
|
237
|
+
TYPE: ::Integer
|
|
238
|
+
|
|
239
|
+
NAME: ::Symbol
|
|
240
|
+
|
|
241
|
+
# @private
|
|
242
|
+
ORDER: ::Integer
|
|
243
|
+
|
|
244
|
+
# @private
|
|
245
|
+
DATATYPE: untyped
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# The frequency in KHz, for consistency with CPUFreq.
|
|
249
|
+
class Frequency < Attribute
|
|
250
|
+
TYPE: ::Integer
|
|
251
|
+
|
|
252
|
+
NAME: ::Symbol
|
|
253
|
+
|
|
254
|
+
# @private
|
|
255
|
+
ORDER: ::Integer
|
|
256
|
+
|
|
257
|
+
# @private
|
|
258
|
+
DATATYPE: untyped
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
|
|
262
|
+
class Power < Attribute
|
|
263
|
+
TYPE: ::Integer
|
|
264
|
+
|
|
265
|
+
NAME: ::Symbol
|
|
266
|
+
|
|
267
|
+
# @private
|
|
268
|
+
ORDER: ::Integer
|
|
269
|
+
|
|
270
|
+
# @private
|
|
271
|
+
DATATYPE: untyped
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
|
|
275
|
+
class Cost < Attribute
|
|
276
|
+
TYPE: ::Integer
|
|
277
|
+
|
|
278
|
+
NAME: ::Symbol
|
|
279
|
+
|
|
280
|
+
# @private
|
|
281
|
+
ORDER: ::Integer
|
|
282
|
+
|
|
283
|
+
# @private
|
|
284
|
+
DATATYPE: untyped
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Bitmask of performance state flags.
|
|
288
|
+
#
|
|
289
|
+
# Known flags are defined in {Flags::PerfStateFlags}.
|
|
290
|
+
class Flags < Attribute
|
|
291
|
+
TYPE: ::Integer
|
|
292
|
+
|
|
293
|
+
NAME: ::Symbol
|
|
294
|
+
|
|
295
|
+
# @private
|
|
296
|
+
ORDER: ::Integer
|
|
297
|
+
|
|
298
|
+
# @private
|
|
299
|
+
DATATYPE: untyped
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# @private
|
|
303
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
304
|
+
|
|
305
|
+
# @private
|
|
306
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
307
|
+
|
|
308
|
+
# CPU performance (capacity) at a given frequency.
|
|
309
|
+
# @rbs return: ::Integer
|
|
310
|
+
# @return [Integer]
|
|
311
|
+
# @see Performance
|
|
312
|
+
def performance: () -> ::Integer
|
|
313
|
+
|
|
314
|
+
# The frequency in KHz, for consistency with CPUFreq.
|
|
315
|
+
# @rbs return: ::Integer
|
|
316
|
+
# @return [Integer]
|
|
317
|
+
# @see Frequency
|
|
318
|
+
def frequency: () -> ::Integer
|
|
319
|
+
|
|
320
|
+
# The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
|
|
321
|
+
# @rbs return: ::Integer
|
|
322
|
+
# @return [Integer]
|
|
323
|
+
# @see Power
|
|
324
|
+
def power: () -> ::Integer
|
|
325
|
+
|
|
326
|
+
# The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
|
|
327
|
+
# @rbs return: ::Integer
|
|
328
|
+
# @return [Integer]
|
|
329
|
+
# @see Cost
|
|
330
|
+
def cost: () -> ::Integer
|
|
331
|
+
|
|
332
|
+
# Bitmask of performance state flags.
|
|
333
|
+
#
|
|
334
|
+
# Known flags are defined in {Flags::PerfStateFlags}.
|
|
335
|
+
# @rbs return: ::Integer
|
|
336
|
+
# @return [Integer]
|
|
337
|
+
# @see Flags
|
|
338
|
+
def flags: () -> ::Integer
|
|
339
|
+
|
|
340
|
+
# Looks up Attribute class by name.
|
|
341
|
+
# @rbs name: Symbol
|
|
342
|
+
# @rbs return: Attribute
|
|
343
|
+
# @param [Symbol] name
|
|
344
|
+
# @return [Attribute]
|
|
345
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
346
|
+
|
|
347
|
+
# Looks up Attribute class by type value.
|
|
348
|
+
# @rbs type: Integer
|
|
349
|
+
# @rbs return: Attribute
|
|
350
|
+
# @param [Integer] type
|
|
351
|
+
# @return [Attribute]
|
|
352
|
+
def self.by_type: (Integer type) -> Attribute
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
module Messages
|
|
357
|
+
# Get the list of information for all performance domains.
|
|
358
|
+
class DoGetPerfDomainsRequest < ::Nl::Genl::Message
|
|
359
|
+
TYPE: ::Integer
|
|
360
|
+
|
|
361
|
+
FIXED_HEADER: untyped
|
|
362
|
+
|
|
363
|
+
ATTRIBUTE_SET: untyped
|
|
364
|
+
|
|
365
|
+
ATTRIBUTES: untyped
|
|
366
|
+
|
|
367
|
+
# A unique ID number for each performance domain.
|
|
368
|
+
# @rbs return: ::Integer
|
|
369
|
+
# @return [Integer]
|
|
370
|
+
# @see AttributeSets::PerfDomain::PerfDomainId
|
|
371
|
+
def perf_domain_id: () -> ::Integer
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Get the list of information for all performance domains.
|
|
375
|
+
class DoGetPerfDomainsReply < ::Nl::Genl::Message
|
|
376
|
+
TYPE: ::Integer
|
|
377
|
+
|
|
378
|
+
FIXED_HEADER: untyped
|
|
379
|
+
|
|
380
|
+
ATTRIBUTE_SET: untyped
|
|
381
|
+
|
|
382
|
+
ATTRIBUTES: untyped
|
|
383
|
+
|
|
384
|
+
# A unique ID number for each performance domain.
|
|
385
|
+
# @rbs return: ::Integer
|
|
386
|
+
# @return [Integer]
|
|
387
|
+
# @see AttributeSets::PerfDomain::PerfDomainId
|
|
388
|
+
def perf_domain_id: () -> ::Integer
|
|
389
|
+
|
|
390
|
+
# Bitmask of performance domain flags.
|
|
391
|
+
#
|
|
392
|
+
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
393
|
+
# @rbs return: ::Integer
|
|
394
|
+
# @return [Integer]
|
|
395
|
+
# @see AttributeSets::PerfDomain::Flags
|
|
396
|
+
def flags: () -> ::Integer
|
|
397
|
+
|
|
398
|
+
# CPUs that belong to this performance domain.
|
|
399
|
+
# @rbs return: ::Array[::Integer]
|
|
400
|
+
# @return [Array<Integer>]
|
|
401
|
+
# @see AttributeSets::PerfDomain::Cpus
|
|
402
|
+
def cpus: () -> ::Array[::Integer]
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Get the list of information for all performance domains.
|
|
406
|
+
class DumpGetPerfDomainsRequest < ::Nl::Genl::Message
|
|
407
|
+
TYPE: ::Integer
|
|
408
|
+
|
|
409
|
+
FIXED_HEADER: untyped
|
|
410
|
+
|
|
411
|
+
ATTRIBUTE_SET: untyped
|
|
412
|
+
|
|
413
|
+
ATTRIBUTES: untyped
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# Get the list of information for all performance domains.
|
|
417
|
+
class DumpGetPerfDomainsReply < ::Nl::Genl::Message
|
|
418
|
+
TYPE: ::Integer
|
|
419
|
+
|
|
420
|
+
FIXED_HEADER: untyped
|
|
421
|
+
|
|
422
|
+
ATTRIBUTE_SET: untyped
|
|
423
|
+
|
|
424
|
+
ATTRIBUTES: untyped
|
|
425
|
+
|
|
426
|
+
# A unique ID number for each performance domain.
|
|
427
|
+
# @rbs return: ::Integer
|
|
428
|
+
# @return [Integer]
|
|
429
|
+
# @see AttributeSets::PerfDomain::PerfDomainId
|
|
430
|
+
def perf_domain_id: () -> ::Integer
|
|
431
|
+
|
|
432
|
+
# Bitmask of performance domain flags.
|
|
433
|
+
#
|
|
434
|
+
# Known flags are defined in {Flags::PerfDomainFlags}.
|
|
435
|
+
# @rbs return: ::Integer
|
|
436
|
+
# @return [Integer]
|
|
437
|
+
# @see AttributeSets::PerfDomain::Flags
|
|
438
|
+
def flags: () -> ::Integer
|
|
439
|
+
|
|
440
|
+
# CPUs that belong to this performance domain.
|
|
441
|
+
# @rbs return: ::Array[::Integer]
|
|
442
|
+
# @return [Array<Integer>]
|
|
443
|
+
# @see AttributeSets::PerfDomain::Cpus
|
|
444
|
+
def cpus: () -> ::Array[::Integer]
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Get the energy model table of a performance domain.
|
|
448
|
+
class DoGetPerfTableRequest < ::Nl::Genl::Message
|
|
449
|
+
TYPE: ::Integer
|
|
450
|
+
|
|
451
|
+
FIXED_HEADER: untyped
|
|
452
|
+
|
|
453
|
+
ATTRIBUTE_SET: untyped
|
|
454
|
+
|
|
455
|
+
ATTRIBUTES: untyped
|
|
456
|
+
|
|
457
|
+
# A unique ID number for each performance domain.
|
|
458
|
+
# @rbs return: ::Integer
|
|
459
|
+
# @return [Integer]
|
|
460
|
+
# @see AttributeSets::PerfTable::PerfDomainId
|
|
461
|
+
def perf_domain_id: () -> ::Integer
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Get the energy model table of a performance domain.
|
|
465
|
+
class DoGetPerfTableReply < ::Nl::Genl::Message
|
|
466
|
+
TYPE: ::Integer
|
|
467
|
+
|
|
468
|
+
FIXED_HEADER: untyped
|
|
469
|
+
|
|
470
|
+
ATTRIBUTE_SET: untyped
|
|
471
|
+
|
|
472
|
+
ATTRIBUTES: untyped
|
|
473
|
+
|
|
474
|
+
# A unique ID number for each performance domain.
|
|
475
|
+
# @rbs return: ::Integer
|
|
476
|
+
# @return [Integer]
|
|
477
|
+
# @see AttributeSets::PerfTable::PerfDomainId
|
|
478
|
+
def perf_domain_id: () -> ::Integer
|
|
479
|
+
|
|
480
|
+
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
481
|
+
# @return [Array<AttributeSets::PerfState>]
|
|
482
|
+
# @see AttributeSets::PerfTable::PerfState
|
|
483
|
+
def perf_state: () -> ::Array[AttributeSets::PerfState]
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
module Notifications
|
|
488
|
+
# A performance domain is created.
|
|
489
|
+
#
|
|
490
|
+
# Multicast group: `event`.
|
|
491
|
+
class PerfDomainCreated < ::Nl::Genl::Message
|
|
492
|
+
TYPE: ::Integer
|
|
493
|
+
|
|
494
|
+
FIXED_HEADER: untyped
|
|
495
|
+
|
|
496
|
+
ATTRIBUTE_SET: untyped
|
|
497
|
+
|
|
498
|
+
ATTRIBUTES: untyped
|
|
499
|
+
|
|
500
|
+
# A unique ID number for each performance domain.
|
|
501
|
+
# @rbs return: ::Integer
|
|
502
|
+
# @return [Integer]
|
|
503
|
+
# @see AttributeSets::PerfTable::PerfDomainId
|
|
504
|
+
def perf_domain_id: () -> ::Integer
|
|
505
|
+
|
|
506
|
+
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
507
|
+
# @return [Array<AttributeSets::PerfState>]
|
|
508
|
+
# @see AttributeSets::PerfTable::PerfState
|
|
509
|
+
def perf_state: () -> ::Array[AttributeSets::PerfState]
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# A performance domain is updated.
|
|
513
|
+
#
|
|
514
|
+
# Multicast group: `event`.
|
|
515
|
+
class PerfDomainUpdated < ::Nl::Genl::Message
|
|
516
|
+
TYPE: ::Integer
|
|
517
|
+
|
|
518
|
+
FIXED_HEADER: untyped
|
|
519
|
+
|
|
520
|
+
ATTRIBUTE_SET: untyped
|
|
521
|
+
|
|
522
|
+
ATTRIBUTES: untyped
|
|
523
|
+
|
|
524
|
+
# A unique ID number for each performance domain.
|
|
525
|
+
# @rbs return: ::Integer
|
|
526
|
+
# @return [Integer]
|
|
527
|
+
# @see AttributeSets::PerfTable::PerfDomainId
|
|
528
|
+
def perf_domain_id: () -> ::Integer
|
|
529
|
+
|
|
530
|
+
# @rbs return: ::Array[AttributeSets::PerfState]
|
|
531
|
+
# @return [Array<AttributeSets::PerfState>]
|
|
532
|
+
# @see AttributeSets::PerfTable::PerfState
|
|
533
|
+
def perf_state: () -> ::Array[AttributeSets::PerfState]
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# A performance domain is deleted.
|
|
537
|
+
#
|
|
538
|
+
# Multicast group: `event`.
|
|
539
|
+
class PerfDomainDeleted < ::Nl::Genl::Message
|
|
540
|
+
TYPE: ::Integer
|
|
541
|
+
|
|
542
|
+
FIXED_HEADER: untyped
|
|
543
|
+
|
|
544
|
+
ATTRIBUTE_SET: untyped
|
|
545
|
+
|
|
546
|
+
ATTRIBUTES: untyped
|
|
547
|
+
|
|
548
|
+
# A unique ID number for each performance domain.
|
|
549
|
+
# @rbs return: ::Integer
|
|
550
|
+
# @return [Integer]
|
|
551
|
+
# @see AttributeSets::PerfTable::PerfDomainId
|
|
552
|
+
def perf_domain_id: () -> ::Integer
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# @private
|
|
557
|
+
NOTIFICATIONS: Hash[::Integer, ::Class]
|
|
558
|
+
|
|
559
|
+
# Get the list of information for all performance domains.
|
|
560
|
+
# @rbs (?perf_domain_id: ::Integer) -> Messages::DoGetPerfDomainsReply
|
|
561
|
+
# @param [Hash] args
|
|
562
|
+
# @option args [Integer] perf_domain_id A unique ID number for each performance domain.
|
|
563
|
+
# @return [Messages::DoGetPerfDomainsReply]
|
|
564
|
+
# @see Messages::DoGetPerfDomainsRequest
|
|
565
|
+
def do_get_perf_domains: (?perf_domain_id: ::Integer) -> Messages::DoGetPerfDomainsReply
|
|
566
|
+
|
|
567
|
+
# Get the list of information for all performance domains.
|
|
568
|
+
# @rbs () -> Array[Messages::DumpGetPerfDomainsReply]
|
|
569
|
+
# | () { (Messages::DumpGetPerfDomainsReply) -> void } -> void
|
|
570
|
+
# @overload dump_get_perf_domains(**args)
|
|
571
|
+
# Returns an array when no block is given.
|
|
572
|
+
# @param [Hash] args
|
|
573
|
+
# @return [Array<Messages::DumpGetPerfDomainsReply>]
|
|
574
|
+
# @overload dump_get_perf_domains(**args, &block)
|
|
575
|
+
# Yields each reply when a block is given.
|
|
576
|
+
# @param [Hash] args
|
|
577
|
+
# @yieldparam [Messages::DumpGetPerfDomainsReply] reply
|
|
578
|
+
# @return [void]
|
|
579
|
+
# @see Messages::DumpGetPerfDomainsRequest
|
|
580
|
+
def dump_get_perf_domains: () -> Array[Messages::DumpGetPerfDomainsReply]
|
|
581
|
+
| () { (Messages::DumpGetPerfDomainsReply) -> void } -> void
|
|
582
|
+
|
|
583
|
+
# Get the energy model table of a performance domain.
|
|
584
|
+
# @rbs (?perf_domain_id: ::Integer) -> Messages::DoGetPerfTableReply
|
|
585
|
+
# @param [Hash] args
|
|
586
|
+
# @option args [Integer] perf_domain_id A unique ID number for each performance domain.
|
|
587
|
+
# @return [Messages::DoGetPerfTableReply]
|
|
588
|
+
# @see Messages::DoGetPerfTableRequest
|
|
589
|
+
def do_get_perf_table: (?perf_domain_id: ::Integer) -> Messages::DoGetPerfTableReply
|
|
590
|
+
|
|
591
|
+
class AsyncOperations
|
|
592
|
+
# @private
|
|
593
|
+
def initialize: () ?{ (?) -> untyped } -> untyped
|
|
594
|
+
|
|
595
|
+
# Get the list of information for all performance domains.
|
|
596
|
+
# @rbs (?perf_domain_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetPerfDomainsReply]
|
|
597
|
+
# @param [Hash] args
|
|
598
|
+
# @option args [Integer] perf_domain_id A unique ID number for each performance domain.
|
|
599
|
+
# @return [Nl::Async::Future<Messages::DoGetPerfDomainsReply>]
|
|
600
|
+
# @see Messages::DoGetPerfDomainsRequest
|
|
601
|
+
def do_get_perf_domains: (?perf_domain_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetPerfDomainsReply]
|
|
602
|
+
|
|
603
|
+
# Get the list of information for all performance domains.
|
|
604
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpGetPerfDomainsReply]
|
|
605
|
+
# @param [Hash] args
|
|
606
|
+
# @return [Nl::Async::Stream<Messages::DumpGetPerfDomainsReply>]
|
|
607
|
+
# @see Messages::DumpGetPerfDomainsRequest
|
|
608
|
+
def dump_get_perf_domains: () -> ::Nl::Async::Stream[Messages::DumpGetPerfDomainsReply]
|
|
609
|
+
|
|
610
|
+
# Get the energy model table of a performance domain.
|
|
611
|
+
# @rbs (?perf_domain_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetPerfTableReply]
|
|
612
|
+
# @param [Hash] args
|
|
613
|
+
# @option args [Integer] perf_domain_id A unique ID number for each performance domain.
|
|
614
|
+
# @return [Nl::Async::Future<Messages::DoGetPerfTableReply>]
|
|
615
|
+
# @see Messages::DoGetPerfTableRequest
|
|
616
|
+
def do_get_perf_table: (?perf_domain_id: ::Integer) -> ::Nl::Async::Future[Messages::DoGetPerfTableReply]
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Returns the asynchronous operation facade for this family.
|
|
620
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
621
|
+
# @param [::Integer, nil] stream_capacity
|
|
622
|
+
# @return [AsyncOperations]
|
|
623
|
+
def async: (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
624
|
+
|
|
625
|
+
# @rbs (*(:event) groups) -> self
|
|
626
|
+
# @param [Array<:event>] groups
|
|
627
|
+
# @return [self]
|
|
628
|
+
def subscribe: (*:event groups) -> self
|
|
629
|
+
|
|
630
|
+
# @rbs (*(:event) groups) -> self
|
|
631
|
+
# @param [Array<:event>] groups
|
|
632
|
+
# @return [self]
|
|
633
|
+
def unsubscribe: (*:event groups) -> self
|
|
634
|
+
end
|
|
635
|
+
end
|
|
636
|
+
end
|