Lines Matching +full:kernel +full:- +full:family
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 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 ]
30 description: Name of the genetlink family.
36 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
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:
50 cmd-max-name:
53 cmd-cnt-name:
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 ]
64 description: Generic Netlink family version. Default is 1.
67 # End genetlink-legacy
80 description: For C-compatible languages, header which already defines this value.
88 description: For const - the value.
91 value-start:
99 - type: string
100 - type: object
110 render-max:
113 # Start genetlink-c
114 enum-name:
117 name-prefix:
120 # End genetlink-c
121 # Start genetlink-legacy
136 $ref: '#/$defs/len-or-define'
137 byte-order:
138 enum: [ little-endian, big-endian ]
145 display-hint: &display-hint
151 # End genetlink-legacy
153 attribute-sets:
154 description: Definition of attribute spaces for this family.
166 name-prefix:
168 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
170 enum-name:
177 subset-of:
179 Name of another space which this is a logical part of. Sub-spaces can be used to define
182 # Start genetlink-c
183 attr-cnt-name:
186 attr-max-name:
189 # End genetlink-c
200 type: &attr-type
204 string, nest, indexed-array, nest-type-value ]
211 type-value:
212 … description: Name of the value extracted from the type of a nest-type-value attribute.
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.
226 enum-as-flags:
233 description: Kernel input validation.
237 flags-mask:
242 $ref: '#/$defs/len-or-limit'
245 $ref: '#/$defs/len-or-limit'
246 min-len:
248 $ref: '#/$defs/len-or-define'
249 max-len:
251 $ref: '#/$defs/len-or-define'
252 exact-len:
254 $ref: '#/$defs/len-or-define'
255 unterminated-ok:
260 sub-type: *attr-type
261 display-hint: *display-hint
262 # Start genetlink-c
263 name-prefix:
265 # End genetlink-c
266 # Start genetlink-legacy
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:
299 enum-model:
304 "directional" has the messages sent to the kernel and from the kernel
307 name-prefix:
312 enum-name:
316 async-prefix:
317 … description: Same as name-prefix but used to render notifications and events to separate enum.
319 async-enum:
323 # Start genetlink-legacy
324 fixed-header: &fixed-header
326 Name of the structure defining the optional fixed-length protocol
330 # End genetlink-legacy
348 attribute-set:
357 enum: [ admin-perm, uns-admin-perm ]
358 dont-validate:
359 description: Kernel attribute validation flags.
362 enum: [ strict, dump, dump-strict ]
363 config-cond:
365 Name of the kernel config option gating the presence of
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
388 # Start genetlink-legacy
394 # End genetlink-legacy
395 reply: *subop-attr-list
402 dump: *subop-type
418 mcast-groups:
436 # Start genetlink-c
437 c-define-name:
440 # End genetlink-c
443 kernel-family:
444 description: Additional global attributes used for kernel C code generation.
455 sock-priv:
457 Literal name of the type which is used within the kernel
459 to the kernel, and is not defined in the spec.