diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-06-24 14:10:02 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-25 15:36:28 -0700 |
commit | af852f1f1c951d43b36881302fd10d9f898cdb54 (patch) | |
tree | aa51d72493612b27fefe84ecdc11cee177596158 /scripts/lib/kdoc/kdoc_files.py | |
parent | eef0eaeca7fa8e358a31e89802f564451b797718 (diff) |
netlink: specs: enforce strict naming of properties
Add a regexp to make sure all names which may end up being visible
to the user consist of lower case characters, numbers and dashes.
Underscores keep sneaking into the specs, which is not visible
in the C code but makes the Python and alike inconsistent.
Note that starting with a number is okay, as in C the full
name will include the family name.
For legacy families we can't enforce the naming in the family
name or the multicast group names, as these are part of the
binary uAPI of the kernel.
For classic netlink we need to allow capital letters in names
of struct members. TC has some structs with capitalized members.
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250624211002.3475021-11-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions