Home
last modified time | relevance | path

Searched refs:hostp (Results 1 – 21 of 21) sorted by relevance

/titanic_41/usr/src/uts/common/klm/
H A Dnlm_rpc_handle.c71 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 Dnlm_impl.c347 struct nlm_host *hostp; in nlm_gc() local
374 while ((hostp = TAILQ_FIRST(&g->nlm_idle_hosts)) != NULL) { in nlm_gc()
377 if (hostp->nh_idle_timeout > now) in nlm_gc()
387 mutex_enter(&hostp->nh_lock); in nlm_gc()
394 nlm_host_gc_vholds(hostp); in nlm_gc()
395 has_locks = nlm_host_has_locks(hostp); in nlm_gc()
397 mutex_exit(&hostp->nh_lock); in nlm_gc()
409 if (hostp->nh_idle_timeout > now || hostp->nh_refs > 0) in nlm_gc()
419 hostp, nh_link); in nlm_gc()
420 hostp->nh_idle_timeout = now + idle_period; in nlm_gc()
[all …]
H A Dnlm_client.c143 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 Dnlm_service.c81 struct nlm_host *hostp; member
230 nlm_fh_to_vhold(struct nlm_host *hostp, struct netobj *fh) in nlm_fh_to_vhold() argument
240 nvp = nlm_vhold_get(hostp, vp); in nlm_fh_to_vhold()
713 cb_data.hostp = host; in nlm_block()
757 (void) nlm_slreq_unregister(cb_data->hostp, in nlm_block_callback()
1024 struct nlm_host *hostp; in nlm_do_free_all() local
1037 for (hostp = avl_first(&g->nlm_hosts_tree); hostp != NULL; in nlm_do_free_all()
1038 hostp = AVL_NEXT(&g->nlm_hosts_tree, hostp)) { in nlm_do_free_all()
1039 if (strcasecmp(hostp->nh_name, argp->name) == 0) { in nlm_do_free_all()
1044 if (hostp->nh_flags & NLM_NH_INIDLE) { in nlm_do_free_all()
[all …]
H A Dklmmod.c431 struct nlm_host *hostp; in lm_get_sysid() local
440 hostp = nlm_host_findcreate(g, name, netid, addr); in lm_get_sysid()
441 if (hostp == NULL) in lm_get_sysid()
444 return ((struct lm_sysid *)hostp); in lm_get_sysid()
/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dgethost.c14 int gethost(name, hostp, use_inet6) in gethost() argument
16 i6addr_t *hostp;
24 hostp->in4.s_addr = htonl(0xfedcba98);
43 hostp->in4 = ((struct sockaddr_in *)
47 hostp->in6 = ((struct sockaddr_in6 *)
63 hostp->in4.s_addr = htonl(n->n_net);
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/
H A Dopen.c633 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 …]
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_ipaddr.c248 struct hostdata *hostp; in addrtoname() local
253 hostp = iplookup(&((struct sockaddr_in *)sockp)->sin_addr); in addrtoname()
256 hostp = ip6lookup(&((struct sockaddr_in6 *)sockp)->sin6_addr); in addrtoname()
261 hostp = NULL; in addrtoname()
263 return ((hostp != NULL) ? hostp->h_hostname : NULL); in addrtoname()
/titanic_41/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c276 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 …]
/titanic_41/usr/src/lib/librdc/common/
H A Drdcrules.c78 bitmap_in_use(int cmd, char *hostp, char *bmp) in bitmap_in_use() argument
185 if (self_check(hostp)) { in bitmap_in_use()
198 if ((strcmp(hostp, shost) == 0) && in bitmap_in_use()
212 if ((strcmp(shost, hostp) == 0) && in bitmap_in_use()
224 if ((strcmp(host, hostp) == 0) && in bitmap_in_use()
H A Drdcrules.h35 extern int bitmap_in_use(int cmd, char *hostp, char *bmp);
/titanic_41/usr/src/cmd/fs.d/cachefs/umount/
H A Dumount.c337 char *hostp; in daemon_unmount() local
349 hostp = info.nodename; in daemon_unmount()
354 clnt = clnt_create_timed(hostp, CACHEFSDPROG, CACHEFSDVERS, "local", in daemon_unmount()
/titanic_41/usr/src/cmd/fs.d/cachefs/mount/
H A Dmount.c1401 char *hostp; in daemon_notify() local
1411 hostp = info.nodename; in daemon_notify()
1414 clnt = clnt_create(hostp, CACHEFSDPROG, CACHEFSDVERS, "local"); in daemon_notify()
1445 char *hostp; in pingserver() local
1457 hostp = buf; in pingserver()
1460 clnt = clnt_create(hostp, NFS_PROGRAM, NFS_VERSION, "udp"); in pingserver()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c2943 char *hostp = NULL; local
3022 if (hostp == 0) {
3023 hostp = *argv++;
3045 if (hostp == 0)
3052 real_host = hostp;
3053 hostp = itelnet_host;
3055 num_gw = parse_input(hostp, hostname_list, &src_rtng_type);
3061 hostp = hostname_list[num_gw];
3092 if (inet_addr(hostp) != (in_addr_t)-1) {
3094 (void) strlcpy(_hostname, hostp, sizeof (_hostname));
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c762 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()
/titanic_41/usr/src/cmd/ssh/ssh/
H A Dsshconnect.c609 char hostline[1000], *hostp, *fp; in check_host_key() local
791 hostp = hostline; in check_host_key()
807 hostp = host; in check_host_key()
815 "list of known hosts.", hostp, type); in check_host_key()
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsadmin/
H A Dcfsadmin.c1228 char *hostp; in simulate_disconnection() local
1240 hostp = info.nodename; in simulate_disconnection()
1243 clnt = clnt_create(hostp, CACHEFSDPROG, CACHEFSDVERS, "local"); in simulate_disconnection()
/titanic_41/usr/src/lib/libldap5/include/ldap/
H A Dsolaris-int.h284 int defport, char **hostp, int *portp /* host byte order */,
286 LDAP_API(int) LDAP_CALL ldap_x_hostlist_next( char **hostp,
/titanic_41/usr/src/cmd/sendmail/src/
H A Dparseaddr.c1967 char **hostp; local
2017 hostp = ++tv;
2021 hostp = NULL;
2033 if (tv == hostp)
2034 hostp = NULL;
2035 else if (hostp != NULL)
2036 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false);
2048 if (hostp != NULL)
2123 if (hostp == NULL)
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c1219 irp_unmarshall_ng(const char **hostp, const char **userp, const char **domainp, in irp_unmarshall_ng() argument
1227 if (userp == NULL || hostp == NULL || in irp_unmarshall_ng()
1278 *hostp = host; in irp_unmarshall_ng()
/titanic_41/usr/src/cmd/avs/rdc/
H A Dsndradm.c1065 check_rdcbitmap(int cmd, char *hostp, char *bmp) in check_rdcbitmap() argument
1162 if (self_check(hostp)) { in check_rdcbitmap()
1173 if ((strcmp(hostp, shost) == 0) && in check_rdcbitmap()
1185 if ((strcmp(shost, hostp) == 0) && in check_rdcbitmap()
1194 if ((strcmp(host, hostp) == 0) && in check_rdcbitmap()