Lines Matching +full:multi +full:- +full:attr

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:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
36 uapi-header:
37 description: Path to the uAPI header, default is linux/${family-name}.h
39 # Start genetlink-c
40 c-family-name:
43 c-version-name:
46 max-by-define:
49 # End genetlink-c
50 # Start genetlink-legacy
51 kernel-policy:
53 … Defines if the input policy in the kernel is global, per-operation, or split per operation type.
55 enum: [ split, per-op, global ]
56 # End genetlink-legacy
69 description: For C-compatible languages, header which already defines this value.
77 description: For const - the value.
80 value-start:
88 - type: string
89 - type: object
99 render-max:
102 # Start genetlink-c
103 enum-name:
106 name-prefix:
109 # End genetlink-c
110 # Start genetlink-legacy
125 $ref: '#/$defs/len-or-define'
126 byte-order:
127 enum: [ little-endian, big-endian ]
134 display-hint: &display-hint
140 # End genetlink-legacy
142 attribute-sets:
155 name-prefix:
157 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
159 enum-name:
165 subset-of:
167 Name of another space which this is a logical part of. Sub-spaces can be used to define
170 # Start genetlink-c
171 attr-cnt-name:
172 … description: The explicit name for constant holding the count of attributes (last attr + 1).
174 attr-max-name:
177 # End genetlink-c
188 type: &attr-type
191 string, nest, array-nest, nest-type-value ]
198 type-value:
199 … description: Name of the value extracted from the type of a nest-type-value attribute.
203 byte-order:
204 enum: [ little-endian, big-endian ]
205 multi-attr:
207 nested-attributes:
208 description: Name of the space (sub-space) used inside the attribute.
213 enum-as-flags:
224 flags-mask:
230 min-len:
232 $ref: '#/$defs/len-or-define'
233 max-len:
235 $ref: '#/$defs/len-or-define'
236 sub-type: *attr-type
237 display-hint: *display-hint
238 # Start genetlink-c
239 name-prefix:
241 # End genetlink-c
242 # Start genetlink-legacy
246 # End genetlink-legacy
248 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
250 name-prefix:
252 required: [ subset-of ]
253 subset-of:
255 required: [ name-prefix ]
263 enum-model:
271 name-prefix:
276 enum-name:
279 async-prefix:
280 … description: Same as name-prefix but used to render notifications and events to separate enum.
282 async-enum:
285 # Start genetlink-legacy
286 fixed-header: &fixed-header
288 Name of the structure defining the optional fixed-length protocol
292 # End genetlink-legacy
310 attribute-set:
319 enum: [ admin-perm ]
320 dont-validate:
324 enum: [ strict, dump, dump-strict ]
325 # Start genetlink-legacy
326 fixed-header: *fixed-header
327 # End genetlink-legacy
328 do: &subop-type
333 request: &subop-attr-list
340 Names of attributes from the attribute-set (not full attribute
345 # Start genetlink-legacy
351 # End genetlink-legacy
352 reply: *subop-attr-list
359 dump: *subop-type
375 mcast-groups:
393 # Start genetlink-c
394 c-define-name:
397 # End genetlink-c