Lines Matching +full:attribute +full:- +full:sets
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
70 description: For C-compatible languages, header which already defines this value.
78 description: For const - the value.
81 value-start:
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
123 description: The netlink attribute type
126 $ref: '#/$defs/len-or-define'
127 byte-order:
128 enum: [ little-endian, big-endian ]
130 description: Documentation for the struct member attribute.
133 description: Name of the enum type used for the attribute.
135 enum-as-flags:
141 display-hint: &display-hint
147 # End genetlink-legacy
149 attribute-sets:
150 description: Definition of attribute spaces for this family.
153 description: Definition of a single attribute space.
162 name-prefix:
164 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
166 enum-name:
167 description: Name for the enum type of the attribute.
172 subset-of:
174 Name of another space which this is a logical part of. Sub-spaces can be used to define
177 # Start genetlink-c
178 attr-cnt-name:
181 attr-max-name:
182 description: The explicit name for last member of attribute enum.
184 # End genetlink-c
195 type: &attr-type
196 description: The netlink attribute type
198 string, nest, array-nest, nest-type-value ]
200 description: Documentation of the attribute.
203 description: Value for the enum item representing this attribute in the uAPI.
205 type-value:
206 … description: Name of the value extracted from the type of a nest-type-value attribute.
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.
218 description: Name of the enum type used for the attribute.
220 enum-as-flags:
231 flags-mask:
235 description: Min value for an integer attribute.
237 min-len:
238 description: Min length for a binary attribute.
239 $ref: '#/$defs/len-or-define'
240 max-len:
241 description: Max length for a string or a binary attribute.
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
251 description: Name of the struct type used for the attribute.
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
317 attribute-set:
319 Attribute space from which attributes directly in the requests and replies
326 enum: [ admin-perm ]
327 dont-validate:
328 description: Kernel attribute validation flags.
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
352 # Start genetlink-legacy
358 # End genetlink-legacy
359 reply: *subop-attr-list
366 dump: *subop-type
382 mcast-groups:
400 # Start genetlink-c
401 c-define-name:
404 # End genetlink-c
406 # Start netlink-raw
410 # End netlink-raw