pmap_clnt = pmap_create("localhost", &sin, IPPROTO_UDP); 
pmap_clnt = pmap_create("localhost", &sin, IPPROTO_UDP, 1); 
rpc_register(u32 prog, u32 vers, int prot, unsigned short port, int *okay){	struct sockaddr_in	sin;	struct rpc_portmap	map;	struct rpc_clnt		*pmap_clnt;	int error = 0;	dprintk("RPC: registering (%d, %d, %d, %d) with portmapper.\n",			prog, vers, prot, port);	sin.sin_family = AF_INET;	sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);	pmap_clnt = pmap_create("localhost", &sin, IPPROTO_UDP);	if (IS_ERR(pmap_clnt)) {		error = PTR_ERR(pmap_clnt);		dprintk("RPC: couldn't create pmap client. Error = %d\n", error);		return error;	}	map.pm_prog = prog;	map.pm_vers = vers;	map.pm_prot = prot;	map.pm_port = port;	error = rpc_call(pmap_clnt, port? PMAP_SET : PMAP_UNSET,					&map, okay, 0);	if (error < 0) {		printk(KERN_WARNING			"RPC: failed to contact portmap (errno %d).\n",			error);	}	dprintk("RPC: registration status %d/%d\n", error, *okay);	/* Client deleted automatically because cl_oneshot == 1 */	return error;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6cd7525a00f3b926e8bd2e402954ed3e09a8e924/pmap_clnt.c/clean/net/sunrpc/pmap_clnt.c