Skip to content

Commit 44208f5

Browse files
liuhangbinkuba-moo
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8d0c314 commit 44208f5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Documentation/netlink/genetlink-c.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ properties:
209209
exact-len:
210210
description: Exact length for a string or a binary attribute.
211211
$ref: '#/$defs/len-or-define'
212+
unterminated-ok:
213+
description: |
214+
For string attributes, do not check whether attribute
215+
contains the terminating null character.
216+
type: boolean
212217
sub-type: *attr-type
213218
display-hint: &display-hint
214219
description: |

Documentation/netlink/genetlink-legacy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ properties:
252252
exact-len:
253253
description: Exact length for a string or a binary attribute.
254254
$ref: '#/$defs/len-or-define'
255+
unterminated-ok:
256+
description: |
257+
For string attributes, do not check whether attribute
258+
contains the terminating null character.
259+
type: boolean
255260
sub-type: *attr-type
256261
display-hint: *display-hint
257262
# Start genetlink-c

Documentation/netlink/netlink-raw.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ properties:
271271
exact-len:
272272
description: Exact length for a string or a binary attribute.
273273
$ref: '#/$defs/len-or-define'
274+
unterminated-ok:
275+
description: |
276+
For string attributes, do not check whether attribute
277+
contains the terminating null character.
278+
type: boolean
274279
sub-type: *attr-type
275280
display-hint: *display-hint
276281
# Start genetlink-c

0 commit comments

Comments
 (0)