Home
last modified time | relevance | path

Searched refs:rqstp (Results 1 – 66 of 66) sorted by relevance

/linux-4.4.14/net/sunrpc/
Dsvc.c547 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) in svc_init_buffer() argument
552 if (svc_is_backchannel(rqstp)) in svc_init_buffer()
566 rqstp->rq_pages[arghi++] = p; in svc_init_buffer()
576 svc_release_buffer(struct svc_rqst *rqstp) in svc_release_buffer() argument
580 for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) in svc_release_buffer()
581 if (rqstp->rq_pages[i]) in svc_release_buffer()
582 put_page(rqstp->rq_pages[i]); in svc_release_buffer()
588 struct svc_rqst *rqstp; in svc_rqst_alloc() local
590 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_rqst_alloc()
591 if (!rqstp) in svc_rqst_alloc()
[all …]
Dsvc_xprt.c23 static int svc_deferred_recv(struct svc_rqst *rqstp);
286 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_copy_addrs() argument
288 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); in svc_xprt_copy_addrs()
289 rqstp->rq_addrlen = xprt->xpt_remotelen; in svc_xprt_copy_addrs()
295 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); in svc_xprt_copy_addrs()
296 rqstp->rq_daddrlen = xprt->xpt_locallen; in svc_xprt_copy_addrs()
307 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) in svc_print_addr() argument
309 return __svc_print_addr(svc_addr(rqstp), buf, len); in svc_print_addr()
325 struct svc_rqst *rqstp = NULL; in svc_xprt_do_enqueue() local
351 list_for_each_entry_rcu(rqstp, &pool->sp_all_threads, rq_all) { in svc_xprt_do_enqueue()
[all …]
Dsvcsock.c120 static void svc_release_skb(struct svc_rqst *rqstp) in svc_release_skb() argument
122 struct sk_buff *skb = rqstp->rq_xprt_ctxt; in svc_release_skb()
126 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_release_skb()
127 rqstp->rq_xprt_ctxt = NULL; in svc_release_skb()
129 dprintk("svc: service %p, releasing skb %p\n", rqstp, skb); in svc_release_skb()
141 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() argument
144 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_set_cmsg_data()
153 svc_daddr_in(rqstp)->sin_addr.s_addr; in svc_set_cmsg_data()
160 struct sockaddr_in6 *daddr = svc_daddr_in6(rqstp); in svc_set_cmsg_data()
234 static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) in svc_sendto() argument
[all …]
Dsvcauth.c37 svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) in svc_authenticate() argument
44 flavor = svc_getnl(&rqstp->rq_arg.head[0]); in svc_authenticate()
57 rqstp->rq_auth_slack = 0; in svc_authenticate()
59 rqstp->rq_authop = aops; in svc_authenticate()
60 return aops->accept(rqstp, authp); in svc_authenticate()
64 int svc_set_client(struct svc_rqst *rqstp) in svc_set_client() argument
66 return rqstp->rq_authop->set_client(rqstp); in svc_set_client()
74 int svc_authorise(struct svc_rqst *rqstp) in svc_authorise() argument
76 struct auth_ops *aops = rqstp->rq_authop; in svc_authorise()
79 rqstp->rq_authop = NULL; in svc_authorise()
[all …]
Dsvcauth_unix.c628 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) in unix_gid_find() argument
633 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, in unix_gid_find()
639 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
655 svcauth_unix_set_client(struct svc_rqst *rqstp) in svcauth_unix_set_client() argument
661 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client()
662 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client()
666 switch (rqstp->rq_addr.ss_family) { in svcauth_unix_set_client()
668 sin = svc_addr_in(rqstp); in svcauth_unix_set_client()
673 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client()
679 rqstp->rq_client = NULL; in svcauth_unix_set_client()
[all …]
Dauth.c770 static void rpcauth_wrap_req_encode(kxdreproc_t encode, struct rpc_rqst *rqstp, in rpcauth_wrap_req_encode() argument
775 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, data); in rpcauth_wrap_req_encode()
776 encode(rqstp, &xdr, obj); in rpcauth_wrap_req_encode()
780 rpcauth_wrap_req(struct rpc_task *task, kxdreproc_t encode, void *rqstp, in rpcauth_wrap_req() argument
788 return cred->cr_ops->crwrap_req(task, encode, rqstp, data, obj); in rpcauth_wrap_req()
790 rpcauth_wrap_req_encode(encode, rqstp, data, obj); in rpcauth_wrap_req()
795 rpcauth_unwrap_req_decode(kxdrdproc_t decode, struct rpc_rqst *rqstp, in rpcauth_unwrap_req_decode() argument
800 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, data); in rpcauth_unwrap_req_decode()
801 return decode(rqstp, &xdr, obj); in rpcauth_unwrap_req_decode()
805 rpcauth_unwrap_resp(struct rpc_task *task, kxdrdproc_t decode, void *rqstp, in rpcauth_unwrap_resp() argument
[all …]
Dcache.c254 struct cache_head *h, struct cache_req *rqstp) in cache_check() argument
266 if (rqstp == NULL) { in cache_check()
286 if (!cache_defer_req(rqstp, h)) { in cache_check()
Dclnt.c2397 static void rpcproc_encode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_encode_null() argument
2401 static int rpcproc_decode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_decode_null() argument
/linux-4.4.14/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c58 static void rdma_build_arg_xdr(struct svc_rqst *rqstp, in rdma_build_arg_xdr() argument
69 put_page(rqstp->rq_pages[0]); in rdma_build_arg_xdr()
70 rqstp->rq_pages[0] = page; in rdma_build_arg_xdr()
73 rqstp->rq_arg.head[0].iov_base = page_address(page); in rdma_build_arg_xdr()
74 rqstp->rq_arg.head[0].iov_len = in rdma_build_arg_xdr()
76 rqstp->rq_arg.len = byte_count; in rdma_build_arg_xdr()
77 rqstp->rq_arg.buflen = byte_count; in rdma_build_arg_xdr()
80 bc = byte_count - rqstp->rq_arg.head[0].iov_len; in rdma_build_arg_xdr()
83 rqstp->rq_arg.page_len = bc; in rdma_build_arg_xdr()
84 rqstp->rq_arg.page_base = 0; in rdma_build_arg_xdr()
[all …]
Dsvc_rdma_sendto.c215 static int send_write(struct svcxprt_rdma *xprt, struct svc_rqst *rqstp, in send_write() argument
261 dma_map_xdr(xprt, &rqstp->rq_res, xdr_off, in send_write()
308 struct svc_rqst *rqstp, in send_write_chunks() argument
311 u32 xfer_len = rqstp->rq_res.page_len + rqstp->rq_res.tail[0].iov_len; in send_write_chunks()
329 for (xdr_off = rqstp->rq_res.head[0].iov_len, chunk_no = 0; in send_write_chunks()
347 ret = send_write(xprt, rqstp, in send_write_chunks()
367 return rqstp->rq_res.page_len + rqstp->rq_res.tail[0].iov_len; in send_write_chunks()
373 struct svc_rqst *rqstp, in send_reply_chunks() argument
376 u32 xfer_len = rqstp->rq_res.len; in send_reply_chunks()
412 ret = send_write(xprt, rqstp, in send_reply_chunks()
[all …]
Dsvc_rdma_marshal.c149 struct svc_rqst *rqstp) in svc_rdma_xdr_decode_req() argument
155 rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base; in svc_rdma_xdr_decode_req()
158 if (rqstp->rq_arg.len <= RPCRDMA_HDRLEN_MIN) { in svc_rdma_xdr_decode_req()
160 rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
177 rqstp->rq_arg.head[0].iov_base = va; in svc_rdma_xdr_decode_req()
179 rqstp->rq_arg.head[0].iov_len -= hdrlen; in svc_rdma_xdr_decode_req()
180 if (hdrlen > rqstp->rq_arg.len) in svc_rdma_xdr_decode_req()
189 vaend = (__be32 *)((unsigned long)rmsgp + rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
200 rqstp->rq_arg.head[0].iov_base = va; in svc_rdma_xdr_decode_req()
202 rqstp->rq_arg.head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req()
Dsvc_rdma_transport.c1133 static void svc_rdma_release_rqst(struct svc_rqst *rqstp) in svc_rdma_release_rqst() argument
1252 static int svc_rdma_secure_port(struct svc_rqst *rqstp) in svc_rdma_secure_port() argument
/linux-4.4.14/fs/nfsd/
Dnfs3xdr.c164 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr3() argument
190 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_saved_post_attr() argument
194 return encode_fattr3(rqstp, p, fhp, &fhp->fh_post_attr); in encode_saved_post_attr()
203 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_post_op_attr() argument
214 return encode_fattr3(rqstp, p, fhp, &stat); in encode_post_op_attr()
223 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in nfs3svc_encode_post_op_attr() argument
225 return encode_post_op_attr(rqstp, p, fhp); in nfs3svc_encode_post_op_attr()
232 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_wcc_data() argument
245 return encode_saved_post_attr(rqstp, p, fhp); in encode_wcc_data()
249 return encode_post_op_attr(rqstp, p, fhp); in encode_wcc_data()
[all …]
Dnfsxdr.c144 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr() argument
200 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s… in nfs2svc_encode_fattr() argument
202 return encode_fattr(rqstp, p, fhp, stat); in nfs2svc_encode_fattr()
209 nfssvc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfssvc_decode_void() argument
211 return xdr_argsize_check(rqstp, p); in nfssvc_decode_void()
215 nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *args) in nfssvc_decode_fhandle() argument
220 return xdr_argsize_check(rqstp, p); in nfssvc_decode_fhandle()
224 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p, in nfssvc_decode_sattrargs() argument
232 return xdr_argsize_check(rqstp, p); in nfssvc_decode_sattrargs()
236 nfssvc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p, in nfssvc_decode_diropargs() argument
[all …]
Dnfs2acl.c22 nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsacld_proc_null() argument
30 static __be32 nfsacld_proc_getacl(struct svc_rqst * rqstp, in nfsacld_proc_getacl() argument
41 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl()
90 static __be32 nfsacld_proc_setacl(struct svc_rqst * rqstp, in nfsacld_proc_setacl() argument
102 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl()
144 static __be32 nfsacld_proc_getattr(struct svc_rqst * rqstp, in nfsacld_proc_getattr() argument
151 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getattr()
161 static __be32 nfsacld_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, in nfsacld_proc_access() argument
172 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsacld_proc_access()
182 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, in nfsaclsvc_decode_getaclargs() argument
[all …]
Dnfs4proc.c94 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in check_attr_support() argument
130 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument
138 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
141 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
162 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument
167 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl()
188 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument
205 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
237 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument
269 status = do_nfsd_create(rqstp, current_fh, open->op_fname.data, in do_open_lookup()
[all …]
Dnfs3acl.c21 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
29 static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, in nfsd3_proc_getacl() argument
38 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl()
83 static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp, in nfsd3_proc_setacl() argument
93 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl()
128 static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, in nfs3svc_decode_getaclargs() argument
136 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_getaclargs()
140 static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, in nfs3svc_decode_setaclargs() argument
143 struct kvec *head = rqstp->rq_arg.head; in nfs3svc_decode_setaclargs()
152 !xdr_argsize_check(rqstp, p)) in nfs3svc_decode_setaclargs()
[all …]
Dnfscache.c65 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec);
285 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument
290 struct xdr_buf *buf = &rqstp->rq_arg; in nfsd_cache_csum()
315 nfsd_cache_match(struct svc_rqst *rqstp, __wsum csum, struct svc_cacherep *rp) in nfsd_cache_match() argument
318 if (rqstp->rq_xid != rp->c_xid) in nfsd_cache_match()
327 if (rqstp->rq_proc != rp->c_proc || in nfsd_cache_match()
328 rqstp->rq_prot != rp->c_prot || in nfsd_cache_match()
329 rqstp->rq_vers != rp->c_vers || in nfsd_cache_match()
330 rqstp->rq_arg.len != rp->c_len || in nfsd_cache_match()
331 !rpc_cmp_addr(svc_addr(rqstp), (struct sockaddr *)&rp->c_addr) || in nfsd_cache_match()
[all …]
Dnfs3proc.c34 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
43 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_getattr() argument
52 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr()
66 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument
75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
84 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument
97 nfserr = nfsd_lookup(rqstp, &resp->dirfh, in nfsd3_proc_lookup()
108 nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, in nfsd3_proc_access() argument
119 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); in nfsd3_proc_access()
127 nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, in nfsd3_proc_readlink() argument
[all …]
Dnfssvc.c577 struct svc_rqst *rqstp = (struct svc_rqst *) vrqstp; in nfsd() local
578 …struct svc_xprt *perm_sock = list_entry(rqstp->rq_server->sv_permsocks.next, typeof(struct svc_xpr… in nfsd()
615 rqstp->rq_server->sv_maxconn = nn->max_connections; in nfsd()
621 while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN) in nfsd()
626 svc_process(rqstp); in nfsd()
637 rqstp->rq_server = NULL; in nfsd()
640 svc_exit_thread(rqstp); in nfsd()
660 nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) in nfsd_dispatch() argument
668 rqstp->rq_vers, rqstp->rq_proc); in nfsd_dispatch()
669 proc = rqstp->rq_procinfo; in nfsd_dispatch()
[all …]
Dvfs.c83 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, in nfsd_cross_mnt() argument
96 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt()
111 if (nfsd_v4client(rqstp) || in nfsd_cross_mnt()
142 static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **e… in nfsd_lookup_parent() argument
150 exp2 = rqst_exp_parent(rqstp, &path); in nfsd_lookup_parent()
181 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
201 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry()
205 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
224 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
252 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
[all …]
Dnfsproc.c20 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd_proc_null() argument
42 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_getattr() argument
49 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr()
59 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, in nfsd_proc_setattr() argument
97 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
115 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr()
127 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument
136 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
147 nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, in nfsd_proc_readlink() argument
156 nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); in nfsd_proc_readlink()
[all …]
Dnfs4idmap.c491 idmap_lookup(struct svc_rqst *rqstp, in idmap_lookup() argument
501 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
514 rqst_authname(struct svc_rqst *rqstp) in rqst_authname() argument
518 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname()
523 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument
530 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_name_to_id()
536 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); in idmap_name_to_id()
537 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id()
562 struct svc_rqst *rqstp, int type, u32 id) in idmap_id_to_name() argument
570 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_id_to_name()
[all …]
Dnfsfh.c62 nfsd_mode_check(struct svc_rqst *rqstp, umode_t mode, umode_t requested) in nfsd_mode_check() argument
74 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check()
83 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument
86 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
89 if (!test_bit(RQ_SECURE, &rqstp->rq_flags) && !(flags & NFSEXP_INSECURE_PORT)) { in nfsd_setuser_and_check_port()
92 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port()
97 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
100 static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, in check_pseudo_root() argument
111 if (!nfsd_v4client(rqstp)) in check_pseudo_root()
135 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
[all …]
Dauth.c7 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) in nfsexp_flags() argument
13 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in nfsexp_flags()
20 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) in nfsd_setuser() argument
26 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser()
36 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
37 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
39 rqgi = rqstp->rq_cred.cr_group_info; in nfsd_setuser()
Dxdr4.h583 struct svc_rqst *rqstp; member
597 struct svc_rqst * rqstp; member
608 struct nfsd4_compoundargs *args = resp->rqstp->rq_argp; in nfsd4_is_solo_sequence()
618 static inline bool nfsd4_last_compound_op(struct svc_rqst *rqstp) in nfsd4_last_compound_op() argument
620 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_last_compound_op()
621 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in nfsd4_last_compound_op()
626 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op);
659 extern __be32 nfsd4_setclientid(struct svc_rqst *rqstp,
662 extern __be32 nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
665 extern __be32 nfsd4_exchange_id(struct svc_rqst *rqstp,
[all …]
Dexport.c938 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp) in check_nfsd_access() argument
944 if (exp->ex_client == rqstp->rq_gssclient) in check_nfsd_access()
948 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in check_nfsd_access()
953 if (rqstp->rq_cred.cr_flavor == RPC_AUTH_NULL || in check_nfsd_access()
954 rqstp->rq_cred.cr_flavor == RPC_AUTH_UNIX) in check_nfsd_access()
970 rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path) in rqst_exp_get_by_name() argument
973 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in rqst_exp_get_by_name()
976 if (rqstp->rq_client == NULL) in rqst_exp_get_by_name()
980 exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); in rqst_exp_get_by_name()
990 if (rqstp->rq_gssclient == NULL) in rqst_exp_get_by_name()
[all …]
Dnfs4state.c1489 static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) in alloc_conn() argument
1496 svc_xprt_get(rqstp->rq_xprt); in alloc_conn()
1497 conn->cn_xprt = rqstp->rq_xprt; in alloc_conn()
1524 static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *… in nfsd4_init_conn() argument
1537 static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session… in alloc_conn_from_crses() argument
1543 return alloc_conn(rqstp, dir); in alloc_conn_from_crses()
1579 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session() argument
1582 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in init_session()
1601 struct sockaddr *sa = svc_addr(rqstp); in init_session()
1950 static bool svc_rqst_integrity_protected(struct svc_rqst *rqstp) in svc_rqst_integrity_protected() argument
[all …]
Dpnfs.h40 __be32 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp,
45 __be32 nfsd4_return_file_layouts(struct svc_rqst *rqstp,
48 __be32 nfsd4_return_client_layouts(struct svc_rqst *rqstp,
Dacl.h54 int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
56 __be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
Dnfs4xdr.c337 status = nfsd_map_name_to_gid(argp->rqstp, in nfsd4_decode_fattr()
340 status = nfsd_map_name_to_uid(argp->rqstp, in nfsd4_decode_fattr()
361 if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) in nfsd4_decode_fattr()
372 if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) in nfsd4_decode_fattr()
1812 int auth_slack= argp->rqstp->rq_auth_slack; in nfsd4_decode_compound()
1865 readbytes += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
1867 max_reply += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
1885 svc_reserve(argp->rqstp, max_reply + readbytes); in nfsd4_decode_compound()
1886 argp->rqstp->rq_cachetype = cachethis ? RC_REPLBUFF : RC_NOCACHE; in nfsd4_decode_compound()
1889 clear_bit(RQ_SPLICE_OK, &argp->rqstp->rq_flags); in nfsd4_decode_compound()
[all …]
Dlockd.c27 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) in nlm_fopen() argument
38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen()
Dexport.h83 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp);
84 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp);
Dvfs.h44 int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
83 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
Dnfs4layouts.c236 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, in nfsd4_preprocess_layout_stateid() argument
249 net_generic(SVC_NET(rqstp), nfsd_net_id)); in nfsd4_preprocess_layout_stateid()
460 nfsd4_return_file_layouts(struct svc_rqst *rqstp, in nfsd4_return_file_layouts() argument
470 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
503 nfsd4_return_client_layouts(struct svc_rqst *rqstp, in nfsd4_return_client_layouts() argument
Dxdr3.h188 struct svc_rqst * rqstp; member
344 __be32 *nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p,
Dxdr.h170 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s…
Dnfs4acl.c129 nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd4_get_nfs4_acl() argument
755 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_acl() argument
766 error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR); in nfsd4_set_nfs4_acl()
Dnfsd.h76 int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp);
Dnfs4callback.c516 static int nfs4_xdr_dec_cb_recall(struct rpc_rqst *rqstp, in nfs4_xdr_dec_cb_recall() argument
606 static int nfs4_xdr_dec_cb_layout(struct rpc_rqst *rqstp, in nfs4_xdr_dec_cb_layout() argument
Dstate.h580 extern __be32 nfs4_preprocess_stateid_op(struct svc_rqst *rqstp,
/linux-4.4.14/fs/lockd/
Dsvc4proc.c22 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
42 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) in nlm4svc_retrieve_args()
65 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
75 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument
86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
102 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
[all …]
Dsvcproc.c42 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers))
51 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
64 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args()
71 error = cast_status(nlm_lookup_file(rqstp, &file, &lock->fh)); in nlmsvc_retrieve_args()
95 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument
105 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
125 ntohl(resp->status), rqstp->rq_vers); in nlmsvc_proc_test()
133 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument
[all …]
Dxdr.c185 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_testargs() argument
198 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_testargs()
202 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) in nlmsvc_encode_testres() argument
206 return xdr_ressize_check(rqstp, p); in nlmsvc_encode_testres()
210 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument
226 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_lockargs()
230 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_cancargs() argument
242 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_cancargs()
246 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_unlockargs() argument
252 return xdr_argsize_check(rqstp, p); in nlmsvc_decode_unlockargs()
[all …]
Dxdr4.c182 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_testargs() argument
195 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_testargs()
199 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) in nlm4svc_encode_testres() argument
203 return xdr_ressize_check(rqstp, p); in nlm4svc_encode_testres()
207 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_lockargs() argument
223 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_lockargs()
227 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_cancargs() argument
239 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_cancargs()
243 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_unlockargs() argument
249 return xdr_argsize_check(rqstp, p); in nlm4svc_decode_unlockargs()
[all …]
Dsvc.c131 struct svc_rqst *rqstp = vrqstp; in lockd() local
150 rqstp->rq_server->sv_maxconn = nlm_max_connections; in lockd()
164 err = svc_recv(rqstp, timeout); in lockd()
168 svc_print_addr(rqstp, buf, sizeof(buf))); in lockd()
170 svc_process(rqstp); in lockd()
547 static int lockd_authenticate(struct svc_rqst *rqstp) in lockd_authenticate() argument
549 rqstp->rq_client = NULL; in lockd_authenticate()
550 switch (rqstp->rq_authop->flavour) { in lockd_authenticate()
553 if (rqstp->rq_proc == 0) in lockd_authenticate()
555 if (is_callback(rqstp->rq_proc)) { in lockd_authenticate()
[all …]
Dsvclock.c215 nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_host *host, in nlmsvc_create_block() argument
245 block->b_daemon = rqstp->rq_server; in nlmsvc_create_block()
372 nlmsvc_defer_lock_rqst(struct svc_rqst *rqstp, struct nlm_block *block) in nlmsvc_defer_lock_rqst() argument
380 block->b_cache_req = &rqstp->rq_chandle; in nlmsvc_defer_lock_rqst()
381 if (rqstp->rq_chandle.defer) { in nlmsvc_defer_lock_rqst()
383 rqstp->rq_chandle.defer(block->b_cache_req); in nlmsvc_defer_lock_rqst()
398 nlmsvc_lock(struct svc_rqst *rqstp, struct nlm_file *file, in nlmsvc_lock() argument
421 block = nlmsvc_create_block(rqstp, host, file, lock, cookie); in nlmsvc_lock()
446 if (locks_in_grace(SVC_NET(rqstp)) && !reclaim) { in nlmsvc_lock()
450 if (reclaim && !locks_in_grace(SVC_NET(rqstp))) { in nlmsvc_lock()
[all …]
Dhost.c321 struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp, in nlmsvc_lookup_host() argument
328 struct sockaddr *src_sap = svc_daddr(rqstp); in nlmsvc_lookup_host()
329 size_t src_len = rqstp->rq_daddrlen; in nlmsvc_lookup_host()
330 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host()
333 .sap = svc_addr(rqstp), in nlmsvc_lookup_host()
334 .salen = rqstp->rq_addrlen, in nlmsvc_lookup_host()
335 .protocol = rqstp->rq_prot, in nlmsvc_lookup_host()
336 .version = rqstp->rq_vers, in nlmsvc_lookup_host()
344 (int)hostname_len, hostname, rqstp->rq_vers, in nlmsvc_lookup_host()
345 (rqstp->rq_prot == IPPROTO_UDP ? "udp" : "tcp")); in nlmsvc_lookup_host()
Dsvcsubs.c83 nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result, in nlm_lookup_file() argument
119 if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) { in nlm_lookup_file()
Dmon.c491 static int nsm_xdr_dec_stat_res(struct rpc_rqst *rqstp, in nsm_xdr_dec_stat_res() argument
508 static int nsm_xdr_dec_stat(struct rpc_rqst *rqstp, in nsm_xdr_dec_stat() argument
/linux-4.4.14/fs/nfs/
Dcallback.c76 struct svc_rqst *rqstp = vrqstp; in nfs4_callback_svc() local
84 err = svc_recv(rqstp, MAX_SCHEDULE_TIMEOUT); in nfs4_callback_svc()
87 svc_process(rqstp); in nfs4_callback_svc()
108 struct svc_rqst *rqstp = vrqstp; in nfs41_callback_svc() local
109 struct svc_serv *serv = rqstp->rq_server; in nfs41_callback_svc()
129 error = bc_svc_process(serv, req, rqstp); in nfs41_callback_svc()
148 struct svc_rqst *rqstp; in nfs41_callback_up() local
153 rqstp = svc_prepare_thread(serv, &serv->sv_pools[0], NUMA_NO_NODE); in nfs41_callback_up()
154 dprintk("--> %s return %d\n", __func__, PTR_ERR_OR_ZERO(rqstp)); in nfs41_callback_up()
155 return rqstp; in nfs41_callback_up()
[all …]
Dcallback_xdr.c60 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_null() argument
65 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_decode_void() argument
67 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
70 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument
72 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
196 static __be32 decode_getattr_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_getattr… in decode_getattr_args() argument
209 static __be32 decode_recall_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_recallar… in decode_recall_args() argument
231 static __be32 decode_layoutrecall_args(struct svc_rqst *rqstp, in decode_layoutrecall_args() argument
291 __be32 decode_devicenotify_args(struct svc_rqst *rqstp, in decode_devicenotify_args() argument
432 static __be32 decode_cb_sequence_args(struct svc_rqst *rqstp, in decode_cb_sequence_args() argument
[all …]
Dnfs42xdr.c309 static int nfs4_xdr_dec_allocate(struct rpc_rqst *rqstp, in nfs4_xdr_dec_allocate() argument
319 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
336 static int nfs4_xdr_dec_deallocate(struct rpc_rqst *rqstp, in nfs4_xdr_dec_deallocate() argument
346 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
363 static int nfs4_xdr_dec_seek(struct rpc_rqst *rqstp, in nfs4_xdr_dec_seek() argument
373 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
387 static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp, in nfs4_xdr_dec_layoutstats() argument
397 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutstats()
417 static int nfs4_xdr_dec_clone(struct rpc_rqst *rqstp, in nfs4_xdr_dec_clone() argument
427 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_clone()
Dnfs4xdr.c5772 struct rpc_rqst *rqstp) in decode_sequence() argument
6070 static int nfs4_xdr_dec_open_downgrade(struct rpc_rqst *rqstp, in nfs4_xdr_dec_open_downgrade() argument
6080 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6097 static int nfs4_xdr_dec_access(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_access() argument
6106 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6123 static int nfs4_xdr_dec_lookup(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_lookup() argument
6132 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6152 static int nfs4_xdr_dec_lookup_root(struct rpc_rqst *rqstp, in nfs4_xdr_dec_lookup_root() argument
6162 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6179 static int nfs4_xdr_dec_remove(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_remove() argument
[all …]
/linux-4.4.14/net/sunrpc/auth_gss/
Dsvcauth_gss.c659 gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, in gss_verify_header() argument
666 struct kvec *argv = &rqstp->rq_arg.head[0]; in gss_verify_header()
683 if (rqstp->rq_deferred) /* skip verification of revisited request */ in gss_verify_header()
705 gss_write_null_verf(struct svc_rqst *rqstp) in gss_write_null_verf() argument
709 svc_putnl(rqstp->rq_res.head, RPC_AUTH_NULL); in gss_write_null_verf()
710 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; in gss_write_null_verf()
713 if (!xdr_ressize_check(rqstp, p)) in gss_write_null_verf()
719 gss_write_verf(struct svc_rqst *rqstp, struct gss_ctx *ctx_id, u32 seq) in gss_write_verf() argument
728 svc_putnl(rqstp->rq_res.head, RPC_AUTH_GSS); in gss_write_verf()
734 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; in gss_write_verf()
[all …]
Dauth_gss.c1653 static void gss_wrap_req_encode(kxdreproc_t encode, struct rpc_rqst *rqstp, in gss_wrap_req_encode() argument
1658 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, p); in gss_wrap_req_encode()
1659 encode(rqstp, &xdr, obj); in gss_wrap_req_encode()
1664 kxdreproc_t encode, struct rpc_rqst *rqstp, in gss_wrap_req_integ() argument
1667 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_integ()
1679 *p++ = htonl(rqstp->rq_seqno); in gss_wrap_req_integ()
1681 gss_wrap_req_encode(encode, rqstp, p, obj); in gss_wrap_req_integ()
1711 priv_release_snd_buf(struct rpc_rqst *rqstp) in priv_release_snd_buf() argument
1715 for (i=0; i < rqstp->rq_enc_pages_num; i++) in priv_release_snd_buf()
1716 __free_page(rqstp->rq_enc_pages[i]); in priv_release_snd_buf()
[all …]
Dgss_rpc_xdr.h183 int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp,
Dgss_rpc_xdr.c790 int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp, in gssx_dec_accept_sec_context() argument
/linux-4.4.14/include/linux/sunrpc/
Dsvc.h150 extern u32 svc_max_payload(const struct svc_rqst *rqstp);
334 xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_argsize_check() argument
337 struct kvec *vec = &rqstp->rq_arg.head[0]; in xdr_argsize_check()
343 xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_ressize_check() argument
345 struct kvec *vec = &rqstp->rq_res.head[0]; in xdr_ressize_check()
353 static inline void svc_free_res_pages(struct svc_rqst *rqstp) in svc_free_res_pages() argument
355 while (rqstp->rq_next_page != rqstp->rq_respages) { in svc_free_res_pages()
356 struct page **pp = --rqstp->rq_next_page; in svc_free_res_pages()
482 void svc_reserve(struct svc_rqst *rqstp, int space);
495 static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space) in svc_reserve_auth() argument
[all …]
Dbc_xprt.h49 static inline int svc_is_backchannel(const struct svc_rqst *rqstp) in svc_is_backchannel() argument
51 if (rqstp->rq_server->sv_bc_xprt) in svc_is_backchannel()
62 static inline int svc_is_backchannel(const struct svc_rqst *rqstp) in svc_is_backchannel() argument
Dsvcauth.h141 extern int svc_authenticate(struct svc_rqst *rqstp, __be32 *authp);
142 extern int svc_authorise(struct svc_rqst *rqstp);
143 extern int svc_set_client(struct svc_rqst *rqstp);
156 extern int svcauth_unix_set_client(struct svc_rqst *rqstp);
Dxdr.h40 typedef int (*kxdrproc_t)(void *rqstp, __be32 *data, void *obj);
213 typedef void (*kxdreproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj);
214 typedef int (*kxdrdproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj);
Dauth.h181 int rpcauth_wrap_req(struct rpc_task *task, kxdreproc_t encode, void *rqstp, __be32 *data, void *…
182 int rpcauth_unwrap_resp(struct rpc_task *task, kxdrdproc_t decode, void *rqstp, __be32 *data, voi…
Dsvc_xprt.h122 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt);
Dcache.h216 struct cache_head *h, struct cache_req *rqstp);
/linux-4.4.14/include/linux/lockd/
Dlockd.h230 struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp,
337 static inline int nlm_privileged_requester(const struct svc_rqst *rqstp) in nlm_privileged_requester() argument
339 const struct sockaddr *sap = svc_addr(rqstp); in nlm_privileged_requester()