/fs/ |
D | read_write.c | 748 ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() argument 756 return do_readv_writev(READ, file, vec, vlen, pos); in vfs_readv() 761 ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() argument 769 return do_readv_writev(WRITE, file, vec, vlen, pos); in vfs_writev() 774 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument 782 ret = vfs_readv(f.file, vec, vlen, &pos); in SYSCALL_DEFINE3() 793 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument 801 ret = vfs_writev(f.file, vec, vlen, &pos); in SYSCALL_DEFINE3() 818 SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE5() argument 832 ret = vfs_readv(f.file, vec, vlen, &pos); in SYSCALL_DEFINE5() [all …]
|
D | splice.c | 558 static ssize_t kernel_readv(struct file *file, const struct iovec *vec, in kernel_readv() argument 568 res = vfs_readv(file, (const struct iovec __user *)vec, vlen, &pos); in kernel_readv() 599 struct iovec *vec, __vec[PIPE_DEF_BUFFERS]; in default_file_splice_read() local 617 vec = __vec; in default_file_splice_read() 619 vec = kmalloc(spd.nr_pages_max * sizeof(struct iovec), GFP_KERNEL); in default_file_splice_read() 620 if (!vec) in default_file_splice_read() 636 vec[i].iov_base = (void __user *) page_address(page); in default_file_splice_read() 637 vec[i].iov_len = this_len; in default_file_splice_read() 644 res = kernel_readv(in, vec, spd.nr_pages, *ppos); in default_file_splice_read() 656 this_len = min_t(size_t, vec[i].iov_len, res); in default_file_splice_read() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmconvert.c | 353 struct kvec vec[2]; in dlm_send_remote_convert_request() local 366 vec[0].iov_len = sizeof(struct dlm_convert_lock); in dlm_send_remote_convert_request() 367 vec[0].iov_base = &convert; in dlm_send_remote_convert_request() 371 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_convert_request() 372 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_convert_request() 377 vec, veclen, res->owner, &status); in dlm_send_remote_convert_request()
|
D | dlmast.c | 454 struct kvec vec[2]; in dlm_send_proxy_ast_msg() local 470 vec[0].iov_len = sizeof(struct dlm_proxy_ast); in dlm_send_proxy_ast_msg() 471 vec[0].iov_base = &past; in dlm_send_proxy_ast_msg() 474 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_proxy_ast_msg() 475 vec[1].iov_base = lock->lksb->lvb; in dlm_send_proxy_ast_msg() 479 ret = o2net_send_message_vec(DLM_PROXY_AST_MSG, dlm->key, vec, veclen, in dlm_send_proxy_ast_msg()
|
D | dlmunlock.c | 317 struct kvec vec[2]; in dlm_send_remote_unlock_request() local 339 vec[0].iov_len = sizeof(struct dlm_unlock_lock); in dlm_send_remote_unlock_request() 340 vec[0].iov_base = &unlock; in dlm_send_remote_unlock_request() 344 vec[1].iov_len = DLM_LVB_LEN; in dlm_send_remote_unlock_request() 345 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_unlock_request() 350 vec, veclen, owner, &status); in dlm_send_remote_unlock_request()
|
D | dlmdomain.c | 81 static void dlm_free_pagevec(void **vec, int pages) in dlm_free_pagevec() argument 84 free_page((unsigned long)vec[pages]); in dlm_free_pagevec() 85 kfree(vec); in dlm_free_pagevec() 90 void **vec = kmalloc(pages * sizeof(void *), GFP_KERNEL); in dlm_alloc_pagevec() local 93 if (!vec) in dlm_alloc_pagevec() 97 if (!(vec[i] = (void *)__get_free_page(GFP_KERNEL))) in dlm_alloc_pagevec() 103 return vec; in dlm_alloc_pagevec() 105 dlm_free_pagevec(vec, i); in dlm_alloc_pagevec()
|
/fs/nfsd/ |
D | nfscache.c | 60 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 583 struct kvec *vec = &rqstp->rq_res.head[0]; in nfsd_cache_append() local 585 if (vec->iov_len + data->iov_len > PAGE_SIZE) { in nfsd_cache_append() 590 memcpy((char*)vec->iov_base + vec->iov_len, data->iov_base, data->iov_len); in nfsd_cache_append() 591 vec->iov_len += data->iov_len; in nfsd_cache_append()
|
D | vfs.c | 921 loff_t offset, struct kvec *vec, int vlen, unsigned long *count) in nfsd_vfs_read() argument 942 host_err = vfs_readv(file, (struct iovec __user *)vec, vlen, &offset); in nfsd_vfs_read() 1005 loff_t offset, struct kvec *vec, int vlen, in nfsd_vfs_write() argument 1029 host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &pos); in nfsd_vfs_write() 1063 loff_t offset, struct kvec *vec, int vlen, unsigned long *count) in nfsd_read() argument 1082 err = nfsd_vfs_read(rqstp, fhp, file, offset, vec, vlen, count); in nfsd_read() 1101 loff_t offset, struct kvec *vec, int vlen, in nfsd_read_file() argument 1111 err = nfsd_vfs_read(rqstp, fhp, file, offset, vec, vlen, count); in nfsd_read_file() 1113 err = nfsd_read(rqstp, fhp, offset, vec, vlen, count); in nfsd_read_file() 1125 loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, in nfsd_write() argument [all …]
|
D | nfs4proc.c | 926 static int fill_in_write_vector(struct kvec *vec, struct nfsd4_write *write) in fill_in_write_vector() argument 931 vec[0].iov_base = write->wr_head.iov_base; in fill_in_write_vector() 932 vec[0].iov_len = min_t(int, buflen, write->wr_head.iov_len); in fill_in_write_vector() 933 buflen -= vec[0].iov_len; in fill_in_write_vector() 936 vec[i].iov_base = page_address(write->wr_pagelist[i - 1]); in fill_in_write_vector() 937 vec[i].iov_len = min_t(int, PAGE_SIZE, buflen); in fill_in_write_vector() 938 buflen -= vec[i].iov_len; in fill_in_write_vector()
|
D | nfs3xdr.c | 453 struct kvec *vec; in nfs3svc_decode_symlinkargs() local 473 vec = &rqstp->rq_arg.head[0]; in nfs3svc_decode_symlinkargs() 474 avail = vec->iov_len - (old - (char*)vec->iov_base); in nfs3svc_decode_symlinkargs()
|
/fs/ncpfs/ |
D | sock.c | 42 static inline int do_send(struct socket *sock, struct kvec *vec, int count, in do_send() argument 46 return kernel_sendmsg(sock, &msg, vec, count, len); in do_send() 51 struct kvec vec; in _send() local 52 vec.iov_base = (void *) buff; in _send() 53 vec.iov_len = len; in _send() 54 return do_send(sock, &vec, 1, len, 0); in _send() 207 struct kvec vec[3]; in ncpdgram_send() local 209 memcpy(vec, req->tx_ciov, req->tx_iovlen * sizeof(vec[0])); in ncpdgram_send() 210 return do_send(sock, vec, req->tx_iovlen, in ncpdgram_send()
|
/fs/ocfs2/cluster/ |
D | tcp.c | 917 struct kvec vec = { in o2net_recv_tcp_msg() local 923 .msg_iov = (struct iovec *)&vec, in o2net_recv_tcp_msg() 935 static int o2net_send_tcp_msg(struct socket *sock, struct kvec *vec, in o2net_send_tcp_msg() argument 941 .msg_iov = (struct iovec *)vec, in o2net_send_tcp_msg() 1057 struct kvec *vec = NULL; in o2net_send_message_vec() local 1102 vec = kmalloc(sizeof(struct kvec) * veclen, GFP_ATOMIC); in o2net_send_message_vec() 1103 if (vec == NULL) { in o2net_send_message_vec() 1118 vec[0].iov_len = sizeof(struct o2net_msg); in o2net_send_message_vec() 1119 vec[0].iov_base = msg; in o2net_send_message_vec() 1120 memcpy(&vec[1], caller_vec, caller_veclen * sizeof(struct kvec)); in o2net_send_message_vec() [all …]
|
D | tcp.h | 100 int o2net_send_message_vec(u32 msg_type, u32 key, struct kvec *vec,
|
/fs/nfs/ |
D | direct.c | 417 const struct iovec *vec = &iov[seg]; in nfs_direct_read_schedule_iovec() local 418 result = nfs_direct_read_schedule_segment(&desc, vec, pos, uio); in nfs_direct_read_schedule_iovec() 422 if ((size_t)result < vec->iov_len) in nfs_direct_read_schedule_iovec() 424 pos += vec->iov_len; in nfs_direct_read_schedule_iovec() 821 const struct iovec *vec = &iov[seg]; in nfs_direct_write_schedule_iovec() local 822 result = nfs_direct_write_schedule_segment(&desc, vec, pos, uio); in nfs_direct_write_schedule_iovec() 826 if ((size_t)result < vec->iov_len) in nfs_direct_write_schedule_iovec() 828 pos += vec->iov_len; in nfs_direct_write_schedule_iovec()
|
/fs/xfs/ |
D | xfs_log_cil.c | 160 struct xfs_log_iovec *vec = &new_lv->lv_iovecp[index]; in xlog_cil_prepare_log_vecs() local 162 memcpy(ptr, vec->i_addr, vec->i_len); in xlog_cil_prepare_log_vecs() 163 vec->i_addr = ptr; in xlog_cil_prepare_log_vecs() 164 ptr += vec->i_len; in xlog_cil_prepare_log_vecs()
|
D | xfs_log.c | 776 struct xfs_log_vec vec = { in xfs_log_unmount_write() local 784 error = xlog_write(log, &vec, tic, &lsn, in xfs_log_unmount_write() 1418 struct xfs_log_vec vec = { in xlog_commit_record() local 1424 error = xlog_write(log, &vec, ticket, commitlsnp, iclog, in xlog_commit_record()
|
/fs/ceph/ |
D | xattr.c | 528 ci->i_xattrs.blob ? (int)ci->i_xattrs.blob->vec.iov_len : 0); in __build_xattrs() 537 if (ci->i_xattrs.blob && ci->i_xattrs.blob->vec.iov_len > 4) { in __build_xattrs() 538 p = ci->i_xattrs.blob->vec.iov_base; in __build_xattrs() 539 end = p + ci->i_xattrs.blob->vec.iov_len; in __build_xattrs() 637 dest = ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob() 654 ci->i_xattrs.prealloc_blob->vec.iov_len = in __ceph_build_xattrs_blob() 655 dest - ci->i_xattrs.prealloc_blob->vec.iov_base; in __ceph_build_xattrs_blob()
|
D | caps.c | 961 xattr_version, xattrs_buf ? (int)xattrs_buf->vec.iov_len : 0); in send_cap_msg() 998 fc->xattr_len = cpu_to_le32(xattrs_buf->vec.iov_len); in send_cap_msg() 999 msg->hdr.middle_len = cpu_to_le32(xattrs_buf->vec.iov_len); in send_cap_msg()
|
D | inode.c | 655 memcpy(ci->i_xattrs.blob->vec.iov_base, in fill_inode()
|