/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfsd/ |
H A D | nfs2acl.c | 25 nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 33 static __be32 nfsacld_proc_getacl(struct svc_rqst * rqstp, argument 43 if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) 100 static __be32 nfsacld_proc_setacl(struct svc_rqst * rqstp, argument 110 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); 131 static __be32 nfsacld_proc_getattr(struct svc_rqst * rqstp, argument 137 return fh_verify(rqstp, &resp->fh, 0, MAY_NOP); 143 static __be32 nfsacld_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, argument 154 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); 161 static int nfsaclsvc_decode_getaclargs(struct svc_rqst *rqstp, __be3 argument 172 nfsaclsvc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_setaclargs *argp) argument 197 nfsaclsvc_decode_fhandleargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *argp) argument 205 nfsaclsvc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessargs *argp) argument 220 nfsaclsvc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 262 nfsaclsvc_encode_attrstatres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) argument 270 nfsaclsvc_encode_accessres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument 281 nfsaclsvc_release_getacl(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 290 nfsaclsvc_release_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) argument 297 nfsaclsvc_release_access(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument [all...] |
H A D | nfsxdr.c | 148 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, argument 161 *p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid)); 162 *p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid)); 204 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 208 return encode_fattr(rqstp, p, fhp, &stat); 215 nfssvc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 217 return xdr_argsize_check(rqstp, p); 221 nfssvc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *args) argument 225 return xdr_argsize_check(rqstp, p); 229 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, __be3 argument 241 nfssvc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_diropargs *args) argument 252 nfssvc_decode_readargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readargs *args) argument 283 nfssvc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_writeargs *args) argument 333 nfssvc_decode_createargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_createargs *args) argument 345 nfssvc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_renameargs *args) argument 358 nfssvc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readlinkargs *args) argument 368 nfssvc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_linkargs *args) argument 380 nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_symlinkargs *args) argument 393 nfssvc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readdirargs *args) argument 412 nfssvc_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 418 nfssvc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) argument 426 nfssvc_encode_diropres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_diropres *resp) argument 435 nfssvc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readlinkres *resp) argument 451 nfssvc_encode_readres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readres *resp) argument 470 nfssvc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_readdirres *resp) argument 483 nfssvc_encode_statfsres(struct svc_rqst *rqstp, __be32 *p, struct nfsd_statfsres *resp) argument 540 nfssvc_release_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *resp) argument [all...] |
H A D | nfs3xdr.c | 174 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, argument 183 *p++ = htonl((u32) nfsd_ruid(rqstp, stat->uid)); 184 *p++ = htonl((u32) nfsd_rgid(rqstp, stat->gid)); 204 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 214 *p++ = htonl((u32) nfsd_ruid(rqstp, fhp->fh_post_uid)); 215 *p++ = htonl((u32) nfsd_rgid(rqstp, fhp->fh_post_gid)); 239 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 249 return encode_fattr3(rqstp, p, fhp, &stat); 258 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 260 return encode_post_op_attr(rqstp, 267 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument 292 nfs3svc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd_fhandle *args) argument 300 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_sattrargs *args) argument 317 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropargs *args) argument 328 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessargs *args) argument 339 nfs3svc_decode_readargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readargs *args) argument 369 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_writeargs *args) argument 422 nfs3svc_decode_createargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_createargs *args) argument 445 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_createargs *args) argument 457 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_symlinkargs *args) argument 510 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_mknodargs *args) argument 532 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_renameargs *args) argument 545 nfs3svc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readlinkargs *args) argument 557 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_linkargs *args) argument 569 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirargs *args) argument 589 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirargs *args) argument 617 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_commitargs *args) argument 636 nfs3svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 643 nfs3svc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 653 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 662 nfs3svc_encode_diropres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropres *resp) argument 675 nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_accessres *resp) argument 686 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readlinkres *resp) argument 707 nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readres *resp) argument 731 nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_writeres *resp) argument 746 nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_diropres *resp) argument 760 nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_renameres *resp) argument 770 nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_linkres *resp) argument 780 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_readdirres *resp) argument 1037 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fsstatres *resp) argument 1059 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fsinfores *resp) argument 1083 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_pathconfres *resp) argument 1102 nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_commitres *resp) argument 1118 nfs3svc_release_fhandle(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 1126 nfs3svc_release_fhandle2(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fhandle_pair *resp) argument [all...] |
H A D | nfs3acl.c | 23 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 31 static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, argument 39 if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) 96 static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp, argument 104 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); 125 static int nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, __be32 *p, argument 132 return xdr_argsize_check(rqstp, p); 136 static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, argument 139 struct kvec *head = rqstp->rq_arg.head; 147 !xdr_argsize_check(rqstp, 166 nfs3svc_encode_getaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument 211 nfs3svc_encode_setaclres(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_attrstat *resp) argument 222 nfs3svc_release_getacl(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_getaclres *resp) argument [all...] |
H A D | nfscache.c | 38 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 124 nfsd_cache_lookup(struct svc_rqst *rqstp, int type) argument 129 __be32 xid = rqstp->rq_xid; 130 u32 proto = rqstp->rq_prot, 131 vers = rqstp->rq_vers, 132 proc = rqstp->rq_proc; 136 rqstp->rq_cacherep = NULL; 151 memcmp((char*)&rqstp->rq_addr, (char*)&rp->c_addr, sizeof(rp->c_addr))==0) { 184 rqstp->rq_cacherep = rp; 188 memcpy(&rp->c_addr, svc_addr_in(rqstp), sizeo 260 nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) argument 308 nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *data) argument [all...] |
H A D | nfs4proc.c | 64 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) argument 79 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); 85 do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) argument 99 status = nfsd_create_v3(rqstp, current_fh, open->op_fname.data, 104 status = nfsd_lookup(rqstp, current_fh, 120 status = do_open_permission(rqstp, current_fh, open, MAY_NOP); 128 do_open_fhandle(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) argument 151 status = do_open_permission(rqstp, current_fh, open, MAY_OWNER_OVERRIDE); 158 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, argument 180 status = fh_verify(rqstp, 261 nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct svc_fh **getfh) argument 272 nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_putfh *putfh) argument 283 nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 295 nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 306 nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 320 nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_access *access) argument 332 nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_commit *commit) argument 349 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_create *create) argument 435 nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_getattr *getattr) argument 455 nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_link *link) argument 470 nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, void *arg) argument 490 nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_lookup *lookup) argument 499 nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_read *read) argument 529 nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_readdir *readdir) argument 553 nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_readlink *readlink) argument 562 nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_remove *remove) argument 581 nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_rename *rename) argument 614 nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_setattr *setattr) argument 641 nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_write *write) argument 689 _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 742 nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 752 nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_verify *verify) argument 765 nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 817 nfsd4_proc_compound(struct svc_rqst *rqstp, struct nfsd4_compoundargs *args, struct nfsd4_compoundres *resp) argument [all...] |
H A D | nfssvc.c | 53 static void nfsd(struct svc_rqst *rqstp); 398 nfsd(struct svc_rqst *rqstp) argument 425 rqstp->rq_task = current; 447 while ((err = svc_recv(rqstp, 60*60*HZ)) == -EAGAIN) 460 svc_process(rqstp); 488 svc_exit_thread(rqstp); 496 nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) argument 504 rqstp->rq_vers, rqstp->rq_proc); 505 proc = rqstp [all...] |
H A D | nfsproc.c | 35 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 61 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, argument 68 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP); 77 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, argument 86 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); 97 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, argument 106 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, 117 nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, argument 126 nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); 137 nfsd_proc_read(struct svc_rqst *rqstp, struc argument 177 nfsd_proc_write(struct svc_rqst *rqstp, struct nfsd_writeargs *argp, struct nfsd_attrstat *resp) argument 202 nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, struct nfsd_diropres *resp) argument 354 nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, void *resp) argument 369 nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, void *resp) argument 387 nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, void *resp) argument 407 nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, void *resp) argument 436 nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, struct nfsd_diropres *resp) argument 460 nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, void *resp) argument 476 nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, struct nfsd_readdirres *resp) argument 516 nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd_statfsres *resp) argument [all...] |
H A D | nfs3proc.c | 47 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 56 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, argument 66 nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP); 81 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, argument 90 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, 99 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, argument 112 nfserr = nfsd_lookup(rqstp, &resp->dirfh, 123 nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, argument 134 nfserr = nfsd_access(rqstp, &resp->fh, &resp->access, NULL); 142 nfsd3_proc_readlink(struct svc_rqst *rqstp, struc argument 160 nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, struct nfsd3_readres *resp) argument 200 nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, struct nfsd3_writeres *resp) argument 228 nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct nfsd3_diropres *resp) argument 270 nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct nfsd3_diropres *resp) argument 290 nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, struct nfsd3_diropres *resp) argument 312 nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, struct nfsd3_diropres *resp) argument 349 nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, struct nfsd3_attrstat *resp) argument 369 nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, struct nfsd3_attrstat *resp) argument 385 nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, struct nfsd3_renameres *resp) argument 407 nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, struct nfsd3_linkres *resp) argument 430 nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, struct nfsd3_readdirres *resp) argument 466 nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, struct nfsd3_readdirres *resp) argument 525 nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_fsstatres *resp) argument 542 nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_fsinfores *resp) argument 584 nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, struct nfsd3_pathconfres *resp) argument 627 nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, struct nfsd3_commitres *resp) argument [all...] |
H A D | lockd.c | 26 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) argument 38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp); 40 rqstp->rq_client = NULL;
|
H A D | vfs.c | 105 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, argument 116 exp2 = exp_get_by_name(exp->ex_client, mnt, mounts, &rqstp->rq_chandle); 151 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, argument 163 err = fh_verify(rqstp, fhp, S_IFDIR, MAY_EXEC); 194 &rqstp->rq_chandle); 220 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { 248 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, argument 266 err = fh_verify(rqstp, fhp, ftype, accmode); 424 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, argument 435 error = fh_verify(rqstp, fh 494 nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, struct nfs4_acl **acl) argument 579 nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) argument 645 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access, struct file **filp) argument 811 struct svc_rqst *rqstp = desc->arg.data; local 840 nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long *count) argument 906 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long cnt, int *stablep) argument 1010 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long *count) argument 1039 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long cnt, int *stablep) argument 1076 nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, unsigned long count) argument 1109 nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, int type, dev_t rdev, struct svc_fh *resfhp) argument 1236 nfsd_create_v3(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, struct svc_fh *resfhp, int createmode, u32 *verifier, int *truncp, int *created) argument 1379 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) argument 1424 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, char *path, int plen, struct svc_fh *resfhp, struct iattr *iap) argument 1493 nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *name, int len, struct svc_fh *tfhp) argument 1557 nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen, struct svc_fh *tfhp, char *tname, int tlen) argument 1652 nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, char *fname, int flen) argument 1715 nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, struct readdir_cd *cdp, filldir_t func) argument 1762 nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/ |
H A D | svcsock.c | 89 static int svc_deferred_recv(struct svc_rqst *rqstp); 152 * @rqstp: svc_rqst struct containing address to print 157 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) argument 159 return __svc_print_addr(svc_addr(rqstp), buf, len); 170 svc_thread_enqueue(struct svc_pool *pool, struct svc_rqst *rqstp) argument 172 list_add(&rqstp->rq_list, &pool->sp_threads); 179 svc_thread_dequeue(struct svc_pool *pool, struct svc_rqst *rqstp) argument 181 list_del(&rqstp->rq_list); 188 svc_release_skb(struct svc_rqst *rqstp) argument 190 struct sk_buff *skb = rqstp 231 struct svc_rqst *rqstp; local 359 svc_reserve(struct svc_rqst *rqstp, int space) argument 393 svc_sock_release(struct svc_rqst *rqstp) argument 429 struct svc_rqst *rqstp; local 459 svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 492 svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) argument 641 svc_recvfrom(struct svc_rqst *rqstp, struct kvec *iov, int nr, int buflen) argument 719 svc_udp_get_dest_address(struct svc_rqst *rqstp, struct cmsghdr *cmh) argument 740 svc_udp_recvfrom(struct svc_rqst *rqstp) argument 867 svc_udp_sendto(struct svc_rqst *rqstp) argument 1119 svc_tcp_recvfrom(struct svc_rqst *rqstp) argument 1282 svc_tcp_sendto(struct svc_rqst *rqstp) argument 1379 svc_recv(struct svc_rqst *rqstp, long timeout) argument 1490 svc_drop(struct svc_rqst *rqstp) argument 1500 svc_send(struct svc_rqst *rqstp) argument 1859 struct svc_rqst *rqstp = container_of(req, struct svc_rqst, rq_chandle); local 1892 svc_deferred_recv(struct svc_rqst *rqstp) argument [all...] |
H A D | svcauth.c | 37 svc_authenticate(struct svc_rqst *rqstp, __be32 *authp) argument 44 flavor = svc_getnl(&rqstp->rq_arg.head[0]); 57 rqstp->rq_authop = aops; 58 return aops->accept(rqstp, authp); 61 int svc_set_client(struct svc_rqst *rqstp) argument 63 return rqstp->rq_authop->set_client(rqstp); 70 int svc_authorise(struct svc_rqst *rqstp) argument 72 struct auth_ops *aops = rqstp->rq_authop; 75 rqstp [all...] |
H A D | svc.c | 506 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) argument 520 rqstp->rq_pages[arghi++] = p; 530 svc_release_buffer(struct svc_rqst *rqstp) argument 533 for (i=0; i<ARRAY_SIZE(rqstp->rq_pages); i++) 534 if (rqstp->rq_pages[i]) 535 put_page(rqstp->rq_pages[i]); 547 struct svc_rqst *rqstp; local 552 rqstp = kzalloc(sizeof(*rqstp), GFP_KERNEL); 553 if (!rqstp) 637 struct svc_rqst *rqstp; local 707 svc_exit_thread(struct svc_rqst *rqstp) argument 783 svc_process(struct svc_rqst *rqstp) argument 1035 svc_max_payload(const struct svc_rqst *rqstp) argument [all...] |
H A D | svcauth_unix.c | 384 ip_map_cached_get(struct svc_rqst *rqstp) argument 387 struct svc_sock *svsk = rqstp->rq_sock; 409 ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm) argument 411 struct svc_sock *svsk = rqstp->rq_sock; 622 struct svc_rqst *rqstp) 627 switch (cache_check(&unix_gid_cache, &ug->h, &rqstp->rq_chandle)) { 641 svcauth_unix_set_client(struct svc_rqst *rqstp) argument 643 struct sockaddr_in *sin = svc_addr_in(rqstp); 646 rqstp->rq_client = NULL; 647 if (rqstp 621 unix_gid_find(uid_t uid, struct group_info **gip, struct svc_rqst *rqstp) argument 676 svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp) argument 714 svcauth_null_release(struct svc_rqst *rqstp) argument 738 svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp) argument 795 svcauth_unix_release(struct svc_rqst *rqstp) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/lockd/ |
H A D | svc4proc.c | 28 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 41 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 48 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) 72 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 82 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, argument 98 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 102 resp->status = nlmsvc_testlock(rqstp, file, &argp->lock, &resp->lock, &resp->cookie); 113 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, argument 130 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) 135 resp->status = nlmsvc_lock(rqstp, fil 147 nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 180 nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 214 nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 249 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) argument 278 nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 285 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 292 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 299 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 306 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 317 nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 350 nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 383 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 396 nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 414 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp) argument 444 nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, void *resp) argument [all...] |
H A D | svcproc.c | 48 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) 57 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argument 70 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 77 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) 101 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) argument 111 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, argument 127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) 131 resp->status = cast_status(nlmsvc_testlock(rqstp, file, &argp->lock, &resp->lock, &resp->cookie)); 136 ntohl(resp->status), rqstp->rq_vers); 143 nlmsvc_proc_lock(struct svc_rqst *rqstp, struc argument 177 nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 210 nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 244 nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 279 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) argument 308 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 315 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 322 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 330 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 338 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 349 nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 382 nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 415 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, struct nlm_res *resp) argument 428 nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, void *resp) argument 446 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, void *resp) argument 476 nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, void *resp) argument [all...] |
H A D | mon.c | 152 xdr_encode_common(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 179 xdr_encode_mon(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 181 p = xdr_encode_common(rqstp, p, argp); 190 rqstp->rq_slen = xdr_adjust_iovec(rqstp->rq_svec, p); 195 xdr_encode_unmon(struct rpc_rqst *rqstp, __be32 *p, struct nsm_args *argp) argument 197 p = xdr_encode_common(rqstp, p, argp); 200 rqstp->rq_slen = xdr_adjust_iovec(rqstp->rq_svec, p); 205 xdr_decode_stat_res(struct rpc_rqst *rqstp, __be3 argument 215 xdr_decode_stat(struct rpc_rqst *rqstp, __be32 *p, struct nsm_res *resp) argument [all...] |
H A D | xdr.c | 224 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 237 return xdr_argsize_check(rqstp, p); 241 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 245 return xdr_ressize_check(rqstp, p); 249 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 265 return xdr_argsize_check(rqstp, p); 269 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 281 return xdr_argsize_check(rqstp, p); 285 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 291 return xdr_argsize_check(rqstp, 295 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 316 nlmsvc_encode_shareres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 326 nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 335 nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p, struct nlm_args *argp) argument 347 nlmsvc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp) argument 360 nlmsvc_decode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 369 nlmsvc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 375 nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument [all...] |
H A D | xdr4.c | 231 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 244 return xdr_argsize_check(rqstp, p); 248 nlm4svc_encode_testres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 252 return xdr_ressize_check(rqstp, p); 256 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 272 return xdr_argsize_check(rqstp, p); 276 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 288 return xdr_argsize_check(rqstp, p); 292 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 298 return xdr_argsize_check(rqstp, 302 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) argument 323 nlm4svc_encode_shareres(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 333 nlm4svc_encode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 342 nlm4svc_decode_notify(struct svc_rqst *rqstp, __be32 *p, struct nlm_args *argp) argument 354 nlm4svc_decode_reboot(struct svc_rqst *rqstp, __be32 *p, struct nlm_reboot *argp) argument 367 nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p, struct nlm_res *resp) argument 376 nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument 382 nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) argument [all...] |
H A D | svc.c | 89 lockd(struct svc_rqst *rqstp) argument 106 nlmsvc_serv = rqstp->rq_server; 157 err = svc_recv(rqstp, timeout); 168 svc_print_addr(rqstp, buf, sizeof(buf))); 170 svc_process(rqstp); 191 svc_exit_thread(rqstp); 457 static int lockd_authenticate(struct svc_rqst *rqstp) argument 459 rqstp->rq_client = NULL; 460 switch (rqstp->rq_authop->flavour) { 463 if (rqstp [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfs/ |
H A D | callback.c | 59 static void nfs_callback_svc(struct svc_rqst *rqstp) argument 84 err = svc_recv(rqstp, MAX_SCHEDULE_TIMEOUT); 94 svc_print_addr(rqstp, buf, sizeof(buf))); 95 svc_process(rqstp); 98 svc_exit_thread(rqstp); 167 static int nfs_callback_authenticate(struct svc_rqst *rqstp) argument 169 struct sockaddr_in *addr = svc_addr_in(rqstp); 179 svc_print_addr(rqstp, buf, sizeof(buf))); 182 switch (rqstp->rq_authop->flavour) { 184 if (rqstp [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/sunrpc/ |
H A D | svc.h | 122 extern u32 svc_max_payload(const struct svc_rqst *rqstp); 285 xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p) argument 288 struct kvec *vec = &rqstp->rq_arg.head[0]; 294 xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p) argument 296 struct kvec *vec = &rqstp->rq_res.head[0]; 304 static inline void svc_free_res_pages(struct svc_rqst *rqstp) argument 306 while (rqstp->rq_resused) { 307 struct page **pp = (rqstp->rq_respages + 308 --rqstp->rq_resused); 393 void svc_reserve(struct svc_rqst *rqstp, in 407 svc_reserve_auth(struct svc_rqst *rqstp, int space) argument [all...] |
H A D | svcauth.h | 63 * OK - authorised. client and credential are set in rqstp. 115 extern int svc_authenticate(struct svc_rqst *rqstp, __be32 *authp); 116 extern int svc_authorise(struct svc_rqst *rqstp); 117 extern int svc_set_client(struct svc_rqst *rqstp);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/auth_gss/ |
H A D | svcauth_gss.c | 640 gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, argument 647 struct kvec *argv = &rqstp->rq_arg.head[0]; 664 if (rqstp->rq_deferred) /* skip verification of revisited request */ 686 gss_write_null_verf(struct svc_rqst *rqstp) argument 690 svc_putnl(rqstp->rq_res.head, RPC_AUTH_NULL); 691 p = rqstp->rq_res.head->iov_base + rqstp->rq_res.head->iov_len; 694 if (!xdr_ressize_check(rqstp, p)) 700 gss_write_verf(struct svc_rqst *rqstp, struct gss_ctx *ctx_id, u32 seq) argument 709 svc_putnl(rqstp 851 unwrap_priv_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct gss_ctx *ctx) argument 908 svcauth_gss_set_client(struct svc_rqst *rqstp) argument 921 gss_write_init_verf(struct svc_rqst *rqstp, struct rsi *rsip) argument 947 svcauth_gss_accept(struct svc_rqst *rqstp, __be32 *authp) argument 1178 svcauth_gss_wrap_resp_integ(struct svc_rqst *rqstp) argument 1228 svcauth_gss_wrap_resp_priv(struct svc_rqst *rqstp) argument 1276 svcauth_gss_release(struct svc_rqst *rqstp) argument [all...] |