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
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
26 type: string
28 type: string
31 enum: [ netlink-raw ] # Trim
32 # Start netlink-raw
34 description: Protocol number to use for netlink-raw
36 # End netlink-raw
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 ]
63 # End genetlink-legacy
67 type: array
74 type: string
76 description: For C-compatible languages, header which already defines this value.
77 type: string
81 type: string
84 description: For const - the value.
85 type: [ string, integer ]
87 value-start:
89 type: [ string, integer ]
91 description: For enum or flags array of values.
92 type: array
95 - type: string
96 - type: object
101 type: string
105 type: string
106 render-max:
109 # Start genetlink-c
110 enum-name:
112 type: [ string, "null" ]
113 name-prefix:
115 type: string
116 # End genetlink-c
117 # Start genetlink-legacy
120 type: array
127 type: string
131 must also have the 'len' property set.
132 enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary, pad ]
134 $ref: '#/$defs/len-or-define'
135 byte-order:
136 enum: [ little-endian, big-endian ]
139 type: string
142 type: string
143 enum-as-flags:
149 display-hint: &display-hint
157 type: string
170 - required: [ len ]
171 - required: [ struct ]
172 # End genetlink-legacy
174 attribute-sets:
176 type: array
186 type: string
187 name-prefix:
189 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
190 type: string
191 enum-name:
194 type: [ string, "null" ]
197 type: string
198 subset-of:
200 Name of another space which this is a logical part of. Sub-spaces can be used to define
202 type: string
203 # Start genetlink-c
204 attr-cnt-name:
206 type: string
207 attr-max-name:
209 type: string
210 # End genetlink-c
213 type: array
220 type: string
221 type: &attr-type
225 string, nest, indexed-array, nest-type-value,
226 sub-message ]
229 type: string
233 type-value:
234 … description: Name of the value extracted from the type of a nest-type-value attribute.
235 type: array
237 type: string
238 byte-order:
239 enum: [ little-endian, big-endian ]
240 multi-attr:
242 nested-attributes:
243 description: Name of the space (sub-space) used inside the attribute.
244 type: string
247 type: string
248 enum-as-flags:
259 flags-mask:
261 type: string
265 min-len:
267 $ref: '#/$defs/len-or-define'
268 max-len:
269 description: Max length for a string or a binary attribute.
270 $ref: '#/$defs/len-or-define'
271 exact-len:
272 description: Exact length for a string or a binary attribute.
273 $ref: '#/$defs/len-or-define'
274 unterminated-ok:
276 For string attributes, do not check whether attribute
279 sub-type: *attr-type
280 display-hint: *display-hint
281 # Start genetlink-c
282 name-prefix:
283 type: string
284 # End genetlink-c
285 # Start genetlink-legacy
288 type: string
289 # End genetlink-legacy
290 # Start netlink-raw
291 sub-message:
293 Name of the sub-message definition to use for the attribute.
294 type: string
297 Name of the attribute to use for dynamic selection of sub-message
299 type: string
300 # End netlink-raw
302 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
304 name-prefix:
306 required: [ subset-of ]
307 subset-of:
309 required: [ name-prefix ]
311 # type property is only required if not in subset definition
314 subset-of:
316 type: string
323 # Start netlink-raw
324 sub-messages:
326 type: array
333 description: Name of the sub-message definition
334 type: string
337 type: array
345 Value to match for dynamic selection of sub-message format
347 type: string
348 fixed-header:
352 type: string
353 attribute-set:
357 type: string
358 # End netlink-raw
366 enum-model:
374 name-prefix:
378 type: string
379 enum-name:
382 type: [ string, "null" ]
383 async-prefix:
384 … description: Same as name-prefix but used to render notifications and events to separate enum.
385 type: string
386 async-enum:
389 type: [ string, "null" ]
390 # Start genetlink-legacy
391 fixed-header: &fixed-header
393 Name of the structure defining the optional fixed-length protocol
396 type: string
397 # End genetlink-legacy
400 type: array
408 type: string
411 type: string
415 attribute-set:
419 type: string
422 type: array
424 enum: [ admin-perm ]
425 dont-validate:
427 type: array
430 # Start genetlink-legacy
431 fixed-header: *fixed-header
432 # End genetlink-legacy
433 do: &subop-type
438 request: &subop-attr-list
445 Names of attributes from the attribute-set (not full attribute
447 type: array
449 type: string
450 # Start genetlink-legacy
456 # End genetlink-legacy
457 reply: *subop-attr-list
460 type: string
463 type: string
464 dump: *subop-type
467 type: string
474 type: array
476 type: string
479 type: string
480 mcast-groups:
488 type: array
497 type: string
498 # Start genetlink-c
499 c-define-name:
501 type: string
502 # End genetlink-c
504 # Start netlink-raw
508 # End netlink-raw