Lines Matching +full:per +full:- +full:string
1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
18 type: [ string, integer ]
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
31 type: string
33 type: string
36 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
37 uapi-header:
38 description: Path to the uAPI header, default is linux/${family-name}.h
39 type: string
40 # Start genetlink-c
41 c-family-name:
43 type: string
44 c-version-name:
46 type: string
47 max-by-define:
50 cmd-max-name:
52 type: string
53 cmd-cnt-name:
55 type: string
56 # End genetlink-c
57 # Start genetlink-legacy
58 kernel-policy:
60 … Defines if the input policy in the kernel is global, per-operation, or split per operation type.
62 enum: [ split, per-op, global ]
67 # End genetlink-legacy
78 type: string
80 description: For C-compatible languages, header which already defines this value.
81 type: string
85 type: string
88 description: For const - the value.
89 type: [ string, integer ]
91 value-start:
93 type: [ string, integer ]
99 - type: string
100 - type: object
105 type: string
109 type: string
110 render-max:
113 # Start genetlink-c
114 enum-name:
116 type: [ string, "null" ]
117 name-prefix:
119 type: string
120 # End genetlink-c
121 # Start genetlink-legacy
131 type: string
134 enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary ]
136 $ref: '#/$defs/len-or-define'
137 byte-order:
138 enum: [ little-endian, big-endian ]
141 type: string
144 type: string
145 display-hint: &display-hint
151 # End genetlink-legacy
153 attribute-sets:
165 type: string
166 name-prefix:
168 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
169 type: string
170 enum-name:
172 type: string
175 type: string
176 subset-of:
178 Name of another space which this is a logical part of. Sub-spaces can be used to define
180 type: string
181 # Start genetlink-c
182 attr-cnt-name:
184 type: string
185 attr-max-name:
187 type: string
188 # End genetlink-c
198 type: string
199 type: &attr-type
203 string, nest, array-nest, nest-type-value ]
206 type: string
210 type-value:
211 … description: Name of the value extracted from the type of a nest-type-value attribute.
214 type: string
215 byte-order:
216 enum: [ little-endian, big-endian ]
217 multi-attr:
219 nested-attributes:
220 description: Name of the space (sub-space) used inside the attribute.
221 type: string
224 type: string
225 enum-as-flags:
236 flags-mask:
238 type: string
241 $ref: '#/$defs/len-or-limit'
244 $ref: '#/$defs/len-or-limit'
245 min-len:
247 $ref: '#/$defs/len-or-define'
248 max-len:
249 description: Max length for a string or a binary attribute.
250 $ref: '#/$defs/len-or-define'
251 exact-len:
252 description: Exact length for a string or a binary attribute.
253 $ref: '#/$defs/len-or-define'
254 sub-type: *attr-type
255 display-hint: *display-hint
256 # Start genetlink-c
257 name-prefix:
258 type: string
259 # End genetlink-c
260 # Start genetlink-legacy
263 type: string
264 # End genetlink-legacy
266 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
268 name-prefix:
270 required: [ subset-of ]
271 subset-of:
273 required: [ name-prefix ]
278 subset-of:
280 type: string
293 enum-model:
301 name-prefix:
305 type: string
306 enum-name:
308 type: string
309 async-prefix:
310 … description: Same as name-prefix but used to render notifications and events to separate enum.
311 type: string
312 async-enum:
314 type: string
315 # Start genetlink-legacy
316 fixed-header: &fixed-header
318 Name of the structure defining the optional fixed-length protocol
321 type: string
322 # End genetlink-legacy
333 type: string
336 type: string
340 attribute-set:
344 type: string
349 enum: [ admin-perm, uns-admin-perm ]
350 dont-validate:
354 enum: [ strict, dump, dump-strict ]
355 config-cond:
359 type: string
360 # Start genetlink-legacy
361 fixed-header: *fixed-header
362 # End genetlink-legacy
363 do: &subop-type
368 request: &subop-attr-list
375 Names of attributes from the attribute-set (not full attribute
379 type: string
380 # Start genetlink-legacy
386 # End genetlink-legacy
387 reply: *subop-attr-list
390 type: string
393 type: string
394 dump: *subop-type
397 type: string
406 type: string
409 type: string
410 mcast-groups:
427 type: string
428 # Start genetlink-c
429 c-define-name:
431 type: string
432 # End genetlink-c