/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | key_call.c | 779 struct key_call_private *kcp = (struct key_call_private *)vp; in key_call_destroy() local 781 if (kcp != NULL && kcp->client != NULL) { in key_call_destroy() 782 (void) check_rdev(kcp); in key_call_destroy() 783 clnt_destroy(kcp->client); in key_call_destroy() 784 free(kcp); in key_call_destroy() 793 struct key_call_private *kcp; in _key_call_fini() local 795 if ((kcp = pthread_getspecific(key_call_key)) != NULL) { in _key_call_fini() 796 key_call_destroy(kcp); in _key_call_fini() 807 struct key_call_private *kcp = NULL; in getkeyserv_handle() local 810 kcp = thr_get_storage(&key_call_key, sizeof (*kcp), key_call_destroy); in getkeyserv_handle() [all …]
|
/titanic_44/usr/src/lib/libdladm/common/ |
H A D | libdlstat.c | 173 kstat_ctl_t *kcp = (kstat_ctl_t *)arg; in flow_kstats() local 191 ksp = dladm_kstat_lookup(kcp, NULL, -1, attr->fa_flowname, "flow"); in flow_kstats() 197 dladm_get_stats(kcp, ksp, &currstats); in flow_kstats() 284 kstat_ctl_t *kcp = (kstat_ctl_t *)arg; in link_kstats() local 314 (void) kstat_chain_update(kcp); in link_kstats() 318 ksp = dladm_kstat_lookup(kcp, NULL, -1, flist->linkname, "net"); in link_kstats() 324 dladm_get_stats(kcp, ksp, &currstats); in link_kstats() 407 stat_report(dladm_handle_t handle, kstat_ctl_t *kcp, datalink_id_t linkid, in stat_report() argument 453 (void *)kcp, DATALINK_CLASS_ALL, in stat_report() 457 (void) link_kstats(handle, linkid, kcp); in stat_report() [all …]
|
/titanic_44/usr/src/cmd/kvmstat/ |
H A D | kvmstat.c | 121 kstat_instances_update(kstat_ctl_t *kcp, kstat_instance_t **head, in kstat_instances_update() argument 129 if ((kid = kstat_chain_update(kcp)) == 0 && *head != NULL) in kstat_instances_update() 138 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in kstat_instances_update() 220 kstat_instances_read(kstat_ctl_t *kcp, kstat_instance_t *instances, in kstat_instances_read() argument 235 if (kstat_read(kcp, ksp, NULL) == -1) { in kstat_instances_read() 396 kstat_ctl_t *kcp; in main() local 438 if ((kcp = kstat_open()) == NULL) in main() 462 kstat_instances_update(kcp, &instances, interested); in main() 463 kstat_instances_read(kcp, instances, fields); in main()
|
/titanic_44/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | ncu_phys.c | 72 kstat_ctl_t *kcp; in nwamd_get_link_state() local 78 if ((kcp = kstat_open()) == NULL) in nwamd_get_link_state() 84 if ((ksp = kstat_lookup(kcp, module, instance, "mac")) == NULL) { in nwamd_get_link_state() 92 if (kstat_read(kcp, ksp, NULL) == -1) in nwamd_get_link_state() 99 (void) kstat_close(kcp); in nwamd_get_link_state()
|
/titanic_44/usr/src/cmd/dladm/ |
H A D | dladm.c | 5773 kstat_ctl_t *kcp; in get_mac_stats() local 5784 if ((kcp = kstat_open()) == NULL) { in get_mac_stats() 5789 ksp = dladm_kstat_lookup(kcp, module, instance, "mac", NULL); in get_mac_stats() 5791 dladm_get_stats(kcp, ksp, stats); in get_mac_stats() 5793 (void) kstat_close(kcp); in get_mac_stats() 5800 kstat_ctl_t *kcp; in get_link_stats() local 5805 if ((kcp = kstat_open()) == NULL) { in get_link_stats() 5810 ksp = dladm_kstat_lookup(kcp, "link", 0, link, NULL); in get_link_stats() 5813 dladm_get_stats(kcp, ksp, stats); in get_link_stats() 5815 (void) kstat_close(kcp); in get_link_stats() [all …]
|
/titanic_44/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 2663 open_kstat(char *name, void **ptr, kstat_ctl_t **kcp) in open_kstat() argument 2667 *kcp = kstat_open(); in open_kstat() 2668 if (*kcp == NULL) { in open_kstat() 2672 info_ksp = kstat_lookup(*kcp, NULL, -1, name); in open_kstat() 2674 kstat_close(*kcp); in open_kstat() 2678 if (kstat_read(*kcp, info_ksp, NULL) == -1) { in open_kstat() 2679 kstat_close(*kcp); in open_kstat()
|