Lines Matching defs:rqstp
564 idmap_lookup(struct svc_rqst *rqstp,
588 rqst_authname(struct svc_rqst *rqstp)
592 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client;
597 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen,
609 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname));
610 ret = idmap_lookup(rqstp, nametoid_lookup, &key, &nametoid_cache, &item);
621 idmap_id_to_name(struct svc_rqst *rqstp, int type, uid_t id, char *name)
629 strlcpy(key.authname, rqst_authname(rqstp), sizeof(key.authname));
630 ret = idmap_lookup(rqstp, idtoname_lookup, &key, &idtoname_cache, &item);
643 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen,
646 return idmap_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, id);
650 nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen,
653 return idmap_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, id);
657 nfsd_map_uid_to_name(struct svc_rqst *rqstp, __u32 id, char *name)
659 return idmap_id_to_name(rqstp, IDMAP_TYPE_USER, id, name);
663 nfsd_map_gid_to_name(struct svc_rqst *rqstp, __u32 id, char *name)
665 return idmap_id_to_name(rqstp, IDMAP_TYPE_GROUP, id, name);