tools/net/sunrpc/xdrgen/templates/C/struct/encoder/string.j2

Source file repositories/reference/linux-study-clean/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/string.j2

File Facts

System
Linux kernel
Corpus path
tools/net/sunrpc/xdrgen/templates/C/struct/encoder/string.j2
Extension
.j2
Size
282 bytes
Lines
9
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
	/* member {{ name }} (variable-length string) */
{% endif %}
	if (value->{{ name }}.len > {{ maxsize }})
		return false;
	if (xdr_stream_encode_opaque(xdr, value->{{ name }}.data, value->{{ name }}.len) < 0)
		return false;

Annotation

Implementation Notes