Home
last modified time | relevance | path

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

/linux-4.1.27/net/sunrpc/
Dsvc_xprt.c23 static int svc_deferred_recv(struct svc_rqst *rqstp);
287 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_copy_addrs() argument
289 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); in svc_xprt_copy_addrs()
290 rqstp->rq_addrlen = xprt->xpt_remotelen; in svc_xprt_copy_addrs()
296 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); in svc_xprt_copy_addrs()
297 rqstp->rq_daddrlen = xprt->xpt_locallen; in svc_xprt_copy_addrs()
308 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) in svc_print_addr() argument
310 return __svc_print_addr(svc_addr(rqstp), buf, len); in svc_print_addr()
326 struct svc_rqst *rqstp = NULL; in svc_xprt_do_enqueue() local
352 list_for_each_entry_rcu(rqstp, &pool->sp_all_threads, rq_all) { in svc_xprt_do_enqueue()
[all …]
Dsvc.c568 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) in svc_init_buffer() argument
573 if (svc_is_backchannel(rqstp)) in svc_init_buffer()
587 rqstp->rq_pages[arghi++] = p; in svc_init_buffer()
597 svc_release_buffer(struct svc_rqst *rqstp) in svc_release_buffer() argument
601 for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) in svc_release_buffer()
602 if (rqstp->rq_pages[i]) in svc_release_buffer()
603 put_page(rqstp->rq_pages[i]); in svc_release_buffer()
609 struct svc_rqst *rqstp; in svc_prepare_thread() local
611 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNEL, node); in svc_prepare_thread()
612 if (!rqstp) in svc_prepare_thread()
[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.c251 struct cache_head *h, struct cache_req *rqstp) in cache_check() argument
263 if (rqstp == NULL) { in cache_check()
283 if (!cache_defer_req(rqstp, h)) { in cache_check()
Dclnt.c2393 static void rpcproc_encode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_encode_null() argument
2397 static int rpcproc_decode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_decode_null() argument
/linux-4.1.27/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.c142 static int send_write(struct svcxprt_rdma *xprt, struct svc_rqst *rqstp, in send_write() argument
188 dma_map_xdr(xprt, &rqstp->rq_res, xdr_off, in send_write()
235 struct svc_rqst *rqstp, in send_write_chunks() argument
238 u32 xfer_len = rqstp->rq_res.page_len + rqstp->rq_res.tail[0].iov_len; in send_write_chunks()
254 for (xdr_off = rqstp->rq_res.head[0].iov_len, chunk_no = 0; in send_write_chunks()
272 ret = send_write(xprt, rqstp, in send_write_chunks()
292 return rqstp->rq_res.page_len + rqstp->rq_res.tail[0].iov_len; in send_write_chunks()
298 struct svc_rqst *rqstp, in send_reply_chunks() argument
301 u32 xfer_len = rqstp->rq_res.len; in send_reply_chunks()
337 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
156 rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base; in svc_rdma_xdr_decode_req()
159 if (rqstp->rq_arg.len <= RPCRDMA_HDRLEN_MIN) { in svc_rdma_xdr_decode_req()
161 rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
183 rqstp->rq_arg.head[0].iov_base = va; in svc_rdma_xdr_decode_req()
185 rqstp->rq_arg.head[0].iov_len -= hdrlen; in svc_rdma_xdr_decode_req()
186 if (hdrlen > rqstp->rq_arg.len) in svc_rdma_xdr_decode_req()
195 vaend = (u32 *)((unsigned long)rmsgp + rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
206 rqstp->rq_arg.head[0].iov_base = va; in svc_rdma_xdr_decode_req()
208 rqstp->rq_arg.head[0].iov_len -= hdr_len; in svc_rdma_xdr_decode_req()
[all …]
Dsvc_rdma_transport.c1101 static void svc_rdma_release_rqst(struct svc_rqst *rqstp) in svc_rdma_release_rqst() argument
1220 static int svc_rdma_secure_port(struct svc_rqst *rqstp) in svc_rdma_secure_port() argument
/linux-4.1.27/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);
313 nfsd_cache_csum(struct svc_rqst *rqstp) in nfsd_cache_csum() argument
318 struct xdr_buf *buf = &rqstp->rq_arg; in nfsd_cache_csum()
343 nfsd_cache_match(struct svc_rqst *rqstp, __wsum csum, struct svc_cacherep *rp) in nfsd_cache_match() argument
346 if (rqstp->rq_xid != rp->c_xid) in nfsd_cache_match()
355 if (rqstp->rq_proc != rp->c_proc || in nfsd_cache_match()
356 rqstp->rq_prot != rp->c_prot || in nfsd_cache_match()
357 rqstp->rq_vers != rp->c_vers || in nfsd_cache_match()
358 rqstp->rq_arg.len != rp->c_len || in nfsd_cache_match()
359 !rpc_cmp_addr(svc_addr(rqstp), (struct sockaddr *)&rp->c_addr) || in nfsd_cache_match()
[all …]
Dnfssvc.c568 struct svc_rqst *rqstp = (struct svc_rqst *) vrqstp; in nfsd() local
569 …struct svc_xprt *perm_sock = list_entry(rqstp->rq_server->sv_permsocks.next, typeof(struct svc_xpr… in nfsd()
606 rqstp->rq_server->sv_maxconn = nn->max_connections; in nfsd()
612 while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN) in nfsd()
617 svc_process(rqstp); in nfsd()
628 rqstp->rq_server = NULL; in nfsd()
631 svc_exit_thread(rqstp); in nfsd()
651 nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) in nfsd_dispatch() argument
659 rqstp->rq_vers, rqstp->rq_proc); in nfsd_dispatch()
660 proc = rqstp->rq_procinfo; in nfsd_dispatch()
[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 …]
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
68 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr()
79 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument
88 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup()
99 nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, in nfsd_proc_readlink() argument
108 nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); in nfsd_proc_readlink()
119 nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, in nfsd_proc_read() argument
[all …]
Dnfs4idmap.c494 idmap_lookup(struct svc_rqst *rqstp, in idmap_lookup() argument
504 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
517 rqst_authname(struct svc_rqst *rqstp) in rqst_authname() argument
521 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname()
526 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument
533 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_name_to_id()
539 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); in idmap_name_to_id()
540 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id()
565 struct svc_rqst *rqstp, int type, u32 id) in idmap_id_to_name() argument
573 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.h582 struct svc_rqst *rqstp; member
596 struct svc_rqst * rqstp; member
607 struct nfsd4_compoundargs *args = resp->rqstp->rq_argp; in nfsd4_is_solo_sequence()
617 static inline bool nfsd4_last_compound_op(struct svc_rqst *rqstp) in nfsd4_last_compound_op() argument
619 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_last_compound_op()
620 struct nfsd4_compoundargs *argp = rqstp->rq_argp; in nfsd4_last_compound_op()
625 int nfsd4_max_reply(struct svc_rqst *rqstp, struct nfsd4_op *op);
658 extern __be32 nfsd4_setclientid(struct svc_rqst *rqstp,
661 extern __be32 nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
664 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.c1471 static struct nfsd4_conn *alloc_conn(struct svc_rqst *rqstp, u32 flags) in alloc_conn() argument
1478 svc_xprt_get(rqstp->rq_xprt); in alloc_conn()
1479 conn->cn_xprt = rqstp->rq_xprt; in alloc_conn()
1506 static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *… in nfsd4_init_conn() argument
1519 static struct nfsd4_conn *alloc_conn_from_crses(struct svc_rqst *rqstp, struct nfsd4_create_session… in alloc_conn_from_crses() argument
1525 return alloc_conn(rqstp, dir); in alloc_conn_from_crses()
1561 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp… in init_session() argument
1564 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in init_session()
1583 struct sockaddr *sa = svc_addr(rqstp); in init_session()
1932 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.c336 status = nfsd_map_name_to_gid(argp->rqstp, in nfsd4_decode_fattr()
339 status = nfsd_map_name_to_uid(argp->rqstp, in nfsd4_decode_fattr()
360 if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) in nfsd4_decode_fattr()
371 if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) in nfsd4_decode_fattr()
1811 int auth_slack= argp->rqstp->rq_auth_slack; in nfsd4_decode_compound()
1864 readbytes += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
1866 max_reply += nfsd4_max_reply(argp->rqstp, op); in nfsd4_decode_compound()
1884 svc_reserve(argp->rqstp, max_reply + readbytes); in nfsd4_decode_compound()
1885 argp->rqstp->rq_cachetype = cachethis ? RC_REPLBUFF : RC_NOCACHE; in nfsd4_decode_compound()
1888 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.h82 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp);
83 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp);
Dnfs4layouts.c234 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, in nfsd4_preprocess_layout_stateid() argument
247 net_generic(SVC_NET(rqstp), nfsd_net_id)); in nfsd4_preprocess_layout_stateid()
457 nfsd4_return_file_layouts(struct svc_rqst *rqstp, in nfsd4_return_file_layouts() argument
467 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
502 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…
Dvfs.h44 int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
Dnfs4acl.c139 nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd4_get_nfs4_acl() argument
767 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_acl() argument
778 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
/linux-4.1.27/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 …]
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 …]
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 …]
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()
542 static int lockd_authenticate(struct svc_rqst *rqstp) in lockd_authenticate() argument
544 rqstp->rq_client = NULL; in lockd_authenticate()
545 switch (rqstp->rq_authop->flavour) { in lockd_authenticate()
548 if (rqstp->rq_proc == 0) in lockd_authenticate()
550 if (is_callback(rqstp->rq_proc)) { in lockd_authenticate()
[all …]
Dhost.c320 struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp, in nlmsvc_lookup_host() argument
327 struct sockaddr *src_sap = svc_daddr(rqstp); in nlmsvc_lookup_host()
328 size_t src_len = rqstp->rq_daddrlen; in nlmsvc_lookup_host()
329 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host()
332 .sap = svc_addr(rqstp), in nlmsvc_lookup_host()
333 .salen = rqstp->rq_addrlen, in nlmsvc_lookup_host()
334 .protocol = rqstp->rq_prot, in nlmsvc_lookup_host()
335 .version = rqstp->rq_vers, in nlmsvc_lookup_host()
343 (int)hostname_len, hostname, rqstp->rq_vers, in nlmsvc_lookup_host()
344 (rqstp->rq_prot == IPPROTO_UDP ? "udp" : "tcp")); in nlmsvc_lookup_host()
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 …]
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.c542 static int nsm_xdr_dec_stat_res(struct rpc_rqst *rqstp, in nsm_xdr_dec_stat_res() argument
559 static int nsm_xdr_dec_stat(struct rpc_rqst *rqstp, in nsm_xdr_dec_stat() argument
/linux-4.1.27/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()
119 struct svc_rqst *rqstp = vrqstp; in nfs41_callback_svc() local
120 struct svc_serv *serv = rqstp->rq_server; in nfs41_callback_svc()
140 error = bc_svc_process(serv, req, rqstp); in nfs41_callback_svc()
159 struct svc_rqst *rqstp; in nfs41_callback_up() local
164 rqstp = svc_prepare_thread(serv, &serv->sv_pools[0], NUMA_NO_NODE); in nfs41_callback_up()
165 if (IS_ERR(rqstp)) { in nfs41_callback_up()
169 dprintk("--> %s return %d\n", __func__, PTR_ERR_OR_ZERO(rqstp)); in nfs41_callback_up()
[all …]
Dcallback_xdr.c58 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_null() argument
63 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_decode_void() argument
65 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
68 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument
70 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
194 static __be32 decode_getattr_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_getattr… in decode_getattr_args() argument
201 args->addr = svc_addr(rqstp); in decode_getattr_args()
208 static __be32 decode_recall_args(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct cb_recallar… in decode_recall_args() argument
213 args->addr = svc_addr(rqstp); in decode_recall_args()
231 static __be32 decode_layoutrecall_args(struct svc_rqst *rqstp, in decode_layoutrecall_args() argument
[all …]
Dnfs42xdr.c175 static int nfs4_xdr_dec_allocate(struct rpc_rqst *rqstp, in nfs4_xdr_dec_allocate() argument
185 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
202 static int nfs4_xdr_dec_deallocate(struct rpc_rqst *rqstp, in nfs4_xdr_dec_deallocate() argument
212 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
229 static int nfs4_xdr_dec_seek(struct rpc_rqst *rqstp, in nfs4_xdr_dec_seek() argument
239 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
Dnfs4xdr.c5686 struct rpc_rqst *rqstp) in decode_sequence() argument
5984 static int nfs4_xdr_dec_open_downgrade(struct rpc_rqst *rqstp, in nfs4_xdr_dec_open_downgrade() argument
5994 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6011 static int nfs4_xdr_dec_access(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_access() argument
6020 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6037 static int nfs4_xdr_dec_lookup(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_lookup() argument
6046 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6066 static int nfs4_xdr_dec_lookup_root(struct rpc_rqst *rqstp, in nfs4_xdr_dec_lookup_root() argument
6076 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6093 static int nfs4_xdr_dec_remove(struct rpc_rqst *rqstp, struct xdr_stream *xdr, in nfs4_xdr_dec_remove() argument
[all …]
/linux-4.1.27/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.c1654 static void gss_wrap_req_encode(kxdreproc_t encode, struct rpc_rqst *rqstp, in gss_wrap_req_encode() argument
1659 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, p); in gss_wrap_req_encode()
1660 encode(rqstp, &xdr, obj); in gss_wrap_req_encode()
1665 kxdreproc_t encode, struct rpc_rqst *rqstp, in gss_wrap_req_integ() argument
1668 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_integ()
1680 *p++ = htonl(rqstp->rq_seqno); in gss_wrap_req_integ()
1682 gss_wrap_req_encode(encode, rqstp, p, obj); in gss_wrap_req_integ()
1712 priv_release_snd_buf(struct rpc_rqst *rqstp) in priv_release_snd_buf() argument
1716 for (i=0; i < rqstp->rq_enc_pages_num; i++) in priv_release_snd_buf()
1717 __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.1.27/include/linux/sunrpc/
Dsvc.h145 extern u32 svc_max_payload(const struct svc_rqst *rqstp);
329 xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_argsize_check() argument
332 struct kvec *vec = &rqstp->rq_arg.head[0]; in xdr_argsize_check()
338 xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) in xdr_ressize_check() argument
340 struct kvec *vec = &rqstp->rq_res.head[0]; in xdr_ressize_check()
348 static inline void svc_free_res_pages(struct svc_rqst *rqstp) in svc_free_res_pages() argument
350 while (rqstp->rq_next_page != rqstp->rq_respages) { in svc_free_res_pages()
351 struct page **pp = --rqstp->rq_next_page; in svc_free_res_pages()
450 void svc_reserve(struct svc_rqst *rqstp, int space);
463 static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space) in svc_reserve_auth() argument
[all …]
Dbc_xprt.h45 static inline int svc_is_backchannel(const struct svc_rqst *rqstp) in svc_is_backchannel() argument
47 if (rqstp->rq_server->sv_bc_xprt) in svc_is_backchannel()
58 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.h177 int rpcauth_wrap_req(struct rpc_task *task, kxdreproc_t encode, void *rqstp, __be32 *data, void *…
178 int rpcauth_unwrap_resp(struct rpc_task *task, kxdrdproc_t decode, void *rqstp, __be32 *data, voi…
Dsvc_xprt.h121 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt);
Dcache.h210 struct cache_head *h, struct cache_req *rqstp);
/linux-4.1.27/include/linux/lockd/
Dlockd.h229 struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp,
333 static inline int nlm_privileged_requester(const struct svc_rqst *rqstp) in nlm_privileged_requester() argument
335 const struct sockaddr *sap = svc_addr(rqstp); in nlm_privileged_requester()