Lines Matching defs:dstsize
762 * @dstsize: Size of destination buffer.
764 * Copies at most dstsize - 1 bytes into the destination buffer.
769 * * -E2BIG - If @dstsize is 0 or greater than U16_MAX or @nla length greater
770 * than @dstsize.
772 ssize_t nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize)
779 if (dstsize == 0 || WARN_ON_ONCE(dstsize > U16_MAX))
785 if (srclen >= dstsize) {
786 len = dstsize - 1;
795 memset(dst + len, 0, dstsize - len);