Home | History | Annotate | Download | only in lib

Lines Matching full:minlen

96  * 	[ATTR_FOO] = { .type = ..., .minlen = ..., .maxlen = ... },
106 * - If the payload length falls below the \a minlen value the attribute
138 * .minlen = sizeof(struct my_struct) },
160 * // Even though possible, it does not make sense to specify .minlen or
202 * // This attribute type is special as .minlen and .maxlen have no effect.
231 * [ATTR_OPTS] = { .type = NLA_NESTED, minlen = NLA_HDRLEN },
531 int minlen = 0, type = nla_type(nla);
541 if (pt->minlen)
542 minlen = pt->minlen;
544 minlen = nla_attr_minlen[pt->type];
549 if (nla_len(nla) < minlen)
697 int minlen;
702 minlen = min_t(int, count, nla_len(src));
703 memcpy(dest, nla_data(src), minlen);
705 return minlen;