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, &count) < 0) 6 return false; 7 if (count > {{ maxsize }}) 8 return false; 9 for (u32 i = 0; i < count; i++) { 10 if (xdrgen_decode_{{ type }}(xdr, &ptr->{{ name }}.items[i]) < 0) 11 return false; 12 } 13 ptr->{{ name }}.len = count;
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.