Searched refs:kcp (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | key_call.c | 779 if (kcp != NULL && kcp->client != NULL) { in key_call_destroy() 782 free(kcp); in key_call_destroy() 809 if (kcp == NULL) { in getkeyserv_handle() 818 if (kcp->client && in getkeyserv_handle() 819 (!check_rdev(kcp) || kcp->pid != getpid() || stale)) { in getkeyserv_handle() 823 if (kcp->client) { in getkeyserv_handle() 839 kcp->fd = fd; in getkeyserv_handle() 847 set_rdev(kcp); in getkeyserv_handle() 980 kcp->fd = -1; in set_rdev() 983 kcp->fd = fd; in set_rdev() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlstat.c | 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() 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() 1047 i_dlstat_get_stats(kcp, ksp, &rx_lane_stat_entry->rle_stats, in i_dlstat_rx_hwlane_retrieve_stat() 1625 i_dlstat_get_stats(kcp, ksp, &fanout_stat_entry->fe_stats, in i_dlstat_fanout_retrieve_stat() 1793 i_dlstat_get_stats(kcp, ksp, &rx_ring_stat_entry->re_stats, in i_dlstat_rx_ring_retrieve_stat() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 5901 kstat_ctl_t *kcp; in get_mac_stats() local 5921 (void) kstat_close(kcp); in get_mac_stats() 5928 kstat_ctl_t *kcp; in get_link_stats() local 5943 (void) kstat_close(kcp); in get_link_stats() 5950 kstat_ctl_t *kcp; in query_kstat() local 5974 (void) kstat_close(kcp); in query_kstat() 5978 (void) kstat_close(kcp); in query_kstat() 8316 kstat_ctl_t *kcp; in print_bridge_stats() local 8388 (void) kstat_close(kcp); in print_bridge_stats() 8507 kstat_ctl_t *kcp; in print_bridge_link_stats() local [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/ |
H A D | piclfrutree.c | 2661 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()
|