Lines Matching +full:string +full:- +full:array +full:- +full:property

1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
10 type: string
11 pattern: ^[0-9a-z-]+$
12 name-cap:
13 type: string
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
19 type: [ string, integer ]
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
27 required: [ name, doc, attribute-sets, operations ]
32 type: string
34 type: string
37 enum: [ netlink-raw ] # Trim
38 # Start netlink-raw
40 description: Protocol number to use for netlink-raw
42 # End netlink-raw
43 uapi-header:
44 description: Path to the uAPI header, default is linux/${family-name}.h
45 type: string
46 # Start genetlink-c
47 c-family-name:
49 type: string
50 c-version-name:
52 type: string
53 max-by-define:
56 cmd-max-name:
58 type: string
59 cmd-cnt-name:
61 type: string
62 # End genetlink-c
63 # Start genetlink-legacy
64 kernel-policy:
66 … Defines if the input policy in the kernel is global, per-operation, or split per operation type.
68 enum: [ split, per-op, global ]
69 # End genetlink-legacy
73 type: array
82 description: For C-compatible languages, header which already defines this value.
83 type: string
87 type: string
90 description: For const - the value.
91 type: [ string, integer ]
93 value-start:
95 type: [ string, integer ]
97 description: For enum or flags array of values.
98 type: array
101 - type: string
102 - type: object
111 type: string
112 render-max:
115 # Start genetlink-c
116 enum-name:
118 type: [ string, "null" ]
119 name-prefix:
121 type: string
122 # End genetlink-c
123 # Start genetlink-legacy
126 type: array
133 $ref: '#/$defs/name-cap'
137 must also have the 'len' property set.
138 enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary, pad ]
140 $ref: '#/$defs/len-or-define'
141 byte-order:
142 enum: [ little-endian, big-endian ]
145 type: string
148 type: string
149 enum-as-flags:
155 display-hint: &display-hint
163 type: string
176 - required: [ len ]
177 - required: [ struct ]
178 # End genetlink-legacy
180 attribute-sets:
182 type: array
193 name-prefix:
195 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
196 type: string
197 enum-name:
200 type: [ string, "null" ]
203 type: string
204 subset-of:
206 Name of another space which this is a logical part of. Sub-spaces can be used to define
208 type: string
209 # Start genetlink-c
210 attr-cnt-name:
212 type: string
213 attr-max-name:
215 type: string
217 description: For C-compatible languages, header which already defines this attribute set.
218 type: string
219 # End genetlink-c
222 type: array
230 type: &attr-type
234 string, nest, indexed-array, nest-type-value,
235 sub-message ]
238 type: string
242 type-value:
243 … description: Name of the value extracted from the type of a nest-type-value attribute.
244 type: array
246 type: string
247 byte-order:
248 enum: [ little-endian, big-endian ]
249 multi-attr:
251 nested-attributes:
252 description: Name of the space (sub-space) used inside the attribute.
253 type: string
256 type: string
257 enum-as-flags:
268 flags-mask:
270 type: string
274 min-len:
276 $ref: '#/$defs/len-or-define'
277 max-len:
278 description: Max length for a string or a binary attribute.
279 $ref: '#/$defs/len-or-define'
280 exact-len:
281 description: Exact length for a string or a binary attribute.
282 $ref: '#/$defs/len-or-define'
283 unterminated-ok:
285 For string attributes, do not check whether attribute
288 sub-type: *attr-type
289 display-hint: *display-hint
290 # Start genetlink-c
291 name-prefix:
292 type: string
293 # End genetlink-c
294 # Start genetlink-legacy
297 type: string
298 # End genetlink-legacy
299 # Start netlink-raw
300 sub-message:
302 Name of the sub-message definition to use for the attribute.
303 type: string
306 Name of the attribute to use for dynamic selection of sub-message
308 type: string
309 # End netlink-raw
311 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
313 name-prefix:
315 required: [ subset-of ]
316 subset-of:
318 required: [ name-prefix ]
320 # type property is only required if not in subset definition
323 subset-of:
325 type: string
332 # Start netlink-raw
333 sub-messages:
335 type: array
342 description: Name of the sub-message definition
343 type: string
346 type: array
354 Value to match for dynamic selection of sub-message format
356 type: string
357 fixed-header:
361 type: string
362 attribute-set:
366 type: string
367 # End netlink-raw
375 enum-model:
383 name-prefix:
387 type: string
388 enum-name:
391 type: [ string, "null" ]
392 async-prefix:
393 … description: Same as name-prefix but used to render notifications and events to separate enum.
394 type: string
395 async-enum:
398 type: [ string, "null" ]
399 # Start genetlink-legacy
400 fixed-header: &fixed-header
402 Name of the structure defining the optional fixed-length protocol
405 type: string
406 # End genetlink-legacy
409 type: array
420 type: string
424 attribute-set:
428 type: string
431 type: array
433 enum: [ admin-perm ]
434 dont-validate:
436 type: array
439 # Start genetlink-legacy
440 fixed-header: *fixed-header
441 # End genetlink-legacy
442 do: &subop-type
447 request: &subop-attr-list
454 Names of attributes from the attribute-set (not full attribute
456 type: array
458 type: string
459 # Start genetlink-legacy
465 # End genetlink-legacy
466 reply: *subop-attr-list
469 type: string
472 type: string
473 dump: *subop-type
476 type: string
483 type: array
485 type: string
488 type: string
489 mcast-groups:
497 type: array
506 type: string
507 # Start genetlink-c
508 c-define-name:
510 type: string
511 # End genetlink-c
513 # Start netlink-raw
517 # End netlink-raw