Lines Matching +full:max +full:- +full:by +full:- +full:define

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)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
36 enum: [ genetlink, genetlink-c ]
37 uapi-header:
38 description: Path to the uAPI header, default is linux/${family-name}.h
40 # Start genetlink-c
41 c-family-name:
42 description: Name of the define for the family name.
44 c-version-name:
45 description: Name of the define for the version of the family.
47 max-by-define:
48 …description: Makes the number of attributes and commands be specified by a define, not an enum val…
50 cmd-max-name:
51 description: Name of the define for the last operation in the list.
53 cmd-cnt-name:
56 # End genetlink-c
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:
100 description: Render the max members for this enum.
102 # Start genetlink-c
103 enum-name:
106 name-prefix:
109 enum-cnt-name:
110 description: Name of the render-max counter enum entry.
112 # End genetlink-c
114 attribute-sets:
127 name-prefix:
129 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
131 enum-name:
138 subset-of:
140 Name of another space which this is a logical part of. Sub-spaces can be used to define
143 # Start genetlink-c
144 attr-cnt-name:
147 attr-max-name:
150 # End genetlink-c
161 type: &attr-type
164 string, nest, indexed-array, nest-type-value ]
171 type-value:
172 … description: Name of the value extracted from the type of a nest-type-value attribute.
176 byte-order:
177 enum: [ little-endian, big-endian ]
178 multi-attr:
180 nested-attributes:
181 description: Name of the space (sub-space) used inside the attribute.
186 enum-as-flags:
197 flags-mask:
202 $ref: '#/$defs/len-or-limit'
203 max:
204 description: Max value for an integer attribute.
205 $ref: '#/$defs/len-or-limit'
206 min-len:
208 $ref: '#/$defs/len-or-define'
209 max-len:
210 description: Max length for a string or a binary attribute.
211 $ref: '#/$defs/len-or-define'
212 exact-len:
214 $ref: '#/$defs/len-or-define'
215 unterminated-ok:
220 sub-type: *attr-type
221 display-hint: &display-hint
227 # Start genetlink-c
228 name-prefix:
230 # End genetlink-c
232 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
234 name-prefix:
236 required: [ subset-of ]
237 subset-of:
239 required: [ name-prefix ]
244 subset-of:
254 description: Operations supported by the protocol.
259 enum-model:
267 name-prefix:
269 Prefix for the C enum name of the command. The name is formed by concatenating
270 the prefix with the upper case name of the command, with dashes replaced by underscores.
272 enum-name:
276 async-prefix:
277 … description: Same as name-prefix but used to render notifications and events to separate enum.
279 async-enum:
300 attribute-set:
309 enum: [ admin-perm ]
310 dont-validate:
314 enum: [ strict, dump, dump-strict ]
315 config-cond:
320 do: &subop-type
325 request: &subop-attr-list
332 Names of attributes from the attribute-set (not full attribute
337 reply: *subop-attr-list
344 dump: *subop-type
360 mcast-groups:
376 The name for the group, used to form the define and the value of the define.
378 # Start genetlink-c
379 c-define-name:
380 description: Override for the name of the define in C uAPI.
382 # End genetlink-c
385 kernel-family:
397 sock-priv: