372 { |
372 { |
373 /* LINTED pointer alignment */ |
373 /* LINTED pointer alignment */ |
374 struct cku_private *p = htop(h); |
374 struct cku_private *p = htop(h); |
375 struct rpcstat *rsp; |
375 struct rpcstat *rsp; |
376 |
376 |
377 rsp = zone_getspecific(rpcstat_zone_key, curproc->p_zone); |
377 rsp = zone_getspecific(rpcstat_zone_key, rpc_zone()); |
378 ASSERT(rsp != NULL); |
378 ASSERT(rsp != NULL); |
379 |
379 |
380 p->cku_retrys = retrys; |
380 p->cku_retrys = retrys; |
381 |
381 |
382 if (p->cku_addr.maxlen < addr->len) { |
382 if (p->cku_addr.maxlen < addr->len) { |
1294 |
1294 |
1295 (void) strncpy(etype->e_protofmly, config->knc_protofmly, KNC_STRSIZE); |
1295 (void) strncpy(etype->e_protofmly, config->knc_protofmly, KNC_STRSIZE); |
1296 mutex_init(&etype->e_plock, NULL, MUTEX_DEFAULT, NULL); |
1296 mutex_init(&etype->e_plock, NULL, MUTEX_DEFAULT, NULL); |
1297 mutex_init(&etype->e_ilock, NULL, MUTEX_DEFAULT, NULL); |
1297 mutex_init(&etype->e_ilock, NULL, MUTEX_DEFAULT, NULL); |
1298 etype->e_rdev = config->knc_rdev; |
1298 etype->e_rdev = config->knc_rdev; |
1299 etype->e_zoneid = getzoneid(); |
1299 etype->e_zoneid = rpc_zoneid(); |
1300 etype->e_async_count = 0; |
1300 etype->e_async_count = 0; |
1301 cv_init(&etype->e_async_cv, NULL, CV_DEFAULT, NULL); |
1301 cv_init(&etype->e_async_cv, NULL, CV_DEFAULT, NULL); |
1302 |
1302 |
1303 list_create(&etype->e_pool, sizeof (endpnt_t), |
1303 list_create(&etype->e_pool, sizeof (endpnt_t), |
1304 offsetof(endpnt_t, e_node)); |
1304 offsetof(endpnt_t, e_node)); |
1425 TIUSER *tiptr = NULL; |
1425 TIUSER *tiptr = NULL; |
1426 int rtries = BINDRESVPORT_RETRIES; |
1426 int rtries = BINDRESVPORT_RETRIES; |
1427 int i = 0; |
1427 int i = 0; |
1428 int error; |
1428 int error; |
1429 int retval; |
1429 int retval; |
1430 zoneid_t zoneid = getzoneid(); |
1430 zoneid_t zoneid = rpc_zoneid(); |
1431 |
1431 |
1432 RPCLOG(1, "endpnt_get: protofmly %s, ", config->knc_protofmly); |
1432 RPCLOG(1, "endpnt_get: protofmly %s, ", config->knc_protofmly); |
1433 RPCLOG(1, "rdev %ld\n", config->knc_rdev); |
1433 RPCLOG(1, "rdev %ld\n", config->knc_rdev); |
1434 |
1434 |
1435 #ifdef DEBUG |
1435 #ifdef DEBUG |