summaryrefslogtreecommitdiff
path: root/Documentation/netlink
diff options
context:
space:
mode:
authorDonald Hunter <donald.hunter@gmail.com>2023-03-27 09:31:34 +0100
committerJakub Kicinski <kuba@kernel.org>2023-03-28 23:54:43 -0700
commit2607191395bd4db544db05452625cd7e98bc0848 (patch)
treee5c5a649fa63a4131caecb03af6fd5d25bf202e2 /Documentation/netlink
parentb423c3c86325192259380ac870aafd370a683e73 (diff)
downloadlinux-next-2607191395bd4db544db05452625cd7e98bc0848.tar.gz
tools: ynl: Add struct attr decoding to ynl
Add support for decoding attributes that contain C structs. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/netlink')
-rw-r--r--Documentation/netlink/genetlink-legacy.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml
index 5dc6f1c07a97..d50c78b9f42d 100644
--- a/Documentation/netlink/genetlink-legacy.yaml
+++ b/Documentation/netlink/genetlink-legacy.yaml
@@ -218,6 +218,11 @@ properties:
description: Max length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
sub-type: *attr-type
+ # Start genetlink-legacy
+ struct:
+ description: Name of the struct type used for the attribute.
+ type: string
+ # End genetlink-legacy
# Make sure name-prefix does not appear in subsets (subsets inherit naming)
dependencies: