Home | History | Annotate | Download | only in nlm

Lines Matching defs:rpc

71 #include <rpc/rpc_com.h>
72 #include <rpc/rpcb_prot.h>
149 * A socket to use for RPC - shared by all IPv4 RPC clients.
156 * A socket to use for RPC - shared by all IPv6 RPC clients.
163 * An RPC client handle that can be used to communicate with the local
174 * A zero timeval for sending async RPC messages.
192 * (s) only accessed via server RPC which is single threaded
224 CLIENT *af_rpc; /* (c) rpc client to send message */
241 CLIENT *nr_client; /* (l) RPC client handle */
253 struct nlm_rpc nh_srvrpc; /* (l) RPC for server replies */
254 struct nlm_rpc nh_clntrpc; /* (l) RPC for client requests */
350 * Create an RPC client handle for the given (address,prog,vers)
583 * destroying the RPC client. To avoid problems, the first
760 * unlock any active locks owned by the host. When rpc.lockd is
1024 * have an RPC client handle, make sure the address is
1179 NLM_ERR("Failed to contact local NSM - rpc error %d\n", stat);
1244 NLM_ERR("Failed to contact local NSM - rpc error %d\n", stat);
1260 * Return an RPC client handle that can be used to talk to the NLM
1266 struct nlm_rpc *rpc;
1272 rpc = &host->nh_srvrpc;
1274 rpc = &host->nh_clntrpc;
1277 * We can't hold onto RPC handles for too long - the async
1282 * expire the RPC handles after two minutes.
1284 if (rpc->nr_client && time_uptime > rpc->nr_create_time + 2*60) {
1285 client = rpc->nr_client;
1286 rpc->nr_client = NULL;
1292 if (!rpc->nr_client) {
1299 if (rpc->nr_client) {
1304 rpc->nr_client = client;
1305 rpc->nr_create_time = time_uptime;
1310 client = rpc->nr_client;
1729 * NLM implementation details, called from the RPC stubs.
2037 * badly behaved client or an RPC re-send. If we find