diff options
author | Stanislav Fomichev <sdf@fomichev.me> | 2024-12-04 16:55:42 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-05 21:03:03 +0100 |
commit | 523d3cc4b6d1ae18bfa516345d48332d455181e6 (patch) | |
tree | 8553c15aa6d71a6edebd4448a504d1c0752d8c3e /Documentation/userspace-api/netlink | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | linux-523d3cc4b6d1ae18bfa516345d48332d455181e6.tar.xz linux-523d3cc4b6d1ae18bfa516345d48332d455181e6.zip |
ynl: support enum-cnt-name attribute in legacy definitions
This is similar to existing attr-cnt-name in the attributes
to allow changing the name of the 'count' enum entry.
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20241204155549.641348-2-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/userspace-api/netlink')
-rw-r--r-- | Documentation/userspace-api/netlink/c-code-gen.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/userspace-api/netlink/c-code-gen.rst b/Documentation/userspace-api/netlink/c-code-gen.rst index 89de42c13350..46415e6d646d 100644 --- a/Documentation/userspace-api/netlink/c-code-gen.rst +++ b/Documentation/userspace-api/netlink/c-code-gen.rst @@ -56,7 +56,9 @@ If ``name-prefix`` is specified it replaces the ``$family-$enum`` portion of the entry name. Boolean ``render-max`` controls creation of the max values -(which are enabled by default for attribute enums). +(which are enabled by default for attribute enums). These max +values are named ``__$pfx-MAX`` and ``$pfx-MAX``. The name +of the first value can be overridden via ``enum-cnt-name`` property. Attributes ========== |