diff options
| author | Stanislav Fomichev <sdf@fomichev.me> | 2024-12-04 07:55:42 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-05 12:03:03 -0800 |
| commit | 523d3cc4b6d1ae18bfa516345d48332d455181e6 (patch) | |
| tree | 8553c15aa6d71a6edebd4448a504d1c0752d8c3e /Documentation/userspace-api | |
| parent | 302cc446cbd92aadff72a647cebc13d5634f8342 (diff) | |
| download | tip-523d3cc4b6d1ae18bfa516345d48332d455181e6.tar.gz | |
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')
| -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 89de42c1335028..46415e6d646d21 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 ========== |
