Lines Matching +full:array +full:- +full:nest
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:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
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
40 # Start genetlink-c
41 c-family-name:
44 c-version-name:
47 max-by-define:
50 # End genetlink-c
51 # Start genetlink-legacy
52 kernel-policy:
54 … Defines if the input policy in the kernel is global, per-operation, or split per operation type.
56 enum: [ split, per-op, global ]
57 # End genetlink-legacy
61 type: array
70 description: For C-compatible languages, header which already defines this value.
78 description: For const - the value.
81 value-start:
85 description: For enum or flags array of values.
86 type: array
89 - type: string
90 - type: object
100 render-max:
103 # Start genetlink-c
104 enum-name:
107 name-prefix:
110 # End genetlink-c
111 # Start genetlink-legacy
114 type: array
126 $ref: '#/$defs/len-or-define'
127 byte-order:
128 enum: [ little-endian, big-endian ]
135 enum-as-flags:
141 display-hint: &display-hint
147 # End genetlink-legacy
149 attribute-sets:
151 type: array
162 name-prefix:
164 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
166 enum-name:
172 subset-of:
174 Name of another space which this is a logical part of. Sub-spaces can be used to define
175 a limited group of attributes which are used in a nest.
177 # Start genetlink-c
178 attr-cnt-name:
181 attr-max-name:
184 # End genetlink-c
187 type: array
195 type: &attr-type
198 string, nest, array-nest, nest-type-value ]
205 type-value:
206 … description: Name of the value extracted from the type of a nest-type-value attribute.
207 type: array
210 byte-order:
211 enum: [ little-endian, big-endian ]
212 multi-attr:
214 nested-attributes:
215 description: Name of the space (sub-space) used inside the attribute.
220 enum-as-flags:
231 flags-mask:
237 min-len:
239 $ref: '#/$defs/len-or-define'
240 max-len:
242 $ref: '#/$defs/len-or-define'
243 sub-type: *attr-type
244 display-hint: *display-hint
245 # Start genetlink-c
246 name-prefix:
248 # End genetlink-c
249 # Start genetlink-legacy
253 # End genetlink-legacy
255 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
257 name-prefix:
259 required: [ subset-of ]
260 subset-of:
262 required: [ name-prefix ]
270 enum-model:
278 name-prefix:
283 enum-name:
286 async-prefix:
287 … description: Same as name-prefix but used to render notifications and events to separate enum.
289 async-enum:
292 # Start genetlink-legacy
293 fixed-header: &fixed-header
295 Name of the structure defining the optional fixed-length protocol
299 # End genetlink-legacy
302 type: array
317 attribute-set:
324 type: array
326 enum: [ admin-perm ]
327 dont-validate:
329 type: array
332 # Start genetlink-legacy
333 fixed-header: *fixed-header
334 # End genetlink-legacy
335 do: &subop-type
340 request: &subop-attr-list
347 Names of attributes from the attribute-set (not full attribute
349 type: array
352 # Start genetlink-legacy
358 # End genetlink-legacy
359 reply: *subop-attr-list
366 dump: *subop-type
376 type: array
382 mcast-groups:
390 type: array
400 # Start genetlink-c
401 c-define-name:
404 # End genetlink-c
406 # Start netlink-raw
410 # End netlink-raw