1 {# SPDX-License-Identifier: GPL-2.0 #} 2 {% if annotate %} 3 /* member {{ name }} (variable-length array) */ 4 {% endif %} 5 if (xdr_stream_decode_u32(xdr, &ptr->{{ name }}.count) < 0) 6 return false; 7 {% if maxsize != "0" %} 8 if (ptr->{{ name }}.count > {{ maxsize }}) 9 return false; 10 {% endif %} 11 for (u32 i = 0; i < ptr->{{ name }}.count; i++) 12 if (!xdrgen_decode_{{ type }}(xdr, &ptr->{{ name }}.element[i])) 13 return false;
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.