Lines Matching +full:attr +full:- +full:max +full:- +full:name
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)?$
16 len-or-limit:
17 # literal int, const name, or limit based on fixed-width type
18 # e.g. u8-min, u16-max, etc.
20 pattern: ^[0-9A-Za-z_-]+$
27 required: [ name, doc, attribute-sets, operations ]
30 name:
31 description: Name of the genetlink family.
38 uapi-header:
39 description: Path to the uAPI header, default is linux/${family-name}.h
47 required: [ type, name ]
50 name:
53 description: For C-compatible languages, header which already defines this value.
61 description: For const - the value.
64 value-start:
72 - type: string
73 - type: object
74 required: [ name ]
77 name:
83 render-max:
84 description: Render the max members for this enum.
87 attribute-sets:
93 required: [ name, attributes ]
96 name:
98 … Name used when referring to this space in other definitions, not used outside of the spec.
100 name-prefix:
102 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
104 enum-name:
105 description: Name for the enum type of the attribute.
110 subset-of:
112 Name of another space which this is a logical part of. Sub-spaces can be used to define
120 required: [ name ]
123 name:
125 type: &attr-type
128 string, nest, indexed-array, nest-type-value ]
135 type-value:
136 … description: Name of the value extracted from the type of a nest-type-value attribute.
140 byte-order:
141 enum: [ little-endian, big-endian ]
142 multi-attr:
144 nested-attributes:
145 description: Name of the space (sub-space) used inside the attribute.
148 description: Name of the enum type used for the attribute.
150 enum-as-flags:
161 flags-mask:
162 … description: Name of the flags constant on which to base mask (unsigned scalar types only).
166 $ref: '#/$defs/len-or-limit'
167 max:
168 description: Max value for an integer attribute.
169 $ref: '#/$defs/len-or-limit'
170 min-len:
172 $ref: '#/$defs/len-or-define'
173 max-len:
174 description: Max length for a string or a binary attribute.
175 $ref: '#/$defs/len-or-define'
176 exact-len:
178 $ref: '#/$defs/len-or-define'
179 sub-type: *attr-type
180 display-hint: &display-hint
187 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
189 name-prefix:
191 required: [ subset-of ]
192 subset-of:
194 required: [ name-prefix ]
199 subset-of:
214 enum-model:
222 name-prefix:
224 Prefix for the C enum name of the command. The name is formed by concatenating
225 the prefix with the upper case name of the command, with dashes replaced by underscores.
227 enum-name:
228 description: Name for the enum type with commands.
230 async-prefix:
231 … description: Same as name-prefix but used to render notifications and events to separate enum.
233 async-enum:
234 description: Name for the enum type with notifications/events.
242 required: [ name, doc ]
244 name:
245 description: Name of the operation, also defining its C enum value in uAPI.
253 attribute-set:
262 enum: [ admin-perm ]
263 dont-validate:
267 enum: [ strict, dump, dump-strict ]
268 config-cond:
270 Name of the kernel config option gating the presence of
273 do: &subop-type
278 request: &subop-attr-list
285 Names of attributes from the attribute-set (not full attribute
290 reply: *subop-attr-list
297 dump: *subop-type
299 description: Name of the command sharing the reply type with this notification.
311 description: Name of the multicast group generating given notification.
313 mcast-groups:
324 required: [ name ]
327 name:
329 The name for the group, used to form the define and the value of the define.
333 kernel-family:
345 sock-priv:
347 Literal name of the type which is used within the kernel