/linux-master/include/linux/lockd/ |
H A D | xdr4.h | 26 bool nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); 27 bool nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 28 bool nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 29 bool nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 30 bool nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 31 bool nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 32 bool nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr); 33 bool nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 34 bool nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr); 36 bool nlm4svc_encode_testres(struct svc_rqst *rqstp, struc [all...] |
H A D | xdr.h | 102 bool nlmsvc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); 103 bool nlmsvc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 104 bool nlmsvc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 105 bool nlmsvc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 106 bool nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 107 bool nlmsvc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 108 bool nlmsvc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr); 109 bool nlmsvc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 110 bool nlmsvc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr); 112 bool nlmsvc_encode_testres(struct svc_rqst *rqstp, struc [all...] |
/linux-master/net/sunrpc/ |
H A D | svc.c | 603 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size, int node) argument 608 if (svc_is_backchannel(rqstp)) 619 rqstp->rq_pages); 627 svc_release_buffer(struct svc_rqst *rqstp) argument 631 for (i = 0; i < ARRAY_SIZE(rqstp->rq_pages); i++) 632 if (rqstp->rq_pages[i]) 633 put_page(rqstp->rq_pages[i]); 639 struct svc_rqst *rqstp; local 641 rqstp = kzalloc_node(sizeof(*rqstp), GFP_KERNE 675 struct svc_rqst *rqstp; local 706 struct svc_rqst *rqstp; local 770 struct svc_rqst *rqstp; local 865 svc_rqst_replace_page(struct svc_rqst *rqstp, struct page *page) argument 894 svc_rqst_release_pages(struct svc_rqst *rqstp) argument 910 svc_rqst_free(struct svc_rqst *rqstp) argument 924 svc_exit_thread(struct svc_rqst *rqstp) argument 1217 svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) argument 1233 svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) argument 1237 svc_generic_init_request(struct svc_rqst *rqstp, const struct svc_program *progp, struct svc_process_info *ret) argument 1293 svc_process_common(struct svc_rqst *rqstp) argument 1505 svc_process(struct svc_rqst *rqstp) argument 1560 svc_process_bc(struct rpc_rqst *req, struct svc_rqst *rqstp) argument 1635 svc_max_payload(const struct svc_rqst *rqstp) argument 1652 svc_proc_name(const struct svc_rqst *rqstp) argument 1669 svc_encode_result_payload(struct svc_rqst *rqstp, unsigned int offset, unsigned int length) argument 1684 svc_fill_write_vector(struct svc_rqst *rqstp, struct xdr_buf *payload) argument 1728 svc_fill_symlink_pathname(struct svc_rqst *rqstp, struct kvec *first, void *p, size_t total) argument [all...] |
H A D | svc_xprt.c | 31 static int svc_deferred_recv(struct svc_rqst *rqstp); 363 * Copy the local and remote xprt addresses to the rqstp structure 365 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) argument 367 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); 368 rqstp->rq_addrlen = xprt->xpt_remotelen; 374 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); 375 rqstp->rq_daddrlen = xprt->xpt_locallen; 381 * @rqstp: svc_rqst struct containing address to print 386 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) argument 388 return __svc_print_addr(svc_addr(rqstp), bu 400 svc_xprt_reserve_slot(struct svc_rqst *rqstp, struct svc_xprt *xprt) argument 411 svc_xprt_release_slot(struct svc_rqst *rqstp) argument 503 svc_reserve(struct svc_rqst *rqstp, int space) argument 527 svc_xprt_release(struct svc_rqst *rqstp) argument 642 svc_alloc_arg(struct svc_rqst *rqstp) argument 689 svc_thread_should_sleep(struct svc_rqst *rqstp) argument 715 svc_thread_wait_for_work(struct svc_rqst *rqstp) argument 761 svc_handle_xprt(struct svc_rqst *rqstp, struct svc_xprt *xprt) argument 824 svc_thread_wake_next(struct svc_rqst *rqstp) argument 841 svc_recv(struct svc_rqst *rqstp) argument 894 svc_drop(struct svc_rqst *rqstp) argument 905 svc_send(struct svc_rqst *rqstp) argument 1174 struct svc_rqst *rqstp = container_of(req, struct svc_rqst, rq_chandle); local 1217 svc_deferred_recv(struct svc_rqst *rqstp) argument [all...] |
H A D | svcauth.c | 65 * @rqstp: RPC execution context 75 enum svc_auth_status svc_authenticate(struct svc_rqst *rqstp) argument 80 rqstp->rq_auth_stat = rpc_auth_ok; 86 if (xdr_stream_decode_u32(&rqstp->rq_arg_stream, &flavor) < 0) 91 rqstp->rq_auth_stat = rpc_autherr_badcred; 95 rqstp->rq_auth_slack = 0; 96 init_svc_cred(&rqstp->rq_cred); 98 rqstp->rq_authop = aops; 99 return aops->accept(rqstp); 105 * @rqstp 113 svc_set_client(struct svc_rqst *rqstp) argument 126 svc_authorise(struct svc_rqst *rqstp) argument 169 svc_auth_flavor(struct svc_rqst *rqstp) argument [all...] |
H A D | svcsock.c | 128 * @ctxt: the context from rqstp->rq_xprt_ctxt or dr->xprt_ctxt 138 * @ctxt: the context from rqstp->rq_xprt_ctxt or dr->xprt_ctxt 156 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 159 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); 168 svc_daddr_in(rqstp)->sin_addr.s_addr; 175 struct sockaddr_in6 *daddr = svc_daddr_in6(rqstp); 187 static int svc_sock_result_payload(struct svc_rqst *rqstp, unsigned int offset, argument 297 * Read from @rqstp's transport socket. The incoming message fills whole 298 * pages in @rqstp's rq_pages array until the last page of the message 301 static ssize_t svc_tcp_read_msg(struct svc_rqst *rqstp, size_ argument 354 svc_sock_secure_port(struct svc_rqst *rqstp) argument 500 svc_udp_get_dest_address4(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 517 svc_udp_get_dest_address6(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 539 svc_udp_get_dest_address(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 562 svc_udp_recvfrom(struct svc_rqst *rqstp) argument 686 svc_udp_sendto(struct svc_rqst *rqstp) argument 948 svc_tcp_restore_pages(struct svc_sock *svsk, struct svc_rqst *rqstp) argument 968 svc_tcp_save_pages(struct svc_sock *svsk, struct svc_rqst *rqstp) argument 1006 svc_tcp_read_marker(struct svc_sock *svsk, struct svc_rqst *rqstp) argument 1046 receive_cb_reply(struct svc_sock *svsk, struct svc_rqst *rqstp) argument 1109 svc_tcp_recvfrom(struct svc_rqst *rqstp) argument 1210 svc_tcp_sendmsg(struct svc_sock *svsk, struct svc_rqst *rqstp, rpc_fraghdr marker, unsigned int *sentp) argument 1254 svc_tcp_sendto(struct svc_rqst *rqstp) argument [all...] |
H A D | svcauth_unix.c | 642 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) argument 647 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, 653 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); 669 svcauth_unix_set_client(struct svc_rqst *rqstp) argument 675 struct svc_cred *cred = &rqstp->rq_cred; 676 struct svc_xprt *xprt = rqstp->rq_xprt; 680 switch (rqstp->rq_addr.ss_family) { 682 sin = svc_addr_in(rqstp); 687 sin6 = svc_addr_in6(rqstp); 693 rqstp 754 svcauth_null_accept(struct svc_rqst *rqstp) argument 795 svcauth_null_release(struct svc_rqst *rqstp) argument 831 svcauth_tls_accept(struct svc_rqst *rqstp) argument 916 svcauth_unix_accept(struct svc_rqst *rqstp) argument 994 svcauth_unix_release(struct svc_rqst *rqstp) argument [all...] |
/linux-master/fs/nfsd/ |
H A D | xdr.h | 144 bool nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 145 bool nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 146 bool nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 147 bool nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 148 bool nfssvc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 149 bool nfssvc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 150 bool nfssvc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 151 bool nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 152 bool nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 153 bool nfssvc_decode_readdirargs(struct svc_rqst *rqstp, struc [all...] |
H A D | xdr3.h | 183 struct svc_rqst * rqstp; member in struct:nfsd3_readdirres 268 bool nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 269 bool nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 270 bool nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 271 bool nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 272 bool nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 273 bool nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 274 bool nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 275 bool nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 276 bool nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struc [all...] |
H A D | nfs3xdr.c | 210 svcxdr_decode_sattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 234 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), uid); 245 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), gid); 327 svcxdr_decode_devicedata3(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 330 return svcxdr_decode_sattr3(rqstp, xdr, &args->attrs) && 335 svcxdr_encode_fattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 338 struct user_namespace *userns = nfsd_user_namespace(rqstp); 417 * @rqstp: Context of a completed RPC transaction 426 svcxdr_encode_post_op_attr(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 445 if (!svcxdr_encode_fattr3(rqstp, xd 458 svcxdr_encode_wcc_data(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp) argument 492 nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 500 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 510 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 518 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 531 nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 546 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 576 nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 600 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 610 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 629 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 657 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 668 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 678 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 696 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 718 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 738 nfs3svc_encode_getattrres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 757 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 767 nfs3svc_encode_lookupres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 792 nfs3svc_encode_accessres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 815 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 843 nfs3svc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 876 nfs3svc_encode_writeres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 903 nfs3svc_encode_createres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 928 nfs3svc_encode_renameres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 939 nfs3svc_encode_linkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 950 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 1204 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 1250 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 1292 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 1315 nfs3svc_encode_commitres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 1340 nfs3svc_release_fhandle(struct svc_rqst *rqstp) argument 1348 nfs3svc_release_fhandle2(struct svc_rqst *rqstp) argument [all...] |
H A D | nfs3proc.c | 35 nfsd3_proc_null(struct svc_rqst *rqstp) argument 44 nfsd3_proc_getattr(struct svc_rqst *rqstp) argument 46 struct nfsd_fhandle *argp = rqstp->rq_argp; 47 struct nfsd3_attrstat *resp = rqstp->rq_resp; 53 resp->status = fh_verify(rqstp, &resp->fh, 0, 67 nfsd3_proc_setattr(struct svc_rqst *rqstp) argument 69 struct nfsd3_sattrargs *argp = rqstp->rq_argp; 70 struct nfsd3_attrstat *resp = rqstp->rq_resp; 82 resp->status = nfsd_setattr(rqstp, &resp->fh, &attrs, guardtime); 90 nfsd3_proc_lookup(struct svc_rqst *rqstp) argument 113 nfsd3_proc_access(struct svc_rqst *rqstp) argument 132 nfsd3_proc_readlink(struct svc_rqst *rqstp) argument 152 nfsd3_proc_read(struct svc_rqst *rqstp) argument 189 nfsd3_proc_write(struct svc_rqst *rqstp) argument 226 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct svc_fh *resfhp, struct nfsd3_createargs *argp) argument 347 nfsd3_proc_create(struct svc_rqst *rqstp) argument 369 nfsd3_proc_mkdir(struct svc_rqst *rqstp) argument 391 nfsd3_proc_symlink(struct svc_rqst *rqstp) argument 434 nfsd3_proc_mknod(struct svc_rqst *rqstp) argument 475 nfsd3_proc_remove(struct svc_rqst *rqstp) argument 496 nfsd3_proc_rmdir(struct svc_rqst *rqstp) argument 513 nfsd3_proc_rename(struct svc_rqst *rqstp) argument 535 nfsd3_proc_link(struct svc_rqst *rqstp) argument 554 nfsd3_init_dirlist_pages(struct svc_rqst *rqstp, struct nfsd3_readdirres *resp, u32 count) argument 578 nfsd3_proc_readdir(struct svc_rqst *rqstp) argument 611 nfsd3_proc_readdirplus(struct svc_rqst *rqstp) argument 654 nfsd3_proc_fsstat(struct svc_rqst *rqstp) argument 671 nfsd3_proc_fsinfo(struct svc_rqst *rqstp) argument 714 nfsd3_proc_pathconf(struct svc_rqst *rqstp) argument 756 nfsd3_proc_commit(struct svc_rqst *rqstp) argument [all...] |
H A D | nfs2acl.c | 22 nfsacld_proc_null(struct svc_rqst *rqstp) argument 30 static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp) argument 32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; 33 struct nfsd3_getaclres *resp = rqstp->rq_resp; 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); 93 static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp) argument 95 struct nfsd3_setaclargs *argp = rqstp->rq_argp; 96 struct nfsd_attrstat *resp = rqstp->rq_resp; 104 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); 149 static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp) argument 168 nfsacld_proc_access(struct svc_rqst *rqstp) argument 192 nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 205 nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 226 nfsaclsvc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 244 nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 274 nfsaclsvc_encode_accessres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 295 nfsaclsvc_release_getacl(struct svc_rqst *rqstp) argument 304 nfsaclsvc_release_access(struct svc_rqst *rqstp) argument [all...] |
H A D | nfsxdr.c | 130 svcxdr_decode_sattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 154 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), tmp1); 161 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), tmp1); 204 * @rqstp: Context of a completed RPC transaction 214 svcxdr_encode_fattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, argument 217 struct user_namespace *userns = nfsd_user_namespace(rqstp); 276 nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 278 struct nfsd_fhandle *args = rqstp->rq_argp; 284 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 286 struct nfsd_sattrargs *args = rqstp 293 nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 301 nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 320 nfssvc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 346 nfssvc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 356 nfssvc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 367 nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 377 nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 397 nfssvc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 416 nfssvc_encode_statres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 424 nfssvc_encode_attrstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 441 nfssvc_encode_diropres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 460 nfssvc_encode_readlinkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 482 nfssvc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 507 nfssvc_encode_readdirres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 530 nfssvc_encode_statfsres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 644 nfssvc_release_attrstat(struct svc_rqst *rqstp) argument 651 nfssvc_release_diropres(struct svc_rqst *rqstp) argument 658 nfssvc_release_readres(struct svc_rqst *rqstp) argument [all...] |
H A D | nfs3acl.c | 20 nfsd3_proc_null(struct svc_rqst *rqstp) argument 28 static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) argument 30 struct nfsd3_getaclargs *argp = rqstp->rq_argp; 31 struct nfsd3_getaclres *resp = rqstp->rq_resp; 37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); 85 static __be32 nfsd3_proc_setacl(struct svc_rqst *rqstp) argument 87 struct nfsd3_setaclargs *argp = rqstp->rq_argp; 88 struct nfsd3_attrstat *resp = rqstp->rq_resp; 94 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); 131 nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, struc argument 144 nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 170 nfs3svc_encode_getaclres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 204 nfs3svc_encode_setaclres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 215 nfs3svc_release_getacl(struct svc_rqst *rqstp) argument [all...] |
H A D | nfsproc.c | 17 nfsd_proc_null(struct svc_rqst *rqstp) argument 27 nfsd_proc_getattr(struct svc_rqst *rqstp) argument 29 struct nfsd_fhandle *argp = rqstp->rq_argp; 30 struct nfsd_attrstat *resp = rqstp->rq_resp; 35 resp->status = fh_verify(rqstp, &resp->fh, 0, 49 nfsd_proc_setattr(struct svc_rqst *rqstp) argument 51 struct nfsd_sattrargs *argp = rqstp->rq_argp; 52 struct nfsd_attrstat *resp = rqstp->rq_resp; 89 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); 106 resp->status = nfsd_setattr(rqstp, fh 117 nfsd_proc_root(struct svc_rqst *rqstp) argument 129 nfsd_proc_lookup(struct svc_rqst *rqstp) argument 153 nfsd_proc_readlink(struct svc_rqst *rqstp) argument 175 nfsd_proc_read(struct svc_rqst *rqstp) argument 208 nfsd_proc_writecache(struct svc_rqst *rqstp) argument 218 nfsd_proc_write(struct svc_rqst *rqstp) argument 248 nfsd_proc_create(struct svc_rqst *rqstp) argument 410 nfsd_proc_remove(struct svc_rqst *rqstp) argument 426 nfsd_proc_rename(struct svc_rqst *rqstp) argument 444 nfsd_proc_link(struct svc_rqst *rqstp) argument 464 nfsd_proc_symlink(struct svc_rqst *rqstp) argument 506 nfsd_proc_mkdir(struct svc_rqst *rqstp) argument 538 nfsd_proc_rmdir(struct svc_rqst *rqstp) argument 551 nfsd_init_dirlist_pages(struct svc_rqst *rqstp, struct nfsd_readdirres *resp, u32 count) argument 573 nfsd_proc_readdir(struct svc_rqst *rqstp) argument 600 nfsd_proc_statfs(struct svc_rqst *rqstp) argument [all...] |
H A D | acl.h | 48 int nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry,
|
H A D | auth.c | 8 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) argument 14 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) 21 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) argument 27 int flags = nfsexp_flags(rqstp, exp); 35 new->fsuid = rqstp->rq_cred.cr_uid; 36 new->fsgid = rqstp->rq_cred.cr_gid; 38 rqgi = rqstp->rq_cred.cr_group_info;
|
/linux-master/fs/lockd/ |
H A D | svcproc.c | 43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) 52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 66 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 73 error = cast_status(nlm_lookup_file(rqstp, &file, lock)); 105 nlmsvc_proc_null(struct svc_rqst *rqstp) argument 115 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) argument 117 struct nlm_args *argp = rqstp->rq_argp; 127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) 133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); 138 ntohl(resp->status), rqstp 147 nlmsvc_proc_test(struct svc_rqst *rqstp) argument 153 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) argument 196 nlmsvc_proc_lock(struct svc_rqst *rqstp) argument 202 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) argument 234 nlmsvc_proc_cancel(struct svc_rqst *rqstp) argument 243 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) argument 275 nlmsvc_proc_unlock(struct svc_rqst *rqstp) argument 285 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) argument 298 nlmsvc_proc_granted(struct svc_rqst *rqstp) argument 333 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, __be32 (*func)(struct svc_rqst *, struct nlm_res *)) argument 364 nlmsvc_proc_test_msg(struct svc_rqst *rqstp) argument 370 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp) argument 376 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp) argument 383 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp) argument 390 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp) argument 400 nlmsvc_proc_share(struct svc_rqst *rqstp) argument 435 nlmsvc_proc_unshare(struct svc_rqst *rqstp) argument 470 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp) argument 484 nlmsvc_proc_free_all(struct svc_rqst *rqstp) argument 502 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp) argument 523 nlmsvc_proc_granted_res(struct svc_rqst *rqstp) argument 537 nlmsvc_proc_unused(struct svc_rqst *rqstp) argument [all...] |
H A D | svc4proc.c | 23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 49 error = nlm_lookup_file(rqstp, &file, lock); 84 nlm4svc_proc_null(struct svc_rqst *rqstp) argument 94 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) argument 96 struct nlm_args *argp = rqstp->rq_argp; 106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); 124 nlm4svc_proc_test(struct svc_rqst *rqstp) argument 126 return __nlm4svc_proc_test(rqstp, rqst 130 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) argument 173 nlm4svc_proc_lock(struct svc_rqst *rqstp) argument 179 __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) argument 210 nlm4svc_proc_cancel(struct svc_rqst *rqstp) argument 219 __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) argument 250 nlm4svc_proc_unlock(struct svc_rqst *rqstp) argument 260 __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) argument 273 nlm4svc_proc_granted(struct svc_rqst *rqstp) argument 300 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, __be32 (*func)(struct svc_rqst *, struct nlm_res *)) argument 331 nlm4svc_proc_test_msg(struct svc_rqst *rqstp) argument 337 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp) argument 343 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp) argument 349 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp) argument 355 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp) argument 365 nlm4svc_proc_share(struct svc_rqst *rqstp) argument 400 nlm4svc_proc_unshare(struct svc_rqst *rqstp) argument 435 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp) argument 449 nlm4svc_proc_free_all(struct svc_rqst *rqstp) argument 467 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp) argument 488 nlm4svc_proc_granted_res(struct svc_rqst *rqstp) argument 502 nlm4svc_proc_unused(struct svc_rqst *rqstp) argument [all...] |
H A D | xdr.c | 149 nlmsvc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 155 nlmsvc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 157 struct nlm_args *argp = rqstp->rq_argp; 173 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 175 struct nlm_args *argp = rqstp->rq_argp; 198 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 200 struct nlm_args *argp = rqstp->rq_argp; 218 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 220 struct nlm_args *argp = rqstp->rq_argp; 232 nlmsvc_decode_res(struct svc_rqst *rqstp, struc argument 245 nlmsvc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 271 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 298 nlmsvc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 317 nlmsvc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 323 nlmsvc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 332 nlmsvc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 341 nlmsvc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument [all...] |
H A D | xdr4.c | 144 nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 150 nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 152 struct nlm_args *argp = rqstp->rq_argp; 168 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 170 struct nlm_args *argp = rqstp->rq_argp; 193 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 195 struct nlm_args *argp = rqstp->rq_argp; 213 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 215 struct nlm_args *argp = rqstp->rq_argp; 227 nlm4svc_decode_res(struct svc_rqst *rqstp, struc argument 240 nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 266 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 293 nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 312 nlm4svc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 318 nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 327 nlm4svc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument 336 nlm4svc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) argument [all...] |
/linux-master/include/linux/sunrpc/ |
H A D | svc.h | 132 extern u32 svc_max_payload(const struct svc_rqst *rqstp); 287 * @rqstp: the thread that might need to stop 299 static inline bool svc_thread_should_stop(struct svc_rqst *rqstp) argument 301 if (test_and_clear_bit(SP_NEED_VICTIM, &rqstp->rq_pool->sp_flags)) 302 set_bit(RQ_VICTIM, &rqstp->rq_flags); 304 return test_bit(RQ_VICTIM, &rqstp->rq_flags); 322 int (*dispatch)(struct svc_rqst *rqstp); 342 enum svc_auth_status (*pg_authenticate)(struct svc_rqst *rqstp); 373 int (*vs_dispatch)(struct svc_rqst *rqstp); 383 bool (*pc_decode)(struct svc_rqst *rqstp, 461 svc_reserve_auth(struct svc_rqst *rqstp, int space) argument 471 svcxdr_init_decode(struct svc_rqst *rqstp) argument 489 svcxdr_init_encode(struct svc_rqst *rqstp) argument 518 svcxdr_encode_opaque_pages(struct svc_rqst *rqstp, struct xdr_stream *xdr, struct page **pages, unsigned int base, unsigned int len) argument 536 svcxdr_set_auth_slack(struct svc_rqst *rqstp, int slack) argument 559 svcxdr_set_accept_stat(struct svc_rqst *rqstp) argument [all...] |
H A D | svcauth.h | 108 * OK - authorised. client and credential are set in rqstp. 138 * Returns RPC_AUTH pseudoflavor in use by @rqstp. 145 enum svc_auth_status (*accept)(struct svc_rqst *rqstp); 146 int (*release)(struct svc_rqst *rqstp); 148 enum svc_auth_status (*set_client)(struct svc_rqst *rqstp); 149 rpc_authflavor_t (*pseudoflavor)(struct svc_rqst *rqstp); 154 extern enum svc_auth_status svc_authenticate(struct svc_rqst *rqstp); 155 extern rpc_authflavor_t svc_auth_flavor(struct svc_rqst *rqstp); 156 extern int svc_authorise(struct svc_rqst *rqstp); 157 extern enum svc_auth_status svc_set_client(struct svc_rqst *rqstp); [all...] |
/linux-master/net/sunrpc/auth_gss/ |
H A D | svcauth_gss.c | 644 * @rqstp: RPC Call to use when reporting errors 652 * %true: @rqstp's GSS sequence number is inside the window 653 * %false: @rqstp's GSS sequence number is outside the window 655 static bool gss_check_seq_num(const struct svc_rqst *rqstp, struct rsc *rsci, argument 685 trace_rpcgss_svc_seqno_low(rqstp, seq_num, 690 trace_rpcgss_svc_seqno_seen(rqstp, seq_num); 702 svcauth_gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, argument 705 struct xdr_stream *xdr = &rqstp->rq_arg_stream; 724 rqstp->rq_auth_stat = rpc_autherr_badverf; 728 rqstp 757 svcauth_gss_encode_verf(struct svc_rqst *rqstp, struct gss_ctx *ctx_id, u32 seq) argument 860 svcauth_gss_unwrap_integ(struct svc_rqst *rqstp, u32 seq, struct gss_ctx *ctx) argument 936 svcauth_gss_unwrap_priv(struct svc_rqst *rqstp, u32 seq, struct gss_ctx *ctx) argument 980 svcauth_gss_set_client(struct svc_rqst *rqstp) argument 1010 svcauth_gss_proc_init_verf(struct cache_detail *cd, struct svc_rqst *rqstp, struct xdr_netobj *out_handle, int *major_status, u32 seq_num) argument 1051 gss_read_proxy_verf(struct svc_rqst *rqstp, struct rpc_gss_wire_cred *gc, struct xdr_netobj *in_handle, struct gssp_in_token *in_token) argument 1160 svcauth_gss_legacy_init(struct svc_rqst *rqstp, struct rpc_gss_wire_cred *gc) argument 1296 svcauth_gss_proxy_init(struct svc_rqst *rqstp, struct rpc_gss_wire_cred *gc) argument 1381 svcauth_gss_proc_init(struct svc_rqst *rqstp, struct rpc_gss_wire_cred *gc) argument 1628 svcauth_gss_accept(struct svc_rqst *rqstp) argument 1754 svcauth_gss_prepare_to_wrap(struct svc_rqst *rqstp, struct gss_svc_data *gsd) argument 1790 svcauth_gss_wrap_integ(struct svc_rqst *rqstp) argument 1851 svcauth_gss_wrap_priv(struct svc_rqst *rqstp) argument 1940 svcauth_gss_release(struct svc_rqst *rqstp) argument 2007 svcauth_gss_pseudoflavor(struct svc_rqst *rqstp) argument [all...] |
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 87 * from rqstp::rq_pages into ctxt::pages. The consumed elements of 235 * @vctxt: the context from rqstp->rq_xprt_ctxt or dr->xprt_ctxt 397 static void svc_rdma_build_arg_xdr(struct svc_rqst *rqstp, argument 400 struct xdr_buf *arg = &rqstp->rq_arg; 772 /* Finish constructing the RPC Call message in rqstp::rq_arg. 778 static void svc_rdma_read_complete_one(struct svc_rqst *rqstp, argument 782 struct xdr_buf *buf = &rqstp->rq_arg; 803 buf->pages = &rqstp->rq_pages[0]; 810 /* Finish constructing the RPC Call message in rqstp::rq_arg. 815 static void svc_rdma_read_complete_multiple(struct svc_rqst *rqstp, argument 834 svc_rdma_read_complete_pzrc(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 848 svc_rdma_read_complete(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 916 svc_rdma_recvfrom(struct svc_rqst *rqstp) argument [all...] |