summaryrefslogtreecommitdiffstats
path: root/Documentation/userspace-api/netlink
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-03-01 10:36:40 -0800
committerDavid S. Miller <davem@davemloft.net>2023-03-03 08:22:39 +0000
commit7cf93538e087a792cb476008a757ab7c1c23b68c (patch)
treef6ee05b371614dbaf22eb935eee4ba41ce68b1a3 /Documentation/userspace-api/netlink
parentad93bab6b8d3bfeae4a0158eaabd61bb0b2fbb79 (diff)
downloadlinux-7cf93538e087a792cb476008a757ab7c1c23b68c.tar.gz
linux-7cf93538e087a792cb476008a757ab7c1c23b68c.tar.bz2
linux-7cf93538e087a792cb476008a757ab7c1c23b68c.zip
tools: ynl: fully inherit attrs in subsets
To avoid having to repeat the entire definition of an attribute (including the value) use the Attr object from the original set. In fact this is already the documented expectation. Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/userspace-api/netlink')
-rw-r--r--Documentation/userspace-api/netlink/specs.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/userspace-api/netlink/specs.rst b/Documentation/userspace-api/netlink/specs.rst
index 6ffe8137cd90..1424ab1b9b33 100644
--- a/Documentation/userspace-api/netlink/specs.rst
+++ b/Documentation/userspace-api/netlink/specs.rst
@@ -199,7 +199,8 @@ The ``value`` property can be skipped, in which case the attribute ID
will be the value of the previous attribute plus one (recursively)
and ``0`` for the first attribute in the attribute set.
-Note that the ``value`` of an attribute is defined only in its main set.
+Note that the ``value`` of an attribute is defined only in its main set
+(not in subsets).
enum
~~~~