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-c.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 ]
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
60 type: array
67 type: string
69 description: For C-compatible languages, header which already defines this value.
70 type: string
74 type: string
77 description: For const - the value.
78 type: [ string, integer ]
80 value-start:
82 type: [ string, integer ]
84 description: For enum or flags array of values.
85 type: array
88 - type: string
89 - type: object
94 type: string
98 type: string
99 render-max:
102 # Start genetlink-c
103 enum-name:
105 type: [ string, "null" ]
106 name-prefix:
108 type: string
109 # End genetlink-c
111 attribute-sets:
113 type: array
123 type: string
124 name-prefix:
126 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
127 type: string
128 enum-name:
131 type: [ string, "null" ]
134 type: string
135 subset-of:
137 Name of another space which this is a logical part of. Sub-spaces can be used to define
139 type: string
140 # Start genetlink-c
141 attr-cnt-name:
143 type: string
144 attr-max-name:
146 type: string
147 # End genetlink-c
150 type: array
157 type: string
158 type: &attr-type
161 string, nest, indexed-array, nest-type-value ]
164 type: string
168 type-value:
169 … description: Name of the value extracted from the type of a nest-type-value attribute.
170 type: array
172 type: string
173 byte-order:
174 enum: [ little-endian, big-endian ]
175 multi-attr:
177 nested-attributes:
178 description: Name of the space (sub-space) used inside the attribute.
179 type: string
182 type: string
183 enum-as-flags:
194 flags-mask:
196 type: string
199 $ref: '#/$defs/len-or-limit'
202 $ref: '#/$defs/len-or-limit'
203 min-len:
205 $ref: '#/$defs/len-or-define'
206 max-len:
207 description: Max length for a string or a binary attribute.
208 $ref: '#/$defs/len-or-define'
209 exact-len:
210 description: Exact length for a string or a binary attribute.
211 $ref: '#/$defs/len-or-define'
212 unterminated-ok:
214 For string attributes, do not check whether attribute
217 sub-type: *attr-type
218 display-hint: &display-hint
224 # Start genetlink-c
225 name-prefix:
226 type: string
227 # End genetlink-c
229 # Make sure name-prefix does not appear in subsets (subsets inherit naming)
231 name-prefix:
233 required: [ subset-of ]
234 subset-of:
236 required: [ name-prefix ]
238 # type property is only required if not in subset definition
241 subset-of:
243 type: string
256 enum-model:
264 name-prefix:
268 type: string
269 enum-name:
272 type: [ string, "null" ]
273 async-prefix:
274 … description: Same as name-prefix but used to render notifications and events to separate enum.
275 type: string
276 async-enum:
279 type: [ string, "null" ]
282 type: array
290 type: string
293 type: string
297 attribute-set:
301 type: string
304 type: array
306 enum: [ admin-perm ]
307 dont-validate:
309 type: array
311 enum: [ strict, dump, dump-strict ]
312 config-cond:
316 type: string
317 do: &subop-type
322 request: &subop-attr-list
329 Names of attributes from the attribute-set (not full attribute
331 type: array
333 type: string
334 reply: *subop-attr-list
337 type: string
340 type: string
341 dump: *subop-type
344 type: string
351 type: array
353 type: string
356 type: string
357 mcast-groups:
365 type: array
374 type: string
375 # Start genetlink-c
376 c-define-name:
378 type: string
379 # End genetlink-c
382 kernel-family:
391 type: array
393 type: string
394 sock-priv:
399 type: string