diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2024-03-08 11:12:39 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-11 23:09:15 +0300 |
commit | 44208f59362e7099877f9ba79e1472f6bd321e2e (patch) | |
tree | 7a4523049ba1c4d74c4b95c09cf175a0fbc4f305 | |
parent | 8d0c314c30c9fe7f755d941f5d65a6e427518048 (diff) | |
download | linux-44208f59362e7099877f9ba79e1472f6bd321e2e.tar.xz |
netlink: specs: support unterminated-ok
ynl-gen-c.py supports check unterminated-ok, but the yaml schemas don't
have this key. Add this to the yaml files.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240308081239.3281710-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | Documentation/netlink/genetlink-c.yaml | 5 | ||||
-rw-r--r-- | Documentation/netlink/genetlink-legacy.yaml | 5 | ||||
-rw-r--r-- | Documentation/netlink/netlink-raw.yaml | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/netlink/genetlink-c.yaml b/Documentation/netlink/genetlink-c.yaml index 24692a9343f0..de786e2d35bf 100644 --- a/Documentation/netlink/genetlink-c.yaml +++ b/Documentation/netlink/genetlink-c.yaml @@ -209,6 +209,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: &display-hint description: | diff --git a/Documentation/netlink/genetlink-legacy.yaml b/Documentation/netlink/genetlink-legacy.yaml index b0b7e8bab8a9..c69de46b189b 100644 --- a/Documentation/netlink/genetlink-legacy.yaml +++ b/Documentation/netlink/genetlink-legacy.yaml @@ -252,6 +252,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: *display-hint # Start genetlink-c diff --git a/Documentation/netlink/netlink-raw.yaml b/Documentation/netlink/netlink-raw.yaml index 57490e5c1ddf..a76e54cbadbc 100644 --- a/Documentation/netlink/netlink-raw.yaml +++ b/Documentation/netlink/netlink-raw.yaml @@ -271,6 +271,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: *display-hint # Start genetlink-c |