Lines Matching +full:string +full:- +full:array +full:- +full:property
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
10 type: string
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
16 type: [ string, integer ]
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
22 type: [ string, integer ]
23 pattern: ^[0-9A-Za-z_-]+$
30 required: [ name, doc, attribute-sets, operations ]
37 type: string
41 uapi-header:
42 description: Path to the uAPI header, default is linux/${family-name}.h
43 type: string
47 type: array
56 description: For C-compatible languages, header which already defines this value.
57 type: string
61 type: string
64 description: For const - the value.
65 type: [ string, integer ]
67 value-start:
69 type: [ string, integer ]
71 description: For enum or flags array of values.
72 type: array
75 - type: string
76 - type: object
85 type: string
86 render-max:
90 attribute-sets:
92 type: array
103 name-prefix:
105 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
106 type: string
107 enum-name:
109 type: string
112 type: string
113 subset-of:
115 Name of another space which this is a logical part of. Sub-spaces can be used to define
117 type: string
120 type: array
128 type: &attr-type
131 string, nest, indexed-array, nest-type-value ]
134 type: string
138 type-value:
139 … description: Name of the value extracted from the type of a nest-type-value attribute.
140 type: array
142 type: string
143 byte-order:
144 enum: [ little-endian, big-endian ]
145 multi-attr:
147 nested-attributes:
148 description: Name of the space (sub-space) used inside the attribute.
149 type: string
152 type: string
153 enum-as-flags:
164 flags-mask:
166 type: string
169 $ref: '#/$defs/len-or-limit'
172 $ref: '#/$defs/len-or-limit'
173 min-len:
175 $ref: '#/$defs/len-or-define'
176 max-len:
177 description: Max length for a string or a binary attribute.
178 $ref: '#/$defs/len-or-define'
179 exact-len:
180 description: Exact length for a string or a binary attribute.
181 $ref: '#/$defs/len-or-define'
182 sub-type: *attr-type
183 display-hint: &display-hint
190 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
192 name-prefix:
194 required: [ subset-of ]
195 subset-of:
197 required: [ name-prefix ]
199 # type property is only required if not in subset definition
202 subset-of:
204 type: string
217 enum-model:
225 name-prefix:
229 type: string
230 enum-name:
232 type: string
233 async-prefix:
234 … description: Same as name-prefix but used to render notifications and events to separate enum.
235 type: string
236 async-enum:
238 type: string
241 type: array
252 type: string
256 attribute-set:
260 type: string
263 type: array
265 enum: [ admin-perm ]
266 dont-validate:
268 type: array
270 enum: [ strict, dump, dump-strict ]
271 config-cond:
275 type: string
276 do: &subop-type
281 request: &subop-attr-list
288 Names of attributes from the attribute-set (not full attribute
290 type: array
292 type: string
293 reply: *subop-attr-list
296 type: string
299 type: string
300 dump: *subop-type
303 type: string
310 type: array
312 type: string
315 type: string
316 mcast-groups:
324 type: array
336 kernel-family:
345 type: array
347 type: string
348 sock-priv:
353 type: string