Lines Matching defs:transp
37 static void rquota_service(struct svc_req *request, SVCXPRT *transp);
38 static void ext_rquota_service(struct svc_req *request, SVCXPRT *transp);
39 static void sendquota(struct svc_req *request, int vers, SVCXPRT *transp);
56 SVCXPRT *transp;
73 transp = svc_dg_create(0, 0, 0);
74 if (transp == NULL) {
78 if (!svc_reg(transp, RQUOTAPROG, RQUOTAVERS, rquota_service,
84 if (!svc_reg(transp, RQUOTAPROG, EXT_RQUOTAVERS,
116 rquota_service(struct svc_req *request, SVCXPRT *transp)
120 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL);
125 sendquota(request, RQUOTAVERS, transp);
129 svcerr_noproc(transp);
137 ext_rquota_service(struct svc_req *request, SVCXPRT *transp)
141 (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL);
146 sendquota(request, EXT_RQUOTAVERS, transp);
150 svcerr_noproc(transp);
211 sendquota(struct svc_req *request, int vers, SVCXPRT *transp)
225 if (!svc_getargs(transp, xdr_getquota_args,
227 svcerr_decode(transp);
235 if (!svc_getargs(transp, xdr_ext_getquota_args,
237 svcerr_decode(transp);
303 if (!svc_sendreply(transp, (xdrproc_t)xdr_getquota_rslt, (char *)&getq_rslt))
304 svcerr_systemerr(transp);
305 if (!svc_freeargs(transp, xdr_getquota_args, (caddr_t)&getq_args)) {