Lines Matching +full:per +full:- +full:string

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:
13 type: [ string, integer ]
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.
18 type: [ string, integer ]
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
31 type: string
33 type: string
36 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
37 uapi-header:
38 description: Path to the uAPI header, default is linux/${family-name}.h
39 type: string
40 # Start genetlink-c
41 c-family-name:
43 type: string
44 c-version-name:
46 type: string
47 max-by-define:
50 cmd-max-name:
52 type: string
53 cmd-cnt-name:
55 type: string
56 # End genetlink-c
57 # Start genetlink-legacy
58 kernel-policy:
60 … Defines if the input policy in the kernel is global, per-operation, or split per operation type.
62 enum: [ split, per-op, global ]
67 # End genetlink-legacy
78 type: string
80 description: For C-compatible languages, header which already defines this value.
81 type: string
85 type: string
88 description: For const - the value.
89 type: [ string, integer ]
91 value-start:
93 type: [ string, integer ]
99 - type: string
100 - type: object
105 type: string
109 type: string
110 render-max:
113 # Start genetlink-c
114 enum-name:
116 type: [ string, "null" ]
117 name-prefix:
119 type: string
120 # End genetlink-c
121 # Start genetlink-legacy
131 type: string
134 enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary ]
136 $ref: '#/$defs/len-or-define'
137 byte-order:
138 enum: [ little-endian, big-endian ]
141 type: string
144 type: string
145 display-hint: &display-hint
151 # End genetlink-legacy
153 attribute-sets:
165 type: string
166 name-prefix:
168 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
169 type: string
170 enum-name:
173 type: [ string, "null" ]
176 type: string
177 subset-of:
179 Name of another space which this is a logical part of. Sub-spaces can be used to define
181 type: string
182 # Start genetlink-c
183 attr-cnt-name:
185 type: string
186 attr-max-name:
188 type: string
189 # End genetlink-c
199 type: string
200 type: &attr-type
204 string, nest, indexed-array, nest-type-value ]
207 type: string
211 type-value:
212 … description: Name of the value extracted from the type of a nest-type-value attribute.
215 type: string
216 byte-order:
217 enum: [ little-endian, big-endian ]
218 multi-attr:
220 nested-attributes:
221 description: Name of the space (sub-space) used inside the attribute.
222 type: string
225 type: string
226 enum-as-flags:
237 flags-mask:
239 type: string
242 $ref: '#/$defs/len-or-limit'
245 $ref: '#/$defs/len-or-limit'
246 min-len:
248 $ref: '#/$defs/len-or-define'
249 max-len:
250 description: Max length for a string or a binary attribute.
251 $ref: '#/$defs/len-or-define'
252 exact-len:
253 description: Exact length for a string or a binary attribute.
254 $ref: '#/$defs/len-or-define'
255 unterminated-ok:
257 For string attributes, do not check whether attribute
260 sub-type: *attr-type
261 display-hint: *display-hint
262 # Start genetlink-c
263 name-prefix:
264 type: string
265 # End genetlink-c
266 # Start genetlink-legacy
269 type: string
270 # End genetlink-legacy
272 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
274 name-prefix:
276 required: [ subset-of ]
277 subset-of:
279 required: [ name-prefix ]
284 subset-of:
286 type: string
299 enum-model:
307 name-prefix:
311 type: string
312 enum-name:
315 type: [ string, "null" ]
316 async-prefix:
317 … description: Same as name-prefix but used to render notifications and events to separate enum.
318 type: string
319 async-enum:
322 type: [ string, "null" ]
323 # Start genetlink-legacy
324 fixed-header: &fixed-header
326 Name of the structure defining the optional fixed-length protocol
329 type: string
330 # End genetlink-legacy
341 type: string
344 type: string
348 attribute-set:
352 type: string
357 enum: [ admin-perm, uns-admin-perm ]
358 dont-validate:
362 enum: [ strict, dump, dump-strict ]
363 config-cond:
367 type: string
368 # Start genetlink-legacy
369 fixed-header: *fixed-header
370 # End genetlink-legacy
371 do: &subop-type
376 request: &subop-attr-list
383 Names of attributes from the attribute-set (not full attribute
387 type: string
388 # Start genetlink-legacy
394 # End genetlink-legacy
395 reply: *subop-attr-list
398 type: string
401 type: string
402 dump: *subop-type
405 type: string
414 type: string
417 type: string
418 mcast-groups:
435 type: string
436 # Start genetlink-c
437 c-define-name:
439 type: string
440 # End genetlink-c
443 kernel-family:
454 type: string
455 sock-priv:
460 type: string