Lines Matching refs:iov
76 static struct iovec iov; variable
78 static int expand_buf(struct iovec *iov, size_t size) in expand_buf() argument
82 if (size <= iov->iov_len) in expand_buf()
91 if (iov->iov_base) in expand_buf()
93 memcpy(new, iov->iov_base, iov->iov_len); in expand_buf()
94 free(iov->iov_base); in expand_buf()
97 iov->iov_base = new; in expand_buf()
98 iov->iov_len = size; in expand_buf()
112 msg.msg_iov = &iov; in netlink_recv()
124 if (!expand_buf(&iov, 2000)) in netlink_recv()
132 if (!expand_buf(&iov, iov.iov_len + 100)) in netlink_recv()
219 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in find_interface()
258 struct iovec iov; in main() local
260 iov.iov_len = 200; in main()
261 iov.iov_base = malloc(iov.iov_len); in main()