Lines Matching defs:iov
312 static int alloc_iov(struct iovec *iov, int len)
316 nbuf = realloc(iov->iov_base, len);
320 iov->iov_base = nbuf;
321 iov->iov_len = len;
328 struct iovec iov = {};
330 .msg_iov = &iov,
338 ret = alloc_iov(&iov, 4096);
350 if (len > iov.iov_len) {
351 ret = alloc_iov(&iov, len);
365 for (nh = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(nh, len);
386 free(iov.iov_base);