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-c.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 ]
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
62 description: For C-compatible languages, header which already defines this value.
70 description: For const - the value.
73 value-start:
81 - type: string
82 - type: object
92 render-max:
95 # Start genetlink-c
96 enum-name:
99 name-prefix:
102 # End genetlink-c
104 attribute-sets:
117 name-prefix:
119 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
121 enum-name:
127 subset-of:
129 Name of another space which this is a logical part of. Sub-spaces can be used to define
132 # Start genetlink-c
133 attr-cnt-name:
134 … description: The explicit name for constant holding the count of attributes (last attr + 1).
136 attr-max-name:
139 # End genetlink-c
150 type: &attr-type
152 string, nest, array-nest, nest-type-value ]
159 type-value:
160 … description: Name of the value extracted from the type of a nest-type-value attribute.
164 byte-order:
165 enum: [ little-endian, big-endian ]
166 multi-attr:
168 nested-attributes:
169 description: Name of the space (sub-space) used inside the attribute.
174 enum-as-flags:
185 flags-mask:
191 min-len:
193 $ref: '#/$defs/len-or-define'
194 max-len:
196 $ref: '#/$defs/len-or-define'
197 sub-type: *attr-type
198 display-hint: &display-hint
204 # Start genetlink-c
205 name-prefix:
207 # End genetlink-c
209 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
211 name-prefix:
213 required: [ subset-of ]
214 subset-of:
216 required: [ name-prefix ]
224 enum-model:
232 name-prefix:
237 enum-name:
240 async-prefix:
241 … description: Same as name-prefix but used to render notifications and events to separate enum.
243 async-enum:
263 attribute-set:
272 enum: [ admin-perm ]
273 dont-validate:
277 enum: [ strict, dump, dump-strict ]
278 do: &subop-type
283 request: &subop-attr-list
290 Names of attributes from the attribute-set (not full attribute
295 reply: *subop-attr-list
302 dump: *subop-type
318 mcast-groups:
336 # Start genetlink-c
337 c-define-name:
340 # End genetlink-c