Lines Matching refs:iovec

171 static int read_request(int sockfd, struct iovec *iovec, ProxyHeader *header)  in read_request()  argument
178 iovec->iov_len = 0; in read_request()
179 retval = socket_read(sockfd, iovec->iov_base, PROXY_HDR_SZ); in read_request()
183 iovec->iov_len = PROXY_HDR_SZ; in read_request()
184 retval = proxy_unmarshal(iovec, 0, "dd", &header->type, &header->size); in read_request()
195 retval = socket_read(sockfd, iovec->iov_base + PROXY_HDR_SZ, header->size); in read_request()
199 iovec->iov_len += header->size; in read_request()
206 struct iovec iov; in send_fd()
245 static int send_status(int sockfd, struct iovec *iovec, int status) in send_status() argument
260 msg_size = proxy_marshal(iovec, 0, "ddd", header.type, in send_status()
265 retval = socket_write(sockfd, iovec->iov_base, msg_size); in send_status()
378 static int send_response(int sock, struct iovec *iovec, int size) in send_response() argument
398 proxy_marshal(iovec, PROXY_HDR_SZ, "d", size); in send_response()
403 proxy_marshal(iovec, 0, "dd", header.type, header.size); in send_response()
404 retval = socket_write(sock, iovec->iov_base, header.size + PROXY_HDR_SZ); in send_response()
415 static int do_getversion(struct iovec *iovec, struct iovec *out_iovec) in do_getversion() argument
432 retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "s", &path); in do_getversion()
454 static int do_getxattr(int type, struct iovec *iovec, struct iovec *out_iovec) in do_getxattr() argument
461 retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "ds", &size, &path); in do_getxattr()
474 retval = proxy_unmarshal(iovec, offset, "s", &name); in do_getxattr()
552 static int do_stat(int type, struct iovec *iovec, struct iovec *out_iovec) in do_stat() argument
562 retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "s", &path); in do_stat()
606 static int do_readlink(struct iovec *iovec, struct iovec *out_iovec) in do_readlink() argument
613 retval = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sd", &path, &size); in do_readlink()
638 static int do_create_others(int type, struct iovec *iovec) in do_create_others() argument
649 retval = proxy_unmarshal(iovec, offset, "dd", &uid, &gid); in do_create_others()
660 retval = proxy_unmarshal(iovec, offset, "sdq", &path, &mode, &rdev); in do_create_others()
667 retval = proxy_unmarshal(iovec, offset, "sd", &path, &mode); in do_create_others()
674 retval = proxy_unmarshal(iovec, offset, "ss", &oldpath, &path); in do_create_others()
697 static int do_create(struct iovec *iovec) in do_create() argument
704 ret = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sdddd", in do_create()
728 static int do_open(struct iovec *iovec) in do_open() argument
734 ret = proxy_unmarshal(iovec, PROXY_HDR_SZ, "sd", &path, &flags); in do_open()
819 struct iovec *out_iovec, int retval) in process_reply()
872 struct iovec in_iovec, out_iovec; in process_requests()