Lines Matching refs:vec
104 struct iovec vec[2]; in fuse_reply() local
105 vec[0].iov_base = &hdr; in fuse_reply()
106 vec[0].iov_len = sizeof(hdr); in fuse_reply()
107 vec[1].iov_base = const_cast<void*>(data); in fuse_reply()
108 vec[1].iov_len = len; in fuse_reply()
110 int res = writev(fd->ffd, vec, 2); in fuse_reply()
299 struct iovec vec[3]; in handle_read() local
300 vec[0].iov_base = &outhdr; in handle_read()
301 vec[0].iov_len = sizeof(outhdr); in handle_read()
321 vec[1].iov_base = fd->block_data + block_offset; in handle_read()
322 vec[1].iov_len = size; in handle_read()
328 vec[1].iov_base = fd->extra_block; in handle_read()
329 vec[1].iov_len = fd->block_size - block_offset; in handle_read()
333 vec[2].iov_base = fd->block_data; in handle_read()
334 vec[2].iov_len = size - vec[1].iov_len; in handle_read()
338 if (writev(fd->ffd, vec, vec_used) == -1) { in handle_read()