/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_rpc_handle.c | 71 get_nlm_rpc_fromcache(struct nlm_host *hostp, int vers) in get_nlm_rpc_fromcache() argument 76 ASSERT(MUTEX_HELD(&hostp->nh_lock)); in get_nlm_rpc_fromcache() 77 if (TAILQ_EMPTY(&hostp->nh_rpchc)) in get_nlm_rpc_fromcache() 80 TAILQ_FOREACH(rpcp, &hostp->nh_rpchc, nr_link) { in get_nlm_rpc_fromcache() 90 TAILQ_REMOVE(&hostp->nh_rpchc, rpcp, nr_link); in get_nlm_rpc_fromcache() 99 update_host_rpcbinding(struct nlm_host *hostp, int vers) in update_host_rpcbinding() argument 103 ASSERT(MUTEX_HELD(&hostp->nh_lock)); in update_host_rpcbinding() 110 hostp->nh_rpcb_state = NRPCB_UPDATE_INPROGRESS; in update_host_rpcbinding() 111 hostp->nh_rpcb_ustat = RPC_SUCCESS; in update_host_rpcbinding() 112 mutex_exit(&hostp->nh_lock); in update_host_rpcbinding() [all …]
|
H A D | nlm_impl.c | 347 struct nlm_host *hostp; in nlm_gc() local 373 for (hostp = avl_first(&g->nlm_hosts_tree); hostp != NULL; in nlm_gc() 374 hostp = AVL_NEXT(&g->nlm_hosts_tree, hostp)) { in nlm_gc() 377 mutex_enter(&hostp->nh_lock); in nlm_gc() 379 nvp = TAILQ_FIRST(&hostp->nh_vholds_list); in nlm_gc() 398 nlm_vhold_destroy(hostp, nvp); in nlm_gc() 404 mutex_exit(&hostp->nh_lock); in nlm_gc() 411 while ((hostp = TAILQ_FIRST(&g->nlm_idle_hosts)) != NULL) { in nlm_gc() 414 if (hostp->nh_idle_timeout > now) in nlm_gc() 424 mutex_enter(&hostp->nh_lock); in nlm_gc() [all …]
|
H A D | nlm_client.c | 143 nlm_reclaim_client(struct nlm_globals *g, struct nlm_host *hostp) in nlm_reclaim_client() argument 151 sysid = hostp->nh_sysid | LM_SYSID_CLIENT; in nlm_reclaim_client() 155 state = nlm_host_get_state(hostp); in nlm_reclaim_client() 158 struct nlm_host *, hostp, int, state); in nlm_reclaim_client() 183 nlm_host_cancel_slocks(g, hostp); in nlm_reclaim_client() 190 error = nlm_reclaim_lock(hostp, llp->ll_vp, in nlm_reclaim_client() 220 nsp_head = nsp = nlm_get_active_shres(hostp); in nlm_reclaim_client() 222 error = nlm_reclaim_share(hostp, nsp->ns_vp, in nlm_reclaim_client() 232 nlm_shres_untrack(hostp, nsp->ns_vp, in nlm_reclaim_client() 242 } while (state != nlm_host_get_state(hostp)); in nlm_reclaim_client() [all …]
|
H A D | nlm_service.c | 81 struct nlm_host *hostp; member 231 nlm_fh_to_vhold(struct nlm_host *hostp, struct netobj *fh) in nlm_fh_to_vhold() argument 241 nvp = nlm_vhold_get(hostp, vp); in nlm_fh_to_vhold() 742 cb_data.hostp = host; in nlm_block() 824 (void) nlm_slreq_unregister(cb_data->hostp, in nlm_block_callback() 1092 struct nlm_host *hostp; in nlm_do_free_all() local 1105 for (hostp = avl_first(&g->nlm_hosts_tree); hostp != NULL; in nlm_do_free_all() 1106 hostp = AVL_NEXT(&g->nlm_hosts_tree, hostp)) { in nlm_do_free_all() 1107 if (strcasecmp(hostp->nh_name, argp->name) == 0) { in nlm_do_free_all() 1112 if (hostp->nh_flags & NLM_NH_INIDLE) { in nlm_do_free_all() [all …]
|
H A D | klmmod.c | 432 struct nlm_host *hostp; in lm_get_sysid() local 441 hostp = nlm_host_findcreate(g, name, netid, addr); in lm_get_sysid() 442 if (hostp == NULL) in lm_get_sysid() 445 return ((struct lm_sysid *)hostp); in lm_get_sysid()
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | gethost.c | 12 int gethost(name, hostp, use_inet6) in gethost() argument 14 i6addr_t *hostp; 22 hostp->in4.s_addr = htonl(0xfedcba98); 41 hostp->in4 = ((struct sockaddr_in *) 45 hostp->in6 = ((struct sockaddr_in6 *) 61 hostp->in4.s_addr = htonl(n->n_net);
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 633 ldap_x_hostlist_first( const char *hostlist, int defport, char **hostp, in ldap_x_hostlist_first() argument 637 if ( NULL == hostp || NULL == portp || NULL == statusp ) { in ldap_x_hostlist_first() 642 *hostp = nsldapi_strdup( "127.0.0.1" ); in ldap_x_hostlist_first() 643 if ( NULL == *hostp ) { in ldap_x_hostlist_first() 661 return( ldap_x_hostlist_next( hostp, portp, *statusp )); in ldap_x_hostlist_first() 671 ldap_x_hostlist_next( char **hostp, int *portp, in ldap_x_hostlist_next() argument 677 if ( NULL == hostp || NULL == portp ) { in ldap_x_hostlist_next() 682 *hostp = NULL; in ldap_x_hostlist_next() 698 *hostp = NSLDAPI_MALLOC( len + 1 ); in ldap_x_hostlist_next() 699 if ( NULL == *hostp ) { in ldap_x_hostlist_next() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_ipaddr.c | 246 struct hostdata *hostp; in addrtoname() local 251 hostp = iplookup(&((struct sockaddr_in *)sockp)->sin_addr); in addrtoname() 254 hostp = ip6lookup(&((struct sockaddr_in6 *)sockp)->sin6_addr); in addrtoname() 259 hostp = NULL; in addrtoname() 261 return ((hostp != NULL) ? hostp->h_hostname : NULL); in addrtoname()
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 276 host_id_list_t *hostp; in find_hostid_in_list() local 282 hostp = host_list; in find_hostid_in_list() 283 while (hostp) { in find_hostid_in_list() 284 if (hostp->hostid.platform && in find_hostid_in_list() 285 strcmp(hostp->hostid.platform, platform) == 0 && in find_hostid_in_list() 286 hostp->hostid.server && in find_hostid_in_list() 287 strcmp(hostp->hostid.server, server) == 0 && in find_hostid_in_list() 288 (chassis == NULL || hostp->hostid.chassis == NULL || in find_hostid_in_list() 289 strcmp(chassis, hostp->hostid.chassis) == 0) && in find_hostid_in_list() 290 (product_sn == NULL || hostp->hostid.product_sn == NULL || in find_hostid_in_list() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 2909 char *hostp = NULL; in tn() local 2988 if (hostp == 0) { in tn() 2989 hostp = *argv++; in tn() 3011 if (hostp == 0) in tn() 3018 real_host = hostp; in tn() 3019 hostp = itelnet_host; in tn() 3021 num_gw = parse_input(hostp, hostname_list, &src_rtng_type); in tn() 3027 hostp = hostname_list[num_gw]; in tn() 3058 if (inet_addr(hostp) != (in_addr_t)-1) { in tn() 3060 (void) strlcpy(_hostname, hostp, sizeof (_hostname)); in tn() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 762 getnfsquota(char *hostp, char *path, uid_t uid, struct dqblk *dqp) in getnfsquota() argument 772 rpc_err = callaurpc(hostp, RQUOTAPROG, RQUOTAVERS, in getnfsquota() 813 fprintf(stderr, "quota permission error, host: %s\n", hostp); in getnfsquota() 817 fprintf(stderr, "bad rpc result, host: %s\n", hostp); in getnfsquota()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | parseaddr.c | 1965 char **hostp; local 2015 hostp = ++tv; 2019 hostp = NULL; 2031 if (tv == hostp) 2032 hostp = NULL; 2033 else if (hostp != NULL) 2034 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false); 2046 if (hostp != NULL) 2121 if (hostp == NULL)
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | solaris-int.h | 282 int defport, char **hostp, int *portp /* host byte order */, 284 LDAP_API(int) LDAP_CALL ldap_x_hostlist_next( char **hostp,
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 1215 irp_unmarshall_ng(const char **hostp, const char **userp, const char **domainp, in irp_unmarshall_ng() argument 1223 if (userp == NULL || hostp == NULL || in irp_unmarshall_ng() 1274 *hostp = host; in irp_unmarshall_ng()
|