Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dkey_call.c777 struct key_call_private *kcp = (struct key_call_private *)vp; in key_call_destroy() local
779 if (kcp != NULL && kcp->client != NULL) { in key_call_destroy()
780 (void) check_rdev(kcp); in key_call_destroy()
781 clnt_destroy(kcp->client); in key_call_destroy()
782 free(kcp); in key_call_destroy()
791 struct key_call_private *kcp; in _key_call_fini() local
793 if ((kcp = pthread_getspecific(key_call_key)) != NULL) { in _key_call_fini()
794 key_call_destroy(kcp); in _key_call_fini()
805 struct key_call_private *kcp = NULL; in getkeyserv_handle() local
808 kcp = thr_get_storage(&key_call_key, sizeof (*kcp), key_call_destroy); in getkeyserv_handle()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlstat.c73 dladm_kstat_lookup(kstat_ctl_t *kcp, const char *module, int instance, in dladm_kstat_lookup() argument
78 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in dladm_kstat_lookup()
96 dladm_get_stats(kstat_ctl_t *kcp, kstat_t *ksp, pktsum_t *stats) in dladm_get_stats() argument
99 if (kstat_read(kcp, ksp, NULL) == -1) in dladm_get_stats()
663 i_dlstat_get_stats(kstat_ctl_t *kcp, kstat_t *ksp, void *stats, in i_dlstat_get_stats() argument
668 if (kstat_read(kcp, ksp, NULL) == -1) in i_dlstat_get_stats()
902 kstat_ctl_t *kcp = dladm_dld_kcp(handle); in i_dlstat_get_idlist() local
910 if (kcp == NULL) { in i_dlstat_get_idlist()
918 for (ksp = kcp->kc_chain; ksp != NULL; ksp = ksp->ks_next) { in i_dlstat_get_idlist()
1036 i_dlstat_rx_hwlane_retrieve_stat(kstat_ctl_t *kcp, kstat_t *ksp, int i) in i_dlstat_rx_hwlane_retrieve_stat() argument
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c5933 kstat_ctl_t *kcp; in get_mac_stats() local
5944 if ((kcp = kstat_open()) == NULL) { in get_mac_stats()
5949 ksp = dladm_kstat_lookup(kcp, module, instance, "mac", NULL); in get_mac_stats()
5951 dladm_get_stats(kcp, ksp, stats); in get_mac_stats()
5953 (void) kstat_close(kcp); in get_mac_stats()
5960 kstat_ctl_t *kcp; in get_link_stats() local
5965 if ((kcp = kstat_open()) == NULL) { in get_link_stats()
5970 ksp = dladm_kstat_lookup(kcp, "link", 0, link, NULL); in get_link_stats()
5973 dladm_get_stats(kcp, ksp, stats); in get_link_stats()
5975 (void) kstat_close(kcp); in get_link_stats()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/
H A Dpiclfrutree.c2661 open_kstat(char *name, void **ptr, kstat_ctl_t **kcp) in open_kstat() argument
2665 *kcp = kstat_open(); in open_kstat()
2666 if (*kcp == NULL) { in open_kstat()
2670 info_ksp = kstat_lookup(*kcp, NULL, -1, name); in open_kstat()
2672 kstat_close(*kcp); in open_kstat()
2676 if (kstat_read(*kcp, info_ksp, NULL) == -1) { in open_kstat()
2677 kstat_close(*kcp); in open_kstat()