Home
last modified time | relevance | path

Searched refs:kcp (Results 1 – 6 of 6) sorted by relevance

/titanic_50/usr/src/lib/libnsl/rpc/
H A Dkey_call.c779 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_50/usr/src/lib/libdladm/common/
H A Dlibdlstat.c69 dladm_kstat_lookup(kstat_ctl_t *kcp, const char *module, int instance, in dladm_kstat_lookup() argument
74 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in dladm_kstat_lookup()
92 dladm_get_stats(kstat_ctl_t *kcp, kstat_t *ksp, pktsum_t *stats) in dladm_get_stats() argument
95 if (kstat_read(kcp, ksp, NULL) == -1) in dladm_get_stats()
172 kstat_ctl_t *kcp; in dladm_get_single_mac_stat() local
198 if ((kcp = kstat_open()) == NULL) { in dladm_get_single_mac_stat()
207 if ((ksp = kstat_lookup(kcp, module, instance, "mac")) == NULL && in dladm_get_single_mac_stat()
208 (ksp = kstat_lookup(kcp, module, instance, NULL)) == NULL) in dladm_get_single_mac_stat()
211 if (kstat_read(kcp, ksp, NULL) == -1) in dladm_get_single_mac_stat()
217 (void) kstat_close(kcp); in dladm_get_single_mac_stat()
[all …]
/titanic_50/usr/src/cmd/kvmstat/
H A Dkvmstat.c121 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_50/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_phys.c72 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_50/usr/src/cmd/dladm/
H A Ddladm.c5755 kstat_ctl_t *kcp; in get_mac_stats() local
5766 if ((kcp = kstat_open()) == NULL) { in get_mac_stats()
5771 ksp = dladm_kstat_lookup(kcp, module, instance, "mac", NULL); in get_mac_stats()
5773 dladm_get_stats(kcp, ksp, stats); in get_mac_stats()
5775 (void) kstat_close(kcp); in get_mac_stats()
5782 kstat_ctl_t *kcp; in get_link_stats() local
5787 if ((kcp = kstat_open()) == NULL) { in get_link_stats()
5792 ksp = dladm_kstat_lookup(kcp, "link", 0, link, NULL); in get_link_stats()
5795 dladm_get_stats(kcp, ksp, stats); in get_link_stats()
5797 (void) kstat_close(kcp); in get_link_stats()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/
H A Dpiclfrutree.c2663 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()